Equation with one unknown
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to find out at what time a object hits the ground, this is the equation:
2*m/(A*Cd*d)* log(abs(cosh(t*sqrt(A*Cd*d*g/(2*m)))))-1000=0
With following parameters:
g=9.807; %m/s2
d= 1.225; %kg/m3
delta_t=0.01; %arbitrary small number
t=0:delta_t:50; %total time from 0 to 50 (s)
A=1.9;
m=84;
Cd=1.14;
I want to solve this equation for t, which is the only unknown. How do I do this?
0 Commenti
Risposta accettata
Stephan
il 20 Set 2019
Modificato: Stephan
il 20 Set 2019
With Symbolic Toolbox:
syms t positive
g=9.807; %m/s2
d= 1.225; %kg/m3
A=1.9;
m=84;
Cd=1.14;
fun = 2*m/(A*Cd*d)* log(abs(cosh(t*sqrt(A*Cd*d*g/(2*m)))))-1000 == 0
sol = double(solve(fun,t))
Using basic functions:
g=9.807; %m/s2
d= 1.225; %kg/m3
A=1.9;
m=84;
Cd=1.14;
fun = @(t) 2*m/(A*Cd*d)* log(abs(cosh(t*sqrt(A*Cd*d*g/(2*m)))))-1000
sol = fzero(fun,10)
0 Commenti
Più risposte (0)
Vedere anche
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!