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: 4 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-06T08:17:47.000Z (over 4 years ago)
- Last Synced: 2025-01-11T20:23:53.216Z (6 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).

## Example
```rust
// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;assert_eq!(8u8.integer_cbrt(), 2);
```