pub fn bessel_j(n: i32, x: &Expression) -> ExpressionExpand description
Bessel function of the first kind J_n(x)
§Mathematical Properties
- J_0(0) = 1, J_n(0) = 0 for n > 0
- J_{-n}(x) = (-1)^n J_n(x)
- Recurrence: J_{n+1}(x) = (2n/x)J_n(x) - J_{n-1}(x)
§Examples
use mathhook_core::functions::special::bessel_j;
use mathhook_core::{Expression, Number};
let j0 = bessel_j(0, &Expression::Number(Number::Integer(0)));
assert_eq!(j0, Expression::Number(Number::Integer(1)));