gsl (version 1.6-0)

Laguerre: Laguerre functions

Description

Laguerre functons as per the Gnu Scientific Library reference manual section 7.22

Usage

laguerre_1(a, x, give=FALSE, strict=TRUE)
laguerre_2(a, x, give=FALSE, strict=TRUE)
laguerre_3(a, x, give=FALSE, strict=TRUE)
laguerre_n(n, a, x, give=FALSE, strict=TRUE)

Arguments

a
input: real values
x
input: real values
n
input: integer values
give
Boolean, with TRUE meaning to return error info
strict
Boolean, with TRUE meaning to return NaN if nonzero status is returned by the GSL function (FALSE means to return the value: use with caution)

References

http://www.gnu.org/software/gsl

Examples

Run this code
x <- seq(from=0,to=6,len=100)
plot(x,laguerre_n(2,0,x),xlim=c(0,6),ylim=c(-2,3),type="l",xaxt="n",yaxt="n",bty="n",xlab="",ylab="",main="Figure 22.9, p780")

lines(x,laguerre_n(3,0,x))
lines(x,laguerre_n(4,0,x))
lines(x,laguerre_n(5,0,x))
axis(1,pos=0)
axis(2,pos=0)

Run the code above in your browser using DataCamp Workspace