#integer #cube #root #primitive-integer #cbrt #icbrt

no-std integer-cbrt

An implementation of integer cube root algorithm for primitive rust types

3 releases

Uses old Rust 2015

0.1.2 Mar 5, 2021
0.1.1 Mar 5, 2021
0.1.0 Mar 5, 2021

#2442 in Algorithms

Download history 121/week @ 2024-04-22 61/week @ 2024-04-29 87/week @ 2024-05-06 72/week @ 2024-05-13 66/week @ 2024-05-20 41/week @ 2024-05-27 58/week @ 2024-06-03 45/week @ 2024-06-10 58/week @ 2024-06-17 59/week @ 2024-06-24 2/week @ 2024-07-01 19/week @ 2024-07-08 65/week @ 2024-07-15 55/week @ 2024-07-22 64/week @ 2024-07-29 47/week @ 2024-08-05

235 downloads per month
Used in 2 crates

GPL-3.0-or-later

7KB
130 lines

Integer cube root

This module contains the single trait IntegerCubeRoot and implements it for primitive integer types.

Based on integer-sqrt.

ci badge

Example

// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;

assert_eq!(8u8.integer_cbrt(), 2);

lib.rs:

This module contains the single trait IntegerCubeRoot and implements it for primitive integer types.

Example

extern crate integer_cbrt;
// `use` trait to get functionality
use integer_cbrt::IntegerCubeRoot;

assert_eq!(8u8.integer_cbrt(), 2);

Dependencies

~155KB