lawsynth/crates/lawsynth-differentiate
caelum0x 7a06febeb6 chore(release): inherit repository metadata on all crates
Crates inherited version/license/edition from [workspace.package] but not
`repository`, so every crate published without a repository link. Add
`repository.workspace = true` uniformly, completing the
description+version+license+repository metadata `cargo publish` and crates.io
expect. No build impact.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-06 13:08:47 +03:00
..
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00
2026-08-16 21:04:23 +03:00

lawsynth-differentiate

Deterministic derivative estimation for equation discovery. Supported methods include finite differences, Savitzky–Golay smoothing, spectral differentiation, natural cubic splines, total-variation regularization, irregular three-point estimates, and weak-form integrals.

Use

use lawsynth_differentiate::differentiate_series;

let derivative = differentiate_series(&[0.0, 1.0, 2.0, 3.0], &[0.0, 1.0, 4.0, 9.0])?;
assert_eq!(derivative.len(), 4);
# Ok::<(), lawsynth_differentiate::DifferentiationError>(())

Choose a method through DerivativeConfig and retain that configuration with results. Derivatives amplify noise and edge estimates are less reliable; this crate exposes methods, not a claim that a derivative is directly observed.