8 Nov
2013
8 Nov
'13
3:09 a.m.
Hi, I am using GiNaC in my project. I want to find roots of a univariate polynomial. I am deriving a polynomial from a matrix determinant, which is coming to, 6-1/15*r-19/3138418483200*r^4-23/20713561989120000*r^5+1/18900*r^2-71/7264857600*r^3 I am using RealAlgebraicNumberFactory::realRoots() method as in the below code to find roots. I have installed GiNaCRA as well and example programs are compiling and running fine. RationalUnivariatePolynomial p(det,r); list<RealAlgebraicNumberPtr> roots = RealAlgebraicNumberFactory::realRoots( p ); This call is returning a list of zero size. Am I missing anything ? how to solve for roots for polynomials of this type? Thanks Rekha
4250
Age (days ago)
4250
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rekha Penmetsa