필터 지우기
필터 지우기

Solve a function in terms of a variable?

조회 수: 2 (최근 30일)
Matthew Holub
Matthew Holub 2015년 4월 13일
편집: Roger Stafford 2015년 4월 13일
I need to find this equation in terms of M2:
syms M M1 M2 Alpha
dAlpha = sqrt((M^2)-1)/(M*(1+(.2*(M^2))));
integralAlpha = int(dAlpha,M)
eqn = subs(integralAlpha,M,M2) - subs(integralAlpha,M,M1) == Alpha
sol = solve(eqn,M2)
but I am getting an error that says:
Warning: Cannot find explicit solution.
> In solve at 319
In Testing at 8
sol =
Empty sym: 0-by-1

답변 (1개)

Roger Stafford
Roger Stafford 2015년 4월 13일
편집: Roger Stafford 2015년 4월 13일
If my memory serves me correctly, that function will give rise to elliptic integrals of the first and second kinds, incomplete. That may be why 'solve' failed to come up with an explicit solution. However, before you give up on 'solve' I would suggest you place the limits, M1 and M2, as arguments in 'int' itself instead of first getting an indefinite integral:
integralAlpha = int(dAlpha,M,M1,M2);
If that fails, then try using numerical integration with specific values for M1 and M2, and use 'fzero' instead of 'solve'.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by