Error using root on complex polinomial

Hi everyone,
I got this error message and i can't figure it out, tryed a few times with different equations
z=x^2-1
works, but the following isn't working
syms x;
z=x^3+2*abs(x^2);
r=root(z,x);
Error using mupadengine/feval (line 163)
The first argument must be a polynomial or polynomial expression.
Error in sym/root (line 36)
r = feval(symengine, 'RootOf', f, x);
I've got to use the R2015b version since it's the last 32bit build

回答 (1 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 6 月 1 日
編集済み: KALYAN ACHARJYA 2019 年 6 月 1 日

0 投票

Its roots not root
Pass single variable roots(p)

1 件のコメント

DANIEL MARTIN
DANIEL MARTIN 2019 年 6 月 1 日
Using roots and passing only z it returns a 0x1 sym variable, does it means there ar no roots for that equation?

サインインしてコメントする。

カテゴリ

製品

リリース

R2015b

質問済み:

2019 年 6 月 1 日

コメント済み:

2019 年 6 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by