Polynomials with complex coefficients

Polynomials with complex coefficients - Messages

#1 Posted: 11/18/2023 8:47:14 AM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Hello, I want to solve a quartic polynomial with complex coefficients.. I tried "polyroots" function but it gives an error "cannot calculate",, Is there a plugin or a function that can solve a polynomial with complex coefficients in SMath? Thanks in advance
#2 Posted: 11/18/2023 7:02:58 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Hi,
Here an example solved by using Maxima plugin:

MaximaPlugin_001.png

best,
Oscar
#3 Posted: 11/18/2023 7:06:17 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Wrote

Hi,
Here an example solved by using Maxima plugin:

MaximaPlugin_001.png

best,
Oscar



How to put these answers of Maxima plugin inside a vector?
#4 Posted: 11/18/2023 8:03:43 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Hello, I want to solve a quartic polynomial with complex coefficients.. I tried "polyroots" function but it gives an error "cannot calculate",, Is there a plugin or a function that can solve a polynomial with complex coefficients in SMath? Thanks in advance


If you have the complex quartic complex vector,
the way to plot is via Lagrange Iterated Product.
From there, your quartic is now a function in native Smath.
You can find roots and more solving demands.
Cheers ... Jean.


#5 Posted: 11/18/2023 8:18:30 PM
overlord

overlord

551 likes in 1332 posts.

Group: Moderator

You can use maple() too.
Maple has a fsolve() function.
Which uses floating-point arithmetic.

2023-11-18_15-15.png
3 users liked this post
ioan92 11/18/2023 11:28:00 PM, Oichi 11/18/2023 9:23:00 PM, Oscar Campo 11/18/2023 8:21:00 PM
#6 Posted: 11/18/2023 8:25:02 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote



How to put these answers of Maxima plugin inside a vector?



A little trikiest
MaximaPlugin_001.png
2 users liked this post
ioan92 11/18/2023 9:05:00 PM, Oichi 11/18/2023 9:23:00 PM
#7 Posted: 11/18/2023 9:23:58 PM
Oichi

Oichi

3 likes in 35 posts.

Group: User

Okayy,,,The trick using num2str is so cool..

And thanks overlord, I didnt know about this maple one
1 users liked this post
Oscar Campo 11/18/2023 9:30:00 PM
#8 Posted: 11/19/2023 2:42:44 AM
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 likes in 1674 posts.

Group: User

Hi. Another way.

zroots.sm (19 KiB) downloaded 32 time(s).

zroots.png

Best regards
Alvaro.
2 users liked this post
Oscar Campo 11/19/2023 3:45:00 AM, ioan92 11/19/2023 3:49:00 AM
  • New Posts New Posts
  • No New Posts No New Posts