numra-fde
Fractional differential equation solvers for the Numra workspace — L1 scheme for Caputo derivatives, with Mittag-Leffler utilities for analytical comparison.
Solves time-fractional ODEs D^α y(t) = f(t, y) for α ∈ (0, 1] using the Caputo derivative. Reduces to the ordinary derivative at α = 1; preserves the "memory" property for α < 1 (the right-hand side depends on the full history of y).
Example
use ;
// Fractional relaxation: D^α y = -λy, y(0) = 1
let opts = default.dt;
let _ = solve;
What's in this crate
L1Solver— L1 scheme for the Caputo derivative, accuracyO(dt^{2-α})FdeSystemtrait — user-defined RHS plus fractional orderαFdeOptions/FdeResult— configuration and diagnosticscaputo_weights— quadrature weights for direct usemittag_leffler,mittag_leffler_1— closed-form Mittag-Leffler function for analytical reference (the FDE analogue ofexpfor fractional relaxation)gamma— gamma function used internally and re-exported
Composes with
numra-interpfor post-hoc resampling of the trajectory onto fixed gridsnumra-statsfor descriptive statistics on fractional-decay trajectoriesnumra-fftfor spectral analysis of long-memory dynamicsnumra-specialfor cross-checking against alternative Mittag-Leffler implementations
See cross-formalism tests for the ODE-approximates-FDE consistency check at α = 1.
Install
[]
= "0.1"
Or via the umbrella crate:
[]
= "0.1"
Documentation
- API: https://docs.rs/numra-fde
- Book: Fractional DEs
- Source: https://github.com/moussaoutlook/numra-rs/tree/main/numra-fde
License
Numra Academic & Research License (Non-Commercial). Academic and research use is free; commercial use requires a separate license — contact contact@spectralautomata.com. See LICENSE.