Skip to main content

vedaksha_math/
lib.rs

1// Copyright © 2026 ArthIQ Labs LLC. All rights reserved.
2// Vedākṣha — Vision from Vedas
3// Licensed under BSL 1.1. See LICENSE file.
4// Contact: info@arthiq.net | https://vedaksha.net
5
6//! # vedaksha-math
7//!
8//! Numeric primitives for astronomical and astrological computation.
9//!
10//! This crate provides foundational mathematical operations used throughout
11//! the Vedākṣha platform:
12//!
13//! - **Chebyshev polynomials** — evaluation of Chebyshev polynomials of the
14//!   first kind, used for JPL ephemeris interpolation
15//! - **Angle arithmetic** — normalization, conversion between degrees, radians,
16//!   DMS, and HMS representations
17//! - **Interpolation** — Hermite and Lagrange polynomial interpolation
18//! - **Rotation matrices** — 3×3 rotation matrices for coordinate frame
19//!   transformations
20//!
21//! All functions are `no_std` compatible with no `unsafe` code.
22
23#![cfg_attr(not(feature = "std"), no_std)]
24#![deny(unsafe_code)]
25#![warn(clippy::all, clippy::pedantic)]
26#![allow(clippy::module_name_repetitions)]
27
28#[cfg(not(feature = "std"))]
29extern crate alloc;
30
31pub mod angle;
32pub mod chebyshev;
33pub mod interpolation;
34pub mod matrix;