Crates.io | initial_conditions |
lib.rs | initial_conditions |
version | 0.4.0 |
source | src |
created_at | 2018-02-23 08:27:41.219878 |
updated_at | 2018-03-08 06:13:58.043888 |
description | A helpful physics lib: mechanics, useful constants, and more. |
homepage | |
repository | https://github.com/someguynamedmatt/initial_conditions |
max_upload_size | |
id | 52489 |
size | 22,902 |
Add initial_conditions
to your Cargo.toml
file:
[dependencies]
initial_conditions = "0.3.0"
Check the crates.io badge above to see which version is the latest
And now use it in your project...
extern crate initial_conditions;
use initial_conditions::kinematics::*;
let w = work::work(/* args */);
Be sure to read the documentation to see what the lib has to offer.
All arguments and return values are implicitly returned in SI units (i.e. radians. Specific units are noted in the documentation)
Constants are exported directly from src/lib.rs
Generalized modules are exported in the main src/lib.rs
file
"Generalized", here, means general physics topics: kinematics, electromagnetism, astro, etc.
// Example structure only
lib.rs
|
| kinematics/
|
| linear_motion.rs
| circular_motion.rs
| electromag/
| magnetism.rs
This is still, very much, a work in progress. The goal of this project is to hold simple (Physics 101) equations, but also more detailed work (n-dimensional physics, integration approximations, etc.). Expect most work to come incrementally, starting from the more simple topics to the more advanced.
Please reach out if something is off or there is any confusion