fphics
A lightweight mechanics, physics and maths solver written with zero dependencies - enforcing type safety with useful error messages.
What does fphics do, and what is it?
- First of all, the name is an abbreviation of the following:
- f - Fast (Since it's a lightweight library)
- ph - Physics (Includes physics formulas for motion, forces, electricity...etc)
- ic - Mechanics (Includes mechanics formulas, which of course are interchangeable with physics ones in most cases)
- s - Mathematics (Includes maths formulas for percentages, unit conversions...etc)
Features
There's various mathematical and scientific operations possible with this library:
- Kinematics equations operations
- Unit conversions
NOTE: This library does not use any dependencies and all operations dealt with involve accurate mathematics with verified equations to efficiently produce exact accurate values without estimations!
Future features
- Electricity equations operations
- Operations dealing with forces and motion
How to use? (Simple code example for calculating time)
use *;
use FphicsError;
An example using the maths module to convert cm to m
use *;
use FphicsError;
NOTE: You can also run the examples located in the examples/ directory.
You can find the documentation on:
Thank you for checking out fphics!