Solution of two variables parametric (in one) equation

5 次查看(过去 30 天)
Dear colleagues,
I have a complex equation of the form: -xr + ar^5 - br^4 + cr^3 - dr^2 + er + 1.22 = 0, where x and r are two variables and a, b, c d & e are constants. I may ask for your kind suggestion to find the values of x and r.
Best regards, Imran
  6 个评论
Muhammad Imran
Muhammad Imran 2016-10-27
rho is a variable. In the equation, there are two variables (rho and r), which third vaiable you mean?
Mostafa
Mostafa 2016-10-27
Actually I've just noticed that you have one equation in two unkowns, so basically you can have an unlimited number of solutions. Unfortunately I don't have access to matlab right now, so I can't verify the output, but I think that's the issue with that. Maybe the default algorithm to calculate the result contains both real & imaginary parts, so it gives you the answer you mentioned.

请先登录,再进行评论。

回答(1 个)

John D'Errico
John D'Errico 2016-10-27
You have ONE equation, in TWO unknowns.
You cannot solve for both unknowns. At best, you can solve for one as a function of the other. So, if you choose to fix the value of r, then paper and pencil are sufficient to solve for x, AS A FUNCTION OF r.
Alternatively, if you choose to fix the value of x, then you have a 5th degree polynomial, with non-trivial coefficients. For almost ALL such sets of coefficients (except for some trivial sets) there are NO analytical solutions. This was proven a long time ago. At best, you can solve for the numerical roots. So the symbolic toolbox will return expressions that involve calls to the function "rootof".
But again, if you want to solve for both x and r at the same time this is simply NOT possible. One equation in two unknowns is insufficient information.

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by