gananayantra is a professional-grade, multi-industry calculation engine written in Rust. It provides reusable, pure-function calculators across diverse domains including Finance, Health, Energy, Physics, and more.
- Library-First: All logic is exposed as pure functions. No forced CLI or I/O.
- Safe: Uses
Result<T, String>for error handling. - Comprehensive: Covers 10+ industries with 50+ calculators.
- Zero-Dependency Core: Minimal dependencies (only
chronofor dates).
- Finance: ROI, TVM, Compound Interest, Loans, Tax, Retirement, Auto Loans
- Health: BMI, BMR, Body Fat, Pregnancy, Fitness
- Energy: Power Consumption, Electricity Cost
- Physics: Fluid Dynamics (Reynolds), Kinematics (KE/PE)
- Logistics: Freight Volumetric Weight, EOQ
- Climate: Carbon Footprint (Electricity, Fuel)
- Geo: Earth Distance (Haversine), Horizon
- Water: Pressure at Depth, Flow Rate
- Space: Orbital Velocity, Escape Velocity, Period
- Math: Statistics, Geometry, Advanced Math
- Utilities: Lifestyle tools, Percentage, Password Gen (Basic)
- Specialized: Building, Electronics, Networking, Science
Add this to your Cargo.toml:
[dependencies]
gananayantra-rusting = "1.2.0"use gananayantra::finance::tvm::future_value;
fn main() {
let fv = future_value(10_000.0, 0.08, 5).unwrap();
println!("Future Value: {:.2}", fv);
}Check the examples/ directory for usage of every module:
examples/finance_tvm.rsexamples/physics.rsexamples/logistics.rsexamples/climate.rs- ...and many more.
Run an example:
cargo run --example physicsMIT