[−][src]Crate libm
libm in pure Rust
Usage
You can use this crate in two ways:
-
By directly using its free functions, e.g.
libm::powf. -
By importing the
F32Extand / orF64Extextension traits to add methods likepowfto thef32andf64types. Then you'll be able to invoke math functions as methods, e.g.x.sqrt().
Traits
| F32Ext | Math support for |
| F64Ext | Math support for |