Solving one equation with one unknown and get all possible solutions
古いコメントを表示
I have an equation and I need to get its solution. I think it has more than one solution, but using the command (solve) I can get only one solution.
Actually, it is expected to get real and complex solutions, but I am interested on the real solutions only.
How can I get this solution in Matlab.
the required unknown is (alphap) and my equation and the command that I have used is:
m=15; Ki=1.3908e+06; B=0.945e-1; db=0.79e-2; alphao=.2618;
x = solve(Pr == m*Ki*(B*db*(cos(alphao)/cos(alphap)-1))^(3/2)*sin(alphap),alphap)
The answer is:
x = 0.37336926931567958392238007768557i
3 件のコメント
KSSV
2018 年 10 月 26 日
If x = k is solution.... x = ck.......c = 1,2,.....will be solution.....isn't it?
Dimitris Kalogiros
2018 年 10 月 26 日
what is the value of Pr ?
Hassan Alkomy
2019 年 1 月 4 日
採用された回答
その他の回答 (1 件)
Vineeth Nair
2018 年 10 月 30 日
編集済み: Vineeth Nair
2018 年 10 月 30 日
0 投票
To get only real values use following command >>solve(equation, variable, 'Real', true)
カテゴリ
ヘルプ センター および File Exchange で Mathematics and Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
