Integration in matlab: Explicit integral could not be found

조회 수: 4(최근 30일)
syms x;
syms alpha;
when i run the above code en error show like: Warning: Explicit integral could not be found. How to solve this.?

채택된 답변

Walter Roberson
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
Walter Roberson
Walter Roberson 2012년 12월 8일
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개)


Community Treasure Hunt

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

Start Hunting!

Translated by