BESSELJ
Updated 2024-03-13 20:47:22.890000
Syntax
SELECT [westclintech].[wct].[BESSELJ] (
<@x, float,>
,<@n, float,>)
Description
Use the scalar function BESSELJ function to calculate the Bessel function of the first kind J±v(z). The BESSELJ function is defined by
J_n(x) = \sum_{k=0}^\infty \frac{(-1)^k}{k!\, \Gamma(n+k+1)} {\left(\frac{x}{2}\right)}^{n + 2k}
Where Γ(x) is the gamma function.
Arguments
@x
is the value at which to evaluate the function. @x is an expression of type float or of a type that can be implicitly converted to float.
@n
is the order of the Bessel function. @n is an expression of type float or of a type that can be implicitly converted to float.
Return Type
float
Remarks
@n is truncated to zero decimal places.
If @n is less than zero, BESSELJ returns an error.
Examples
select wct.BESSELJ(1, 5);
This produces the following result.
{"columns":[{"field":"column 1","headerClass":"ag-right-aligned-header","cellClass":"ag-right-aligned-cell"}],"rows":[{"column 1":"0.000249757730211234"}]}