1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
---
title: specialfunctions
---
# Special functions
[TOC]
## `legendre` - Calculate Legendre polynomials
### Status
Experimental
### Description
Computes the value of the n-th Legendre polynomial at a specified point.
Currently only 64 bit floating point is supported.
This is an `elemental` function.
### Syntax
`result = ` [[stdlib_specialfunctions(module):legendre(interface)]] ` (n, x)`
### Arguments
`n`: Shall be a scalar of type `real(real64)`.
`x`: Shall be a scalar or array (this function is elemental) of type `real(real64)`.
### Return value
The function result will be the value of the `n`-th Legendre polynomial, evaluated at `x`.
## `dlegendre` - Calculate first derivatives of Legendre polynomials
### Status
Experimental
### Description
Computes the value of the first derivative of the n-th Legendre polynomial at a specified point.
Currently only 64 bit floating point is supported.
This is an `elemental` function.
### Syntax
`result = ` [[stdlib_specialfunctions(module):dlegendre(interface)]] ` (n, x)`
### Arguments
`n`: Shall be a scalar of type `real(real64)`.
`x`: Shall be a scalar or array (this function is elemental) of type `real(real64)`.
### Return value
The function result will be the value of the first derivative of the `n`-th Legendre polynomial, evaluated at `x`.
|