Skip to main content

Module vector_calculus

Module vector_calculus 

Source
Expand description

Vector calculus (Calculus plan §4.3) — the differential operators (grad, div, curl, Laplacian) symbolically over the CAS, and the integral side (line integrals, surface flux) numerically, with the divergence/Green theorems as validation.

  • differential — symbolic ∇f, ∇·F, ∇×F, ∇²f built on the CAS differentiate; provenance-bearing operators, not numeric finite differences.
  • integrals — numeric line integral / work and surface flux by quadrature over parametric curves/surfaces given as closures.

Fail-closed on dimension mismatch (curl needs exactly 3 components/vars).

Re-exports§

pub use differential::curl;
pub use differential::divergence;
pub use differential::gradient;
pub use differential::laplacian;
pub use integrals::line_integral_scalar;
pub use integrals::line_integral_work;
pub use integrals::surface_flux;

Modules§

differential
Symbolic differential operators over the CAS, built on differentiate/simplify.
integrals
Numeric line and surface integrals over parametric curves/surfaces given as closures. Derivatives of the parametrization are taken by central finite difference, so the caller supplies only the position map. Trapezoidal quadrature.

Enums§

VecCalcError