Crates.io | math-analize |
lib.rs | math-analize |
version | 0.0.1 |
source | src |
created_at | 2023-07-25 13:59:53.528517 |
updated_at | 2023-07-25 13:59:53.528517 |
description | Math-Analize library will simplify your work with mathematical functions. This library is ported library from C++ for the Rust language |
homepage | https://github.com/Z-egorov/math-analize-RUST |
repository | https://github.com/Z-egorov/math-analize-RUST |
max_upload_size | |
id | 925598 |
size | 22,069 |
This is Math Analize Library, you can use it to simplify your work with mathematical functions. Library is ported from C++ for the Rust language
To use in your program, add this
use math-analize::ma;
or
use math-analize::ma { functions, methods, options };
Then you will be able to use all the functionality
In this library there are 5 structures of mathematical functions and 5 base methods to work with them:
All sturctures are using public Trait "Function". You can use it to create your own mathematical function structure. You can also use Limits structure for convenient use
use math_analize::ma::{ functions, methods, options };
fn main() {
let function = functions::Quadratic::new(1.0, 6.0, 9.0, 0.0, 10.0);
let integral_result = methods::calculate_integral(options::CalculatingMethod::NEWTON, &function);
let derivative_points_result = methods::calculate_derivative_points(&function);
let extremums_result = methods::calculate_extremums(&function);
let evenness_result = methods::evenness(&function);
println!("Integral of this quadratic function - {}", integral_result);
println!("Evenness of this quadratic function - {}", evenness_result);
println!("Derivative points of this quadratic function:");
for i in derivative_points_result {
print!("{}", i);
}
println!("Extremums of this quadratic function:");
for i in extremums_result {
print!("{} {}", i.0, i.1);
}
}