solve function depend on z

30 次查看(过去 30 天)
clear all;
clc;
syms s m b T B K d;
%d=e^(-s(T/2))
A=m*T*s^3 + b*T*s^2+K+d*(B*s)+d^2*(-K)+d^3*(-B*s);
A_tilde=-m*T*s^3*d^3 + b*T*s^2*d^3+K*d^3-d^2*(B*s)+d*(-K)-(-B*s);
res=resultant(A,A_tilde,d);
res_s=solve(res==0,s)
res_s = 
I want the roots of the polynomial s obtained using the solve function to be in the form only m b B T K, but they are coming out as z-dependent.

采纳的回答

Walter Roberson
Walter Roberson 2025-11-2,9:32
You can divide res by s^4, and you can then substitute s = sqrt(S), and then collect on S. You will obtain a degree 7 polynomial in S.
But then you are stuck. There are no general solutions to polynomials of degree 5 or higher, and you did not happen to get lucky to be able to factorize into polynomials of degree 4 or less. You will not be able to find solutions in terms of m b B T K

更多回答(0 个)

类别

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

标签

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by