2 个版本
0.1.4 | 2023 年 8 月 18 日 |
---|---|
0.1.3 | 2023 年 8 月 2 日 |
0.1.2 |
|
0.1.1 |
|
0.1.0 |
|
#766 in 数学
24 每月下载量
370KB
包含 (DOS exe, 150KB) src/main.exe
圆形面积 Crate
这是一个包含一些常用数学函数的集合。
安装
要在你的 Rust 项目中使用此 Crate,请在你的 Cargo.toml
文件中添加以下行
[dependencies]
Circle_Area = "0.1.0"
或者
你可以在终端中简单地运行以下命令 cargo add Circle_area
。
使用
以下是 main.rs
文件的预览
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
:
面积 Crate
这是一个包含一些常用数学函数的集合