authors: "Ola Yeku"
This library is used to perform various numerical operations in Rust.
The library is designed to be used in a variety of applications, including web services, command line utilities, and other Rust based applications.
To test this library, run the following command:
cargo test
To use this library, add the numbers_rus crate to your project:
cargo add numbers_rus
Add the following to your cargo.toml file:
[dependencies]
numbers_rus = "0.1.6"
The following examples show how to use this library:
// Import the library
use numbers_rus::numbers_rus::*
// Basic operations
add(1, 2)
subtract(1, 2)
multiply(1, 2)
divide(1, 2)
```
// Floating point operations
addfloat(1.0, 2.0)
subtractfloat(1.0, 2.0)
multiplyfloat(1.0, 2.0)
// Conditional Checks
iseven(2)
isodd(2)
isprime(2)
// Vector operations
vectorsum(vec![1, 2, 3])
vectormean(vec![1, 2, 3])
vector_median(vec![1, 2, 3])
````
// Equation operations
let eq = Equation::new(2,4,'+');
let mut result = eq.solve();
eq.set_a(3);
let result = eq.solve();
The following features are planned for this library:
[ ] Add support for tensors
[ ] Add support for statistics