#integer #cube #primitive-integer #root #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

#2606 in Algorithms

Download history 55/week @ 2024-07-22 64/week @ 2024-07-29 47/week @ 2024-08-05 49/week @ 2024-08-12 33/week @ 2024-08-19 87/week @ 2024-08-26 33/week @ 2024-09-02 36/week @ 2024-09-09 72/week @ 2024-09-16 93/week @ 2024-09-23 48/week @ 2024-09-30 7/week @ 2024-10-07 39/week @ 2024-10-14 38/week @ 2024-10-21 43/week @ 2024-10-28 40/week @ 2024-11-04

160 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

~150KB