pub struct MathieuWorkspace { /* private fields */ }
Expand description
The Mathieu functions can be computed for a single order or for multiple orders, using array-based routines. The array-based routines require a preallocated workspace.
Implementations
sourceimpl MathieuWorkspace
impl MathieuWorkspace
sourcepub fn new(n: usize, qmax: f64) -> Option<MathieuWorkspace>
pub fn new(n: usize, qmax: f64) -> Option<MathieuWorkspace>
This function returns a workspace for the array versions of the Mathieu routines. The arguments n and qmax specify the maximum order and q-value of Mathieu functions which can be computed with this workspace.
sourcepub fn mathieu_a(n: i32, q: f64) -> (Value, Result)
pub fn mathieu_a(n: i32, q: f64) -> (Value, Result)
This routine computes the characteristic values a_n(q), b_n(q) of the Mathieu functions ce_n(q,x) and se_n(q,x), respectively.
sourcepub fn mathieu_b(n: i32, q: f64) -> (Value, Result)
pub fn mathieu_b(n: i32, q: f64) -> (Value, Result)
This routine computes the characteristic values a_n(q), b_n(q) of the Mathieu functions ce_n(q,x) and se_n(q,x), respectively.
sourcepub fn mathieu_a_array(
&mut self,
order_min: i32,
order_max: i32,
q: f64,
result_array: &mut [f64]
) -> Value
pub fn mathieu_a_array(
&mut self,
order_min: i32,
order_max: i32,
q: f64,
result_array: &mut [f64]
) -> Value
This routine computes a series of Mathieu characteristic values a_n(q), b_n(q) for n from order_min to order_max inclusive, storing the results in the array result_array.
sourcepub fn mathieu_b_array(
&mut self,
order_min: i32,
order_max: i32,
q: f64,
result_array: &mut [f64]
) -> Value
pub fn mathieu_b_array(
&mut self,
order_min: i32,
order_max: i32,
q: f64,
result_array: &mut [f64]
) -> Value
This routine computes a series of Mathieu characteristic values a_n(q), b_n(q) for n from order_min to order_max inclusive, storing the results in the array result_array.
sourcepub fn mathieu_ce(n: i32, q: f64, x: f64) -> (Value, Result)
pub fn mathieu_ce(n: i32, q: f64, x: f64) -> (Value, Result)
This routine computes the angular Mathieu functions ce_n(q,x) and se_n(q,x), respectively.
sourcepub fn mathieu_se(n: i32, q: f64, x: f64) -> (Value, Result)
pub fn mathieu_se(n: i32, q: f64, x: f64) -> (Value, Result)
This routine computes the angular Mathieu functions ce_n(q,x) and se_n(q,x), respectively.
sourcepub fn mathieu_ce_array(
&mut self,
nmin: i32,
nmax: i32,
q: f64,
x: f64,
result_array: &mut [f64]
) -> Value
pub fn mathieu_ce_array(
&mut self,
nmin: i32,
nmax: i32,
q: f64,
x: f64,
result_array: &mut [f64]
) -> Value
This routine computes a series of the angular Mathieu functions ce_n(q,x) and se_n(q,x) of order n from nmin to nmax inclusive, storing the results in the array result_array.
sourcepub fn mathieu_se_array(
&mut self,
nmin: i32,
nmax: i32,
q: f64,
x: f64,
result_array: &mut [f64]
) -> Value
pub fn mathieu_se_array(
&mut self,
nmin: i32,
nmax: i32,
q: f64,
x: f64,
result_array: &mut [f64]
) -> Value
This routine computes a series of the angular Mathieu functions ce_n(q,x) and se_n(q,x) of order n from nmin to nmax inclusive, storing the results in the array result_array.
sourcepub fn mathieu_Mc(j: i32, n: i32, q: f64, x: f64) -> (Value, Result)
pub fn mathieu_Mc(j: i32, n: i32, q: f64, x: f64) -> (Value, Result)
This routine computes the radial j-th kind Mathieu functions Mc_n^{(j)}(q,x) and Ms_n^{(j)}(q,x) of order n.
The allowed values of j are 1 and 2. The functions for j = 3,4 can be computed as M_n^{(3)} = M_n^{(1)} + iM_n^{(2)} and M_n^{(4)} = M_n^{(1)} - iM_n^{(2)}, where M_n^{(j)} = Mc_n^{(j)} or Ms_n^{(j)}.
sourcepub fn mathieu_Ms(j: i32, n: i32, q: f64, x: f64) -> (Value, Result)
pub fn mathieu_Ms(j: i32, n: i32, q: f64, x: f64) -> (Value, Result)
This routine computes the radial j-th kind Mathieu functions Mc_n^{(j)}(q,x) and Ms_n^{(j)}(q,x) of order n.
The allowed values of j are 1 and 2. The functions for j = 3,4 can be computed as M_n^{(3)} = M_n^{(1)} + iM_n^{(2)} and M_n^{(4)} = M_n^{(1)} - iM_n^{(2)}, where M_n^{(j)} = Mc_n^{(j)} or Ms_n^{(j)}.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MathieuWorkspace
impl !Send for MathieuWorkspace
impl !Sync for MathieuWorkspace
impl Unpin for MathieuWorkspace
impl UnwindSafe for MathieuWorkspace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more