Skip to main content

Module phi

Module phi 

Source
Expand description

The phi-functions of exponential integrators, phi_N(z) = sum z^n/(n+N)!, shared by every element type. ps.rs/pd.rs supply a compile-time series length, while the element-agnostic default iterates to the element’s own epsilon.

Constants§

PHI_TABLE_ORDERS
How many orders the runtime-order phi has its series length precomputed for. See phi_terms_table.

Functions§

phi_internal
The runtime-order twin of phi_internal_n: the same two arms with N as a value. The 1/N! prefactor and the per-term ratios are the same running products, so the two forms agree to the bit for the same terms.
phi_internal_n
phi_N(z) = sum_{n>=0} z^n/(n+N)!, the exponential-integrator functions.
phi_series_terms
Series terms phi_N needs on |z| < N to converge to a relative eps.
phi_terms_table
phi_series_terms for every order below PHI_TABLE_ORDERS, capped at max_iterations: the table the f32/f64 runtime-order entries build in a const block per policy, so the term count is an index per call rather than a search.
Last built: 2026-09-08 21:35:55 UTC