pykep_core/math/mod.rs
1// Copyright (c) 2026 pykep-rust contributors
2// SPDX-License-Identifier: MPL-2.0
3
4//! Numerical functions used by orbital algorithms.
5//!
6//! ```
7//! use pykep_core::math::{linalg::cross, stumpff::stumpff_c};
8//!
9//! assert_eq!(cross(&[1.0, 0.0, 0.0], &[0.0, 1.0, 0.0])?, [0.0, 0.0, 1.0]);
10//! assert!((stumpff_c(0.0)? - 0.5).abs() < f64::EPSILON);
11//! # Ok::<(), pykep_core::PykepError>(())
12//! ```
13
14/// Kepler-equation residuals and derivatives.
15pub mod kepler_equations;
16/// Fixed-size vector and matrix operations.
17pub mod linalg;
18/// Numerically stable Stumpff functions.
19pub mod stumpff;