hermite {EQL} | R Documentation |
Hermite Polynomials
Description
Computes the Hermite polynomial .
Usage
hermite(x, n, prob = TRUE)
Arguments
x |
a numeric vector or array giving the values at which the Hermite polynomial should be evaluated. |
n |
an integer vector or array giving the degrees of the Hermite
polynomials. If |
prob |
logical. If |
Details
The Hermite polynomials are given by:
-
with
and
, (Probabilists' version
)
-
, with
and
. (Physicists' version
)
and the relationship between the two versions is given by
The term ‘probabilistic’ is motivated by the fact that in this
case the Hermite polynomial can be as well defined by
where denotes the density function of the
standard normal distribution and
denotes the
th derivative of
with respect
to
.
If the argument n
is a vector it must be of the same
length as the argument x
or the length of the argument x
must be equal to one. The Hermite polynomials are then evaluated
either at with degree
or at
with degree
, respectively.
Value
the Hermite polynomial (either the probabilists' or the
physicists' version) evaluated at x
.
Author(s)
Thorn Thaler
References
Fedoryuk, M.V. (2001). Hermite polynomials. Encyclopaedia of Mathematics, Kluwer Academic Publishers.
Examples
2^(3/2)*hermite(sqrt(2)*5, 3) # = 940
hermite(5, 3, FALSE) # = 940
hermite(2:4, 1:3) # H_1(2), H_2(3), H_3(4)
hermite(2:4, 2) # H_2(2), H_2(3), H_2(4)
hermite(2, 1:3) # H_1(2), H_2(2), H_3(2)
## Not run:
hermite(1:3, 1:4) # Error!
## End(Not run)