Solving cubic equation with imaginary numbers
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone
I want to solve this equation by multiplying these variables with imaginary numbers and get clear result with s variable and output is in some weird form. What's wrong?
My code below .
clc;
clear;
s1 = 133.9457 + 253.416i
s2 = 133.9457 - 253.416i
s3 = 1339.457
syms s
x = solve(0.00017493*(s-s1)*(s-s2)*(s-s3))
Thanks in advance
0 Kommentare
Akzeptierte Antwort
Stephan
am 2 Dez. 2022
Bearbeitet: Stephan
am 2 Dez. 2022
s1 = 133.9457 + 253.416i;
s2 = 133.9457 - 253.416i;
s3 = 1339.457;
syms s
x_exactly = solve(0.00017493*(s-s1)*(s-s2)*(s-s3))
x_numeric = double(x_exactly)
3 Kommentare
Stephan
am 2 Dez. 2022
s1 = 133.9457 + 253.416i;
s2 = 133.9457 - 253.416i;
s3 = 1339.457;
syms s
x_exactly = expand(0.00017493*(s-s1)*(s-s2)*(s-s3))
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!