2 releases
0.1.4 | Aug 18, 2023 |
---|---|
0.1.3 | Aug 2, 2023 |
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#1379 in Math
24 downloads per month
370KB
Contains (DOS exe, 150KB) src/main.exe
Circle Area Crate
This is a collection of some generally used math functions.
Installation
To use this crate in your Rust project, add the following line to your Cargo.toml
file:
[dependencies]
Circle_Area = "0.1.0"
Or
you can simply run this camand in your terminal cargo add Circle_area
.
Use
Here is the preview of main.rs
file:
use Circle_Area::circle_area;
fn main(){
// circle area
println!("Area of the 5.0 redius circle is:{}",circle_area(5.0));
//rect area
println!("Area of the Rectengle is:{}",rectangle_are(5.0,4.5));
}
lib.rs
:
Area crate
This is a collection of some generally used math functions