Sph2-rs

Crates.ioSph2-rs
lib.rsSph2-rs
version0.1.9
sourcesrc
created_at2024-05-02 16:11:44.561155
updated_at2024-05-07 18:09:50.762314
descriptionAn improved version of Sph-rs, that uses a mod to calculate the desired values.
homepagehttps://github.com/FBDev64/Sph2-rs
repositoryhttps://github.com/FBDev64/Sph2-rs.git
max_upload_size
id1227875
size41,414
Adam Ellouze (FBDev64)

documentation

https://github.com/FBDev64/Sph2-rs/tree/super?tab=readme-ov-file#sph2-rs

README

Sph2-rs

What is it

A new version of Sph-rs that uses a module.

Technical Badges

Rust

Run

Use the following :

cargo run 2.25
>>> The perimeter of the circle is: 14.137166941154069
>>> The area of the circle is: 15.904312808798327
>>> The surface area of the sphere is: 63.61725123519331
>>> The volume of the sphere is: 47.71293842639498

Replace 2.25 with the wanted value.

You could also include "calcul.rs" as it is a mod and call it. For example :

let p = calcul::perimetre_cercle(rayon);
print!("Surface area of the circle is : {}", p);
Commit count: 21

cargo fmt