Simbolic Tbx: how to solve trigonometric equation with polynoms?

조회 수: 2 (최근 30일)
Igor
Igor 2011년 4월 5일
Let
>> syms y z
>> syms x y z
>> y=sym('- 9*x^4 + 7*x^3 - 13*x^2 + 3*x');z=sym('(1+x)^3');
Working
>> solve(subs('z*y-1=0'))
Working (although one root)
>> solve(subs('sin(z)=0'))
NOT Working
>> solve(subs('sin(y*z-1)=0'))
ans =
solvelib::Union(RootOf(X458^7 + (20*X458^6)/9 +...
How to solve eq. (within Simbolic Tbx)? Even one root...

답변 (1개)

Walter Roberson
Walter Roberson 2011년 4월 6일
The Union is the result, in symbolic form. A Union is a "set" (in mathematical terms). RootOf() of higher order polynomials are not taken unless specifically requested, partly because usually they can only be numerically approximated.
What I suggest is that you use vpa() or double() on the returned answer.
  댓글 수: 3
Igor
Igor 2011년 4월 7일
you see -- no motion further the answer Rootof()
Walter Roberson
Walter Roberson 2011년 4월 7일
Checking the documentation, http://www.mathworks.com/help/toolbox/mupad/solvelib/Union.html it appears to me that there is a family of solutions in a free parameter that is an integer. If you want one particular solution, evaluate res with something (e.g., 0) substituted for Z_ and then double() that to get a numeric value.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by