[](https://github.com/dr-montasir/mathlab)[](https://crates.io/crates/mathlab)[](https://docs.rs/mathlab)[](https://choosealicense.com/licenses/apache-2.0)
# MathLab
> A Powerful Math Library for Rust
## Install
Run the following Cargo command in your project directory:
```shell
cargo add mathlab
```
or
Add the following line to your `Cargo.toml` file with the specified version:
```toml
mathlab = "MAJOR.MINOR.PATCH"
```
## Changelog
[![github](https://img.shields.io/badge/github-%20changelog-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/dr-montasir/mathlab/blob/master/CHANGELOG.md)
https://github.com/dr-montasir/mathlab/blob/master/CHANGELOG.md
## Usage
```rust
// examples
use mathlab::math;
fn main() {
let abs = math::abs(-2.0);
let add = math::add(0.1, 0.2);
let add_f64 = math::add(0.1, 0.2) as f64;
println!("{}", abs); // 2
println!("{}", add); // 0.30000000000000004
println!("{}", add_f64); // 0.30000000000000004
println!("{}", math::add(0.1, 0.2) as f32); // 0.3
println!("{}", math::fix64(0.1 + 0.2)); // 0.3
println!("{}", math::fix(0.1 + 0.2, 15)); // 0.3
println!("{}", math::to_fixed(0.1 + 0.2, 15)); // "0.3"
println!(
"{:?}",
math::subt_vec_vec(
&[0.1, 0.2, 0.3], &[0.3, 0.2, 0.1]
)
); // [-0.19999999999999998, 0.0, 0.19999999999999998]
println!(
// with vectors, use "{:?}" or "{:#?}".
"{:?}",
math::fix64_vec(
// Use the reference (&) before vector.
&math::subt_vec_vec(&[0.1, 0.2, 0.3], &[0.3, 0.2, 0.1]
))
); // [-0.2, 0.0, 0.2]
println!(
"{:?}",
math::sin_vec(&[0.5235987756, 1.5707963268])
); // [0.5, 1.0]
// [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
println!("{:?}", math::range(0.0, 0.1, 11, "asc"));
// [1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.0]
println!("{:?}", math::range(1.0, 0.1, 11, "desc"));
println!(
"{:#?}",
math::sin_deg_vec(&math::range(0.0, 1.0, 361, "asc"))
); // [0.0, ..., 0.5, ..., 1.0, ..., 0.5, ..., 0.0]
}
```
or
```rust
// examples
use mathlab::math::{
abs, add, fix64, fix64_vec, fix,
to_fixed, range, sin_vec,
sin_deg_vec, subt_vec_vec
};
fn main() {
let my_abs = abs(-2.0);
let my_add = add(0.1, 0.2);
let my_add_f64 = add(0.1, 0.2) as f64;
println!("{}", my_abs); // 2
println!("{}", my_add); // 0.30000000000000004
println!("{}", my_add_f64); // 0.30000000000000004
println!("{}", add(0.1, 0.2) as f32); // 0.3
println!("{}", fix64(0.1 + 0.2)); // 0.3
println!("{}", fix(0.1 + 0.2, 15)); // 0.3
println!("{}", to_fixed(0.1 + 0.2, 15)); // "0.3"
println!(
"{:?}",
subt_vec_vec(
&[0.1, 0.2, 0.3], &[0.3, 0.2, 0.1]
)
); // [-0.19999999999999998, 0.0, 0.19999999999999998]
println!(
// with vectors, use "{:?}" or "{:#?}".
"{:?}",
fix64_vec(
// Use the reference (&) before vector.
&subt_vec_vec(&[0.1, 0.2, 0.3], &[0.3, 0.2, 0.1]
))
); // [-0.2, 0.0, 0.2]
println!(
"{:?}",
sin_deg_vec(&[30.0, 90.0])
); // [0.5, 1.0]
// [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
println!("{:?}", range(0.0, 0.1, 11, "asc"));
// [1.0, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.0]
println!("{:?}", range(1.0, 0.1, 11, "desc"));
println!(
"{:#?}",
sin_deg_vec(&range(0.0, 1.0, 361, "asc"))
); // [0.0, ..., 0.5, ..., 1.0, ..., 0.5, ..., 0.0]
}
```
## Web 2.0 Demo Project
- **[on Vercel](https://mathlab-yew.vercel.app)** [![vercel](https://img.shields.io/badge/vercel-MathLab%20+%20yew-555555?style=for-the-badge&labelColor=000000&logo=vercel)](https://mathlab-yew.vercel.app)
- **[on GitHub](https://github.com/dr-montasir/mathlab-yew)** [![github](https://img.shields.io/badge/github-MathLab%20+%20yew-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/dr-montasir/mathlab-yew)
## Web 3.0 Demo Project
### Canister | Smart Contract |
> On the [Internet Computer](https://internetcomputer.org/), smart contracts come in the form of [canisters](https://internetcomputer.org/how-it-works/canister-lifecycle/). These are computational units which bundle together code and state.
- **[on Internet Computer](https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=ox3r2-3aaaa-aaaag-allya-cai)** [![Internet Computer](https://img.shields.io/badge/Internet%20Computer-MathLab%20+%20ic-8d3590?style=for-the-badge&labelColor=150d5a&logo=logo)](https://a4gq6-oaaaa-aaaab-qaa4q-cai.raw.icp0.io/?id=ox3r2-3aaaa-aaaag-allya-cai)
- **[on GitHub](https://github.com/dr-montasir/mathlab-ic)** [![github](https://img.shields.io/badge/github-MathLab%20+%20ic-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/dr-montasir/mathlab-ic)
## Documentation
> #### **[https://docs.rs/mathlab](https://docs.rs/mathlab)**
>
> **MathLab :**
>
> A Powerful Math Library for Rust
>
> [All Items](https://docs.rs/mathlab/latest/mathlab/all.html) [ 209 ]
### Modules
### 1. [constants](https://docs.rs/mathlab/latest/mathlab/constants/index.html) [ 16 items ]
| constant | constant | constant |
| :-------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------: | :-------------------------------------------------------------------------------: |
| [E](https://docs.rs/mathlab/latest/mathlab/constants/constant.E.html) | [H_PI](https://docs.rs/mathlab/latest/mathlab/constants/constant.H_PI.html) | [INF_F32](https://docs.rs/mathlab/latest/mathlab/constants/constant.INF_F32.html) |
| [INF_F64](https://docs.rs/mathlab/latest/mathlab/constants/constant.INF_F64.html) | [LN2](https://docs.rs/mathlab/latest/mathlab/constants/constant.LN2.html) | [LN10](https://docs.rs/mathlab/latest/mathlab/constants/constant.LN10.html) |
| [LOG2E](https://docs.rs/mathlab/latest/mathlab/constants/constant.LOG2E.html) | [LOG10E](https://docs.rs/mathlab/latest/mathlab/constants/constant.LOG10E.html) | [NAN_F32](https://docs.rs/mathlab/latest/mathlab/constants/constant.NAN_F32.html) |
[NAN_F64](https://docs.rs/mathlab/latest/mathlab/constants/constant.NAN_F64.html) [NINF_F32](https://docs.rs/mathlab/latest/mathlab/constants/constant.NINF_F32.html) [NINF_F64](https://docs.rs/mathlab/latest/mathlab/constants/constant.NINF_F64.html) [PHI](https://docs.rs/mathlab/latest/mathlab/constants/constant.PHI.html) [PI](https://docs.rs/mathlab/latest/mathlab/constants/constant.PI.html) [Q_PI](https://docs.rs/mathlab/latest/mathlab/constants/constant.Q_PI.html) [TAU](https://docs.rs/mathlab/latest/mathlab/constants/constant.TAU.html)
### 2. [functions](https://docs.rs/mathlab/latest/mathlab/functions/index.html) [ 193 items ]
- ### [args](https://docs.rs/mathlab/latest/mathlab/functions/args/index.html) [ 6 items ]
| function | function | function |
| :--------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: |
| [hypot](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.hypot.html) | [monolist](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.monolist.html) | [rand](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.rand.html) |
| [range](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.range.html) | [string_to_u64](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.string_to_u64.html) | [to_fixed](https://docs.rs/mathlab/latest/mathlab/functions/args/fn.to_fixed.html) |
- ### [num](https://docs.rs/mathlab/latest/mathlab/functions/num/index.html) [ 88 items ]
| function | function | function |
| :-------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------: |
| [abs](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.abs.html) | [add](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.add.html) | [acos](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acos.html) |
| [acos_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acos_deg.html) | [acosh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acosh.html) | [acosh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acosh_deg.html) |
| [acot](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acot.html) | [acot_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acot_deg.html) | [acoth](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acoth.html) |
[acoth_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acoth_deg.html) [acsc](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acsc.html) [acsc_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acsc_deg.html) [acsch](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acsch.html) [acsch_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.acsch_deg.html) [asec](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asec.html) [asec_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asec_deg.html) [asech](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asech.html) [asech_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asech_deg.html) [asin](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asin.html) [asin_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asin_deg.html) [asinh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asinh.html) [asinh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.asinh_deg.html) [atan](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.atan.html) [atan_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.atan_deg.html) [atanh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.atanh.html) [atanh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.atanh_deg.html) [cbrt](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cbrt.html) [ceil](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.ceil.html) [cot](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cot.html) [cot_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cot_deg.html) [coth](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.coth.html) [coth_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.coth_deg.html) [cos](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cos.html) [cos_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cos_deg.html) [cosh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cosh.html) [cosh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cosh_deg.html) [csc](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.csc.html) [csc_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.csc_deg.html) [csch](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.csch.html) [csch_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.csch_deg.html) [cube](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.cube.html) [deg_to_rad](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.deg_to_rad.html) [divi](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.divi.html) [exp](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.exp.html) [f64_to_f32](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.f64_to_f32.html) [fact](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.fact.html) [fix](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.fix.html) [fix64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.fix64.html) [floor](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.floor.html) [fround](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.fround.html) [gamma](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.gamma.html) [i64_to_f64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.i64_to_f64.html) [inv](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.inv.html) [is_inf_f32](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_inf_f32.html) [is_inf_f64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_inf_f64.html) [is_nan_f32](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_nan_f32.html) [is_nan_f64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_nan_f64.html) [is_ninf_f32](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_ninf_f32.html) [is_ninf_f64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.is_ninf_f64.html) [ln](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.ln.html) [ln1p](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.ln1p.html) [log2](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.log2.html) [log10](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.log10.html) [mult](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.mult.html) [nrt](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.nrt.html) [perimeter](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.perimeter.html) [pow](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.pow.html) [rad_to_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.rad_to_deg.html) [rem](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.rem.html) [round](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.round.html) [sec](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sec.html) [sec_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sec_deg.html) [sech](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sech.html) [sech_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sech_deg.html) [sign](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sign.html) [sin](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sin.html) [sin_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sin_deg.html) [sinh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sinh.html) [sinh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sinh_deg.html) [sqr](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sqr.html) [sqrt](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.sqrt.html) [subt](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.subt.html) [tan](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.tan.html) [tan_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.tan_deg.html) [tanh](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.tanh.html) [tanh_deg](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.tanh_deg.html) [trunc](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.trunc.html) [u64_to_f64](https://docs.rs/mathlab/latest/mathlab/functions/num/fn.u64_to_f64.html)
- ### [vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/index.html) [ 75 items ]
| function | function | function |
| :---------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: |
| [abs_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.abs_vec.html) | [acos_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acos_vec.html) | [acos_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acos_deg_vec.html) |
| [acosh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acosh_vec.html) | [acosh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acosh_deg_vec.html) | [acot_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acot_vec.html) |
| [acot_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acot_deg_vec.html) | [acoth_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acoth_vec.html) | [acoth_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acoth_deg_vec.html) |
[acsc_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acsc_vec.html) [acsc_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acsc_deg_vec.html) [acsch_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acsch_vec.html) [acsch_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.acsch_deg_vec.html) [asec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asec_vec.html) [asec_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asec_deg_vec.html) [asech_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asech_vec.html) [asech_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asech_deg_vec.html) [asin_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asin_vec.html) [asin_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asin_deg_vec.html) [asinh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asinh_vec.html) [asinh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.asinh_deg_vec.html) [atan_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.atan_vec.html) [atan_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.atan_deg_vec.html) [atanh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.atanh_vec.html) [atanh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.atanh_deg_vec.html) [cbrt_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cbrt_vec.html) [ceil_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.ceil_vec.html) [cos_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cos_vec.html) [cos_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cos_deg_vec.html) [cosh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cosh_vec.html) [cosh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cosh_deg_vec.html) [cot_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cot_vec.html) [cot_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cot_deg_vec.html) [coth_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.coth_vec.html) [coth_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.coth_deg_vec.html) [csc_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.csc_vec.html) [csc_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.csc_deg_vec.html) [csch_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.csch_vec.html) [csch_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.csch_deg_vec.html) [cube_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.cube_vec.html) [deg_to_rad_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.deg_to_rad_vec.html) [exp_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.exp_vec.html) [f64_to_f32_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.f64_to_f32_vec.html) [fact_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.fact_vec.html) [fix64_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.fix64_vec.html) [floor_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.floor_vec.html) [fround_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.fround_vec.html) [gamma_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.gamma_vec.html) [i64_to_f64_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.i64_to_f64_vec.html) [inv_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.inv_vec.html) [ln_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.ln_vec.html) [ln1p_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.ln1p_vec.html) [log2_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.log2_vec.html) [log10_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.log10_vec.html) [rad_to_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.rad_to_deg_vec.html) [rand_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.rand_vec.html) [round_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.round_vec.html) [sec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sec_vec.html) [sec_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sec_deg_vec.html) [sech_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sech_vec.html) [sech_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sech_deg_vec.html) [sign_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sign_vec.html) [sin_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sin_deg_vec.html) [sin_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sin_vec.html) [sinh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sinh_vec.html) [sinh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sinh_deg_vec.html) [sqr_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sqr_vec.html) [sqrt_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.sqrt_vec.html) [string_to_u64_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.string_to_u64_vec.html) [tan_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.tan_deg_vec.html) [tan_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.tan_vec.html) [tanh_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.tanh_vec.html) [tanh_deg_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.tanh_deg_vec.html) [trunc_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.trunc_vec.html) [u64_to_f64_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec/fn.u64_to_f64_vec.html)
- ### [num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/index.html) [ 8 items ]
| function | function | function |
| :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------: |
| [add_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.add_num_vec.html) | [divi_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.divi_num_vec.html) | [mult_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.mult_num_vec.html) |
| [nrt_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.nrt_num_vec.html) | [perimeter_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.perimeter_num_vec.html) | [pow_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.pow_num_vec.html) |
| [rem_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.rem_num_vec.html) | [subt_num_vec](https://docs.rs/mathlab/latest/mathlab/functions/num_vec/fn.subt_num_vec.html) | |
- ### [vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/index.html) [ 8 items ]
| function | function | function |
| :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------: |
| [add_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.add_vec_num.html) | [divi_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.divi_vec_num.html) | [mult_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.mult_vec_num.html) |
| [nrt_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.nrt_vec_num.html) | [perimeter_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.perimeter_vec_num.html) | [pow_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.pow_vec_num.html) |
| [rem_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.rem_vec_num.html) | [subt_vec_num](https://docs.rs/mathlab/latest/mathlab/functions/vec_num/fn.subt_vec_num.html) | |
- ### [vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/index.html) [ 8 items ]
| function | function | function |
| :-----------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------: |
| [add_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.add_vec_vec.html) | [divi_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.divi_vec_vec.html) | [mult_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.mult_vec_vec.html) |
| [nrt_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.nrt_vec_vec.html) | [perimeter_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.perimeter_vec_vec.html) | [pow_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.pow_vec_vec.html) |
| [rem_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.rem_vec_vec.html) | [subt_vec_vec](https://docs.rs/mathlab/latest/mathlab/functions/vec_vec/fn.subt_vec_vec.html) | |
### 3. [math](https://docs.rs/mathlab/latest/mathlab/math/index.html) [ 209 items ]
The math module contains all constants and functions.
### [All Items](https://docs.rs/mathlab/latest/mathlab/all.html) [ 209 ]
[![crates.io](https://img.shields.io/crates/v/mathlab.svg?style=for-the-badge&color=fc8d62&logo=rust)](https://crates.io/crates/mathlab)
[![docs.rs](https://img.shields.io/badge/docs.rs-mathlab-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs)](https://docs.rs/mathlab)
[![license](https://img.shields.io/badge/license-apache_2.0-4a98f7.svg?style=for-the-badge&labelColor=555555&logo=apache)](https://choosealicense.com/licenses/apache-2.0)
[![github](https://img.shields.io/badge/github-dr%20montasir%20/%20mathlab-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/dr-montasir/mathlab)