solve function depend on z

27 visualizaciones (últimos 30 días)
Cahit Semih
Cahit Semih el 2 de Nov. de 2025 a las 9:08
Respondida: Walter Roberson el 2 de Nov. de 2025 a las 9:32
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 2 de Nov. de 2025 a las 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

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by