Wrong answer in below code?

조회 수: 2 (최근 30일)
Raj Arora
Raj Arora 2021년 7월 2일
편집: G A 2021년 7월 2일
bw = 36;
angle = 60;
syms ds
tw = bw + 2*(ds / tand(angle));
nm = 0.025;
Area = 0.5*(bw + tw)*ds;
P = bw + 2*(ds/sind(angle));
S = 0.00001;
A = (((Area)^(5/3))/((P)^(2/3))) == ((200*nm)/(S^0.5))
height =(vpasolve(A,ds));
OUTPUT: - 49.95106 - 10.88106i
The output is wrong, the correct answer for the above code should be 10.19
Can anyone please tell me why I am not getting the actual answer as 10.19

채택된 답변

Walter Roberson
Walter Roberson 2021년 7월 2일
height = vpasolve(A, ds, 1);
  댓글 수: 5
Walter Roberson
Walter Roberson 2021년 7월 2일
Most any positive initial value should work
G A
G A 2021년 7월 2일
편집: G A 2021년 7월 2일
Thanks, Walter - I understood postfactum that nm was interpreted as the initial value because it cannot be an argument.

댓글을 달려면 로그인하십시오.

추가 답변 (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