HP Forums

Full Version: Finding roots of polynomial
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there,

I am reading the hp prime user guide.

On page 55, there is an example to find the roots of 2x^2+3x-2.

I do as the manual says, proot(2*x^2+3*x-2) and the hp prime answers []

Inside the braclets there is no info about the 2 roots.

Note: the ^inside the proot(2*x^2+3*x-2) , I dont input it in the hp prime.

What am I doing wrong??

Many thanks,
proot() is expecting an array of coefficients for the input polynomial. So, for your polynomial

proot( [2 3 -2] )

and hp prime's answer
[-2.,0.5]
The example with the polynomial worked for me. Until I assigned a value to x. Now I get an empty matrix for an answer.

Trying to remember how to unassign a variable in CAS. :^(
purge(x)
Hi there,

After doing purge(x), it worked fine.

I was begining to think the calc had a bug....

Many thanks!
Reference URL's