I need to create a vector from a symbolic polynomial function,but when i use sym2poly command, matlab tells me it is not a polynomial, how should i do?
Show older comments
f1=(497*c1^2 + 497*c2^2 + 497*c3^2 + 11*(c3 + c1*c2)*(c2 - c1*c3)*(c1^2 + c2^2 + c3^2 + 1) + 497)^2/(103684*(c1^2 + c2^2 + c3^2 + 1)^2) + (136*c1^2 + 136*c2^2 + 136*c3^2 + (11*(c2 - c1*c3)*(c1^2 - c2^2 - c3^2 + 1)*(c1^2 + c2^2 + c3^2 + 1))/2 + 136)^2/(103684*(c1^2 + c2^2 + c3^2 + 1)^2) - 1;
sym2poly(f1)
Error using sym/sym2poly (line 30)
Not a polynomial
why matlab tells me this?
Accepted Answer
More Answers (1)
sebastiano della gatta
on 17 Dec 2021
0 votes
3 Comments
Star Strider
on 17 Dec 2021
I honestly have no idea. I had to look up Gröbner basis to understand the context. (I have hard of them, however never used them and barely understand them.)
I suggest posting the Gröbner basis question as a separate, new Question, linking to this one as a reference. It is likely someone here (other than me) will be able to provide an appropriate reply.
(I just addressed the single issue posed in the original Question here.)
.
sebastiano della gatta
on 17 Dec 2021
Star Strider
on 17 Dec 2021
As always, my pleasure!
.
Categories
Find more on Number Theory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!















