how to organization a system of nonlinear equation?

1 回表示 (過去 30 日間)
Hadi Gholamzadeh
Hadi Gholamzadeh 2021 年 10 月 6 日
編集済み: Hadi Gholamzadeh 2021 年 10 月 6 日
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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by