MHB Zeros of generalised Laguerre polynomial

AI Thread Summary
A user seeks a program library to find zeros of generalized Laguerre polynomials, specifically for inclusion in a Fortran program with N potentially up to 100. Mathematica can compute these polynomials and find their zeros, but symbolic roots are limited to fourth-order, while numerical roots can be obtained for higher orders. For approximations, commands like N[Solve[LaguerreL[4, 2, x] == 0, x]] can yield numerical values, with options for precision. The user also inquires about exporting results to a CSV file from Mathematica. Overall, Mathematica is highlighted as a powerful tool for this task, despite some limitations in precision for higher-order polynomials.
ognik
Messages
626
Reaction score
2
Hi - does anyone know of a program library/subroutine/some other source, to find the zeros of a generalised Laguerre polynomial? ie. $ L^{\alpha}_N (x_i) = 0 $
 
Mathematics news on Phys.org
In Mathematica (or Wolfram Development Platform), the command
Code:
LaguerreL[n,a,x]
yields the generalized Laguerre polynomials $L_{n}^{a}(x)$. You could then use the power of Mathematica to find zeros as much as you like. Is this for a particular value of $a$? And to what order of polynomial are you intending to go? Mathematica can find symbolic roots all the up to 4th-order. Naturally, it might be difficult to find a fifth-order, since a general formula does not exist. If you have a particular value of $a$ in mind, then you can get Mathematica to find the roots numerically fairly easily, as well.
 
Thanks - I should have said I wanted something I could include in a program (Fortran); and I will need N up to potentially 100 ...

For general interest, the subs I found are:

LAGUERRE_POLYNOMIAL - Laguerre Polynomials

https://github.com/exciting/exciting/blob/master/src/src_gw/gaulag.f90

Back to Mathematica, I tried Roots[LaguerreL[4, 2, x] == 0, x] - but that gives me a string of calculations for each root, what do I need to do please, to simplify/just get the number for each root?
 
You aren't getting a string of calculations, it's telling you the exact values of the 4 roots. If all you need are approximations, try N[Solve[LaguerreL[4, 2, x] == 0, x]]. That will give you a list of the approximate values of the 4 roots. If you need more precision in the answer you can use N[Solve[LaguerreL[4, 2, x] == 0, x],6] to get the answer to six decimal places. Be warned, though, depending on what algorithms Mathematica has to use to get the solutions you may not be able to get six decimal precision.

-Dan
 
That makes rather good sense, and is all useful info, thanks.
My next thought is - is there a way to get Mathematica to output to a file, like a csv?

BTW, it does return values for N > 4, I tried up to 100 ... but only 7 decimal places.
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Back
Top