how to organization a system of nonlinear equation?

1 Ansicht (letzte 30 Tage)
Hadi Gholamzadeh
Hadi Gholamzadeh am 6 Okt. 2021
Bearbeitet: Hadi Gholamzadeh am 6 Okt. 2021
I want organization a system of equation and an equantion obtian. There are 5 equation as a function:
function Fun = CD_Fun(Cd0, alpha, T, theta, D, V, CD, AC, air)
Fun(1,1) = T * sind(abs(theta)) == D;
Fun(2,1) = T * cosd(abs(theta)) == AC.m * 9.81;
Fun(3,1) = D == 0.5 * air.rho * V^2 * CD;
Fun(4,1) = CD == Cd0 + alpha * theta^2;
Fun(5,1) = theta == -2 * V;
end
So write a code to use CD_Fun, We known AC and air parameter:
syms Cd0 alpha
syms T theta D CD V
Fun = CD_Fun(Cd0, alpha, T, theta, D, V, CD, AC, air)
S = solve(Fun,[Cd0, alpha]);
And finally I want to get to this answer.
Cd0 + (-2*V)^2 * alpha = (2*AC.m*9.81*tand(abs(-2*V)))/(air.rho * V^2)
Please help me.
Thank your attention.

Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by