Go to the source code of this file.
Functions | |
template<class monoid, class integer> monoid | power (monoid a, integer n) |
template<class integer_class> integer_class | sqrt (const integer_class &x) |
template<class integer_class> integer_class | factorial (const integer_class &a) |
template<class number_class> number_class | absolute_value (const number_class &b) |
template<class euclid_ring_item> void | quotient_remainder (euclid_ring_item a, euclid_ring_item b, euclid_ring_item &p, euclid_ring_item &r) |
template<class euclid_ring_item> euclid_ring_item | quotient (euclid_ring_item a, euclid_ring_item b) |
template<class euclid_ring_item> euclid_ring_item | remainder (euclid_ring_item a, euclid_ring_item b) |
This module includes functions of integer power calculations, square rooting, factorial computations and others.
Definition in file powerest.h.
|
Returns absolute value.
Definition at line 123 of file powerest.h. Referenced by gcd(), and quotient_remainder().
|
|
Returns a!
Definition at line 114 of file powerest.h. |
|
Integer power a^n.
Definition at line 75 of file powerest.h. |
|
Returns quotient of a/b.
Definition at line 149 of file powerest.h. Referenced by gcd_bezout().
|
|
Returns true :) quotient p and remainder r of a/b such that.
Definition at line 132 of file powerest.h. Referenced by quotient(), and remainder().
|
|
Returns remainder of a/b.
Definition at line 160 of file powerest.h. |
|
Integer squre root of x.
Definition at line 92 of file powerest.h. |