Matlab give wrong answer

1 回表示 (過去 30 日間)
mouh nyquist
mouh nyquist 2019 年 2 月 5 日
回答済み: Fangjun Jiang 2019 年 2 月 5 日
I have used this two equation who must give the same value but matlab give two different answer
Rs=1.150;
Rr=1.440;
Ls=0.156;
Lr=0.156;
Lm=0.143;
%*********************
A=1-(Lm^2/Lr*Ls)
B=1-((Lm^2)/(Lr*Ls))
%but 'A-b #0'

採用された回答

Fangjun Jiang
Fangjun Jiang 2019 年 2 月 5 日
A and B are different. Note the order of operation
A=1-(Lm^2/Lr*Ls) is the same as A=1-((Lm^2)/Lr)*Ls

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by