필터 지우기
필터 지우기

how to find the ansers for an elliptic integral.

조회 수: 1 (최근 30일)
Prashanth Chandrasekar
Prashanth Chandrasekar 2014년 2월 3일
댓글: Walter Roberson 2014년 2월 3일
I am prashanth doing a project using matlab.I am new to matlab.I want to know how to interpret an elliptic integral and how to solve an elliptic integral in matlab. My equation is as follows.
Input: syms a b phi
int((1/(sqrt(1-(((2*b)/(a+b))^2)*(sin((pi/4)-(phi/2))^2)))), phi)
Ans:(-2)*ellipticF(pi/4 - phi/2, (4*b^2)/(a + b)^2)
I want to know how the answer has to be interpreted and use in the following steps.
Thanx in advance.

채택된 답변

Walter Roberson
Walter Roberson 2014년 2월 3일
You need to subs() particular values for "a" and "b" and "phi" into the answer before the value of the elliptic integral can be calculated. For example,
double( subs(Ans, {a, b, phi}, {3, 4, pi/3}) )
  댓글 수: 2
Prashanth Chandrasekar
Prashanth Chandrasekar 2014년 2월 3일
Thanx Walter.I want to find out the phi n the equation by iterative process.Can u describe me of the syntax and the applications of different loop conditions.
Walter Roberson
Walter Roberson 2014년 2월 3일
EIAns = matlabFunction( subs(Ans, {a, b}, {3, 4}) ); %use appropriate a b
EI_equals = 0.3183; %whatever you need the integral to come out as if you had the correct phi
rightphi = fzero( @(phi) EIAns(phi) - EI_equals, [0 2*pi]);

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by