solve function depend on z

26 vues (au cours des 30 derniers jours)
Cahit Semih
Cahit Semih le 2 Nov 2025 à 9:08
Réponse apportée : Walter Roberson le 2 Nov 2025 à 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.

Réponse acceptée

Walter Roberson
Walter Roberson le 2 Nov 2025 à 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

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Tags

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by