#big-int #bignum #large-numbers

no-std big_num_math

Simple library for computations on large numbers

6 stable releases

2.1.0 Jul 13, 2024
2.0.1 Jul 2, 2024
2.0.0 Jun 15, 2024
1.0.2 Jun 8, 2024
1.0.1 Jun 1, 2024

#550 in Math

Download history 249/week @ 2024-05-30 176/week @ 2024-06-06 219/week @ 2024-06-13 11/week @ 2024-06-20 141/week @ 2024-06-27 26/week @ 2024-07-04 121/week @ 2024-07-11 5/week @ 2024-07-18

475 downloads per month

MIT license

39KB
932 lines

BIG NUM MATH

Library for computations on large numbers.

  • Underdeveloped:
    • No plan for new functions (goniometric, radix, …).
    • Plan for optimizations (memory + speed up on some computations).
  • Primitive simple functions only: addition+substraction, multiplication+division, relation operator, power.

Example Usage

use big_num_math::{pow, PlacesRow};

let row = PlacesRow::new_from_num(u128::MAX);
let pow = pow(&row, 500);
let number = pow.to_number();

assert!(number.starts_with("8312324609993336522"));
assert_eq!(19266, number.len());

lib.rs:

Allows to compute on big numbers. No negative numbers support. Provides only some basic mathematical functions.

No runtime deps