and an integer exponent
(corresponding to the number
). They may replace rational numbers in problems where only division by two are used. The implementation
template<class NT> class diadic;
is parameterized by the integer type NT is the type of the integer used to represent the diadic number.
ZZ a("342453413214531234"); diadic<ZZ> da(a,-4), db(3,-11);
synaps/arithm/diadic.h ![]() |