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 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