Use of brackets while multiplying expression
15 次查看(过去 30 天)
显示 更早的评论
E_d=2.6*(((1-alpha)/Ku)^ 1/3)*(Pe^(-2/3));
While using this expression answers comes out be -0.0065 but if 1/3 is taken in bracket the answer changes and result is shown in complex form. Please explain the backend calculation by MATLAB.
2 个评论
回答(1 个)
Alan Stevens
2021-2-11
You have
E_d = 2.6*((1-alpha)/Ku)^1/3*Pe^(-2/3)
which only raises the bracketed term to the power 1, then divides the result by 3.
If you had
E_d = 2.6*((1-alpha)/Ku)^(1/3)*Pe^(-2/3)
you would be raising the bracketed term to the power 1/3, which would result in a complex number (because of the negative value of Ku).
1 个评论
Stephen23
2021-2-11
Because matrix power has higher precedence than matrix division:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!