Crate gaussiant

Source
Expand description

Gaussian integers in Rust.

A Gaussian integer is a complex number whose real and imaginary parts are both integers.

Macros§

gaussint
Creates a new GaussianInt.

Structs§

GaussianInt
A Gaussian integer is a complex number whose real and imaginary parts are both integers.

Functions§

get_g_ints
Returns an iterator of all Gaussian integers a + bi where |a|,|b| ≤ n.
get_g_primes
Returns an iterator of all Gaussian primes a + bi where |a|,|b| ≤ n.
get_pos_g_ints
Returns an iterator of all Gaussian integers a + bi where a is positive (or zero) and |b| ≤ n.
get_pos_g_primes
Returns an iterator of all Gaussian primes a + bi where a is positive (or zero) and |b| ≤ n.