[Rd] PR#751

mark0060@tc.umn.edu mark0060@tc.umn.edu
Wed, 17 Jan 2001 03:52:00 +0100 (MET)

I'd just like to report a possible R bug--or rather, confirm an existing one
(bug #751).

I have had some difficulty using the polyroot() function.

For example, in Win 98, R 1.1.1,

> polyroot(c(2,1,1))

correctly (per the help index) gives the roots of  1 + (1*x) + (2*x^2) as

[1] -0.5+1.322876i -0.5-1.322876i


> polyroot(c(-100,0,1))

gives the roots of

[1]  10+0i -10+0i

which corresponds to -100 + x^2, not 1 - (100*x^2).


> polyroot(c(0,0,0,1))


[1]   0+0i   0+0i -10+0i

which aren't all roots of x^3.

Thanks for all your efforts.

I apologize if I'm missing something.

Kristian Markon

r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch