Integration in matlab: Explicit integral could not be found
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
H=1,R=1,theta=20;
syms x;
syms alpha;
%sigma=F/(2*pi*R*(alpha-1));
z_desh=((x/alpha*x^2+1-alpha)^2-1)^-.5
beta=(sin(theta)+(sin(theta)*sin(theta)+4*alpha*(alpha-1)))/2*alpha
eq=int(z_desh,x,4,1)
when i run the above code en error show like: Warning: Explicit integral could not be found. How to solve this.?
Thanks
채택된 답변
Walter Roberson
2012년 12월 8일
First thing to do is heck whether the x/alpha*x^2 is really what you meant. If it was, why not say x^3/alpha ?
Next, check whether you really want to integrate from 4 down to 1, instead of from 1 to 4.
Thirdly, check why you define beta but then do not use it in what is being integrated.
If your integral is exactly as shown, then there is no readily available analytic form for it. A small number of values of alpha lead to analytic forms; the others do not.
댓글 수: 8
Please check this, i am still getting the same error...
H=1,R=1,theta=20;
syms x;
syms alpha;
z_desh=1/(x^2/(alpha*x^2 - alpha + 1)^2 - 1)^(1/2)
beta=(sin(theta)+(sin(theta).*sin(theta)+4*alpha*(alpha-1)))/2*alpha
eq=int(z_desh,x,beta,1)
satendra kumar
2012년 12월 8일
편집: Walter Roberson
2012년 12월 8일
Hello Roberson,
I guess you can make this out..pls check here is the link of the problem statement
Question: do you really want sin() of 20 radians? Or do you want sin() of 20 degrees? That would be sind()
Either way, with those beta and z_desh definitions, I get messy analytic solutions involving Elliptic integrals, but whose form depends critically upon the value of alpha in non-obvious ways.
I am getting complex solutions for trial values of alpha. What kind of range were you expecting for alpha ?
satendra kumar
2012년 12월 8일
편집: Walter Roberson
2012년 12월 8일
alpha should be a real number with a value less than 1. And consider sind. Pls check this link for the problem statement http://prntscr.com/lm5so
Hey walter...Got any improvement?
Your beta is missing a square root.
beta = (sin(theta) + sqrt(sin(theta)^2 + 4 * alpha * (alpha-1))) / (2*alpha)
My tests so far seem to be indicating that alpha must be at least 1, not less than 1.
That's a relief. Thanks man. May i have your code pls.
My code is in Maple, using a facility of Maple that does not translate directly into the MuPAD Symbolic Toolbox
What I determined in the end is that you had better use numeric integration and something like fsolve(), instead of trying to use symbolic integration.
When you do your fsolve(), do not use an alpha less than 1: it is not difficult to demonstrate that alpha between 0 and 1 will generate integrals involving complex values.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Functional Programming에 대해 자세히 알아보기
태그
참고 항목
2012년 12월 8일
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
