fphics 0.1.0

A pure zero-dependency rust physics and maths library that deals with mathematical conversions, and physics calculations using accurate, verified formulas - with zero estimations to ensure accuracy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use fphics::physics::suvat::*;
use fphics::errors::FphicsError;

fn main() -> Result<(), FphicsError> {
    let times = SuvatOps1D::new()
    .displacement(-2.5)
    .initial_velocity(24.0)
    .final_velocity(25.0)
    .acceleration(-9.8)
    .calculate_time()?;
    
    for t in times {
    	println!("{t} seconds");
    }

    Ok(())
}