Polynomials with complex coefficients

Polynomials with complex coefficients - 消息

#1 已发布: 2023/11/18 08:47:14
Oichi

Oichi

4个赞,共35个帖子。

组: 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 已发布: 2023/11/18 19:02:58
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Hi,
Here an example solved by using Maxima plugin:

MaximaPlugin_001.png

best,
Oscar
#3 已发布: 2023/11/18 19:06:17
Oichi

Oichi

4个赞,共35个帖子。

组: 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 已发布: 2023/11/18 20:03:43
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2023/11/18 20:18:30
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

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

2023-11-18_15-15.png
3位用户喜欢此帖子
ioan92 2023/11/18 23:28:00, Oichi 2023/11/18 21:23:00, Oscar Campo 2023/11/18 20:21:00
#6 已发布: 2023/11/18 20:25:02
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote



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



A little trikiest
MaximaPlugin_001.png
2位用户喜欢此帖子
ioan92 2023/11/18 21:05:00, Oichi 2023/11/18 21:23:00
#7 已发布: 2023/11/18 21:23:58
Oichi

Oichi

4个赞,共35个帖子。

组: User

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

And thanks overlord, I didnt know about this maple one
1位用户喜欢此帖子
Oscar Campo 2023/11/18 21:30:00
#8 已发布: 2023/11/19 02:42:44
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi. Another way.

zroots.sm (19.36 KiB)已下载 1491 次。

zroots.png

Best regards
Alvaro.
2位用户喜欢此帖子
Oscar Campo 2023/11/19 03:45:00, ioan92 2023/11/19 03:49:00
  • 有新帖
  • 无新帖