Re: [Pdl-general] xample of how to call PDL::Math polyroots() function

2023-10-01 Thread Zakariyya Mughal
On 2023-09-30 at 17:07:20 -0700, systemdl...@fastmail.com wrote: > Could you provide an example of how to call the polyroots() function in > PDL::Math? > > In Math::Polynomial, I can solve the roots for something like 'x^3 - x^2 > + 4x + 4' by calling its routine: > > my(@roots) =

[Pdl-general] xample of how to call PDL::Math polyroots() function

2023-09-30 Thread systemdl...@fastmail.com
Could you provide an example of how to call the polyroots() function in PDL::Math? In Math::Polynomial, I can solve the roots for something like 'x^3 - x^2 + 4x + 4' by calling its routine: my(@roots) = poly_roots(1,1,4,4); which will return the roots of that equation in a perl list, @roots,