*Problem Akashi-Kaikyo bridge! in figure*

조회 수: 1 (최근 30일)
justin  Taylor
justin Taylor 2011년 12월 10일
% Code find main cable bridge Akashi-Kaikyo
syms x;
% use line interals type I.
I=eval(int(sqrt(1+(diff(2*10^(-4)*x^2-0.4*x+200,x)^2)),0,1991))
--> Lenght cable= inf it rong ?

채택된 답변

Walter Roberson
Walter Roberson 2011년 12월 10일
You should not use eval() in that context: you should use double() instead.
I cannot say what MuPAD returns for that integral; Maple returns 2042.433965 .

추가 답변 (1개)

bym
bym 2011년 12월 11일
OK this is strange: if I do
a= int(sqrt(1+(diff(2*10^(-4)*x^2-0.4*x+200,x)^2)))
a =
1250*asinh(x/2500 - 2/5) + (x/2 - 500)*((x/2500 - 2/5)^2 + 1)^(1/2)
subs(a,1991)-subs(a,0)
ans =
2042.4
but if I do
a= int(sqrt(1+(diff(2*10^(-4)*x^2-0.4*x+200,x)^2)),0,1991)
matlab just hangs and doesn't respond; perhaps something with the definite limits?

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by