MathLab
A Powerful Math Library for Rust
Install
Run the following Cargo command in your project directory:
cargo add mathlab
or
Add the following line to your Cargo.toml
file with the specified version:
= "MAJOR.MINOR.PATCH"
Changelog
https://github.com/dr-montasir/mathlab/blob/master/CHANGELOG.md
Usage
// example
use math;
or
// example
use ;
Documentation
https://docs.rs/mathlab
MathLab :
A Powerful Math Library for Rust
All Items [ 85 ]
Modules
1. constants [ 14 items ]
constant | constant | constant |
---|---|---|
E | INF_F32 | INF_F64 |
LN2 | LN10 | LOG2E |
LOG10E | NAN_F32 | NAN_F64 |
2. functions [ 71 items ]
-
args [ 1 item ]
function | function | function |
---|---|---|
monolist |
-
num [ 32 items ]
function | function | function |
---|---|---|
abs | add | ceil |
deg_to_rad | divi | exp |
f64_to_f32 | fact | floor |
fround gamma i64_to_f64 inv is_inf_f32 is_inf_f64 is_nan_f32 is_nan_f64 is_ninf_f32 is_ninf_f64 ln ln1p log2 log10 mult pow rad_to_deg rem round sign sqr subt u64_to_f64
-
vec [ 20 items ]
function | function | function |
---|---|---|
abs_vec | ceil_vec | deg_to_rad_vec |
exp_vec | f64_to_f32_vec | fact_vec |
floor_vec | fround_vec | gamma_vec |
i64_to_f64_vec inv_vec ln_vec ln1p_vec log2_vec log10_vec rad_to_deg_vec round_vec sign_vec sqr_vec u64_to_f64_vec
-
num_vec [ 6 items ]
function | function | function |
---|---|---|
add_num_vec | divi_num_vec | mult_num_vec |
pow_num_vec | rem_num_vec | subt_num_vec |
-
vec_num [ 6 items ]
function | function | function |
---|---|---|
add_vec_num | divi_vec_num | mult_vec_num |
pow_vec_num | rem_vec_num | subt_vec_num |
-
vec_vec [ 6 items ]
function | function | function |
---|---|---|
add_vec_vec | divi_vec_vec | mult_vec_vec |
pow_vec_vec | rem_vec_vec | subt_vec_vec |
3. math [ 85 items ]
The math module contains all constants and functions.