Registry / utility / finitediff

finitediff

JSON →
library0.2.0rscratesunverified

Finite/numerical differentiation.

# Cargo.toml [dependencies] finitediff = "0.2.0"
INSTALL
IMPORT
SIG · FINITEDIFF
F
finitediff
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

central_diff
use finitediff::central_diff;

Computes the central difference derivative of a function at a point.

use finitediff::central_diff; fn f(x: &[f64]) -> f64 { x[0].sin() } fn main() { let x = vec![1.0]; let df = central_diff(&f, &x, 1e-6); println!("{:?}", df); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
finitediff — cargo add finitediff · libregistry