solve function depend on z

26 views (last 30 days)
Cahit Semih
Cahit Semih on 2 Nov 2025 at 9:08
Answered: Walter Roberson on 2 Nov 2025 at 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.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Nov 2025 at 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

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!