Matlab give wrong answer
조회 수: 1 (최근 30일)
이전 댓글 표시
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'
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!