Crates.io | fdlibm-rs |
lib.rs | fdlibm-rs |
version | 0.1.0 |
source | src |
created_at | 2023-09-29 16:24:52.699866 |
updated_at | 2023-09-29 16:24:52.699866 |
description | rust wrapper of FDLIBM, a C math library for machines that support IEEE-754 floating-point arithmetic. |
homepage | https://github.com/mtb0x1/fdlibm-rs |
repository | https://github.com/mtb0x1/fdlibm-rs |
max_upload_size | |
id | 987579 |
size | 399,091 |
This crate is a rust wrapper of fdlibm.
Run the following Cargo command in your project directory:
cargo add fdlibm-rs
use fdlibm_rs::sin;
let value = unsafe {sin(1.0)};
println!("sin(1)={}",value);
gamme
).std::
, instead use core::
when possible.x86_64-unknown-linux-gnu
is supported)