rusty_math
This is a Rust library for mathematical operations.
Features
- GCD
- LCM
- Factorial
- Check if a number is prime
- Find all primes numbers less than a number
- Permutation
- Combination
- Integration
- Differentiation
- Solve a linear equation
- Find roots of a polynomial using Falsi Reguli and Newton-Raphson methods
- Linear Regression
- R2 score
- Mean squared error
- Accuracy
- Precision
- Confusion Matrix
- Recall
- F1 score
Installation
To use rusty_math in your project, add the following to your Cargo.toml file:
[]
= "0.3.0"
Modules
- numbers: Functions to find the GCD, LCM, factorial, to check for prime, to find all prime numbers less than n.
- calculus: Find the definite integral and slope of a function at a point.
- Linear: Fit and predict a linear regression function.
- Equations: Solve a system of linear equations and find a root of polynomials using Falsi Reguli and Newton-Raphson methods
- Metrics: Score machine learning models.
Usage
use gcd;
Contributing
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
License
This project is licensed under the MIT License.