Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maurolacy/integer-cbrt-rs
Integer cube root algorithm implemented for Rust integer primitives
https://github.com/maurolacy/integer-cbrt-rs
cbrt cube cuberoot icbrt integer root
Last synced: about 2 months ago
JSON representation
Integer cube root algorithm implemented for Rust integer primitives
- Host: GitHub
- URL: https://github.com/maurolacy/integer-cbrt-rs
- Owner: maurolacy
- License: gpl-3.0
- Created: 2021-03-05T18:23:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-06T08:17:47.000Z (almost 4 years ago)
- Last Synced: 2024-10-16T04:08:37.889Z (3 months ago)
- Topics: cbrt, cube, cuberoot, icbrt, integer, root
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Integer cube root
This module contains the single trait `IntegerCubeRoot` and implements it
for primitive integer types.Based on [integer-sqrt](https://crates.io/crates/integer-sqrt).
![ci badge](https://github.com/maurolacy/integer-cbrt-rs/workflows/Continuous%20integration/badge.svg)
## Example
```rust
// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;assert_eq!(8u8.integer_cbrt(), 2);
```