#complex #numeric

num-irrational

num-irrational is based on num and extends it with support for several kinds of irrational numbers

10 unstable releases (3 breaking)

0.3.0 Apr 15, 2022
0.3.0-alpha Apr 11, 2022
0.2.0 Apr 8, 2022
0.2.0-alpha Mar 3, 2022
0.0.3 Jan 18, 2022

#2426 in Math

38 downloads per month
Used in 2 crates

Apache-2.0

175KB
4K SLoC

num-irrational

This crate provides representations of irrational numbers within following categories:

  • Math constants (pi, e, etc.)
  • Quadratic Numbers
    • Quadratic irrational aka. Quadratic surd
    • Quadratic integer
    • Gaussian integer / Eisenstein integer
  • Continued Fraction
    • Simple (aka. Regular) continued fraction
    • General continued fraction
    • Hurwitz continued fraction

As you can see, the support for irrational number is not limited in the real field, it also support several numeric types in the complex field (by enabling the complex feature). It's based on the num creates.

Dependencies

~615KB
~14K SLoC