vedaksha_math/lib.rs
1// Copyright © 2026 ArthIQ Labs LLC. All rights reserved.
2// Vedaksha — Vision from Vedas
3// SPDX-License-Identifier: BUSL-1.1
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 Vedaksha 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
26#[cfg(not(feature = "std"))]
27extern crate alloc;
28
29pub mod angle;
30pub mod chebyshev;
31pub mod interpolation;
32pub mod matrix;