how to organization a system of nonlinear equation?

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by