Zeros of generalised Laguerre polynomial

  • Context: MHB 
  • Thread starter Thread starter ognik
  • Start date Start date
  • Tags Tags
    Laguerre Polynomial
Click For Summary

Discussion Overview

The discussion centers around finding the zeros of generalized Laguerre polynomials, specifically the polynomial defined as $L^{\alpha}_N (x_i) = 0$. Participants explore various programming libraries and tools, particularly focusing on Mathematica and Fortran, to compute these zeros for potentially high orders of polynomials.

Discussion Character

  • Technical explanation
  • Exploratory
  • Homework-related

Main Points Raised

  • One participant inquires about available program libraries or subroutines for finding zeros of generalized Laguerre polynomials.
  • Another participant suggests using Mathematica's command LaguerreL[n,a,x] to generate the polynomials and find their zeros, asking for clarification on the specific value of a and the polynomial order.
  • A participant expresses a need for a solution that can be integrated into a Fortran program, mentioning the requirement for polynomial orders up to 100.
  • Participants discuss the output of Mathematica when using the Roots function, with one participant seeking a way to simplify the output to just the numerical roots.
  • Another participant clarifies that the output from Mathematica provides exact values for the roots and suggests using N[Solve[...]] for approximate numerical values.
  • A participant expresses interest in exporting results from Mathematica to a file format like CSV and notes the limitations in precision for higher-order polynomials.

Areas of Agreement / Disagreement

Participants generally agree on the utility of Mathematica for finding zeros of generalized Laguerre polynomials, but there is no consensus on the best approach for integrating this into a Fortran program or on the precision of the results for high-order polynomials.

Contextual Notes

Participants mention limitations regarding the precision of roots obtained from Mathematica, particularly for higher-order polynomials, and the complexity of output when using certain commands.

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 $
 
Physics 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.
 
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.
 

Similar threads

Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K