Skip to content

Rust binding to CRlibm, a correctly rounded math lib

Notifications You must be signed in to change notification settings

Chris00/rust-crlibm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crlibm

This crate is a binding to CRlibm, an efficient and proved correctly-rounded mathematical library. For the user convenience, this module embeds the relevant C code from the CRlibm Git repository.

Note that the C code of CRlibm is mature but superseded by MetaLibm (repository) and will therefore not receive updates.

Example

use crlibm::*;
let x = sinpi_rd(2.);
let y = sinpi_rn(2.);
let z = sinpi_ru(2.);