- Moment () { }
- Moment (int m) : Rational (m) { }
- Moment (int m, int n) : Rational (m,n) { }
- Moment (Rational m) : Rational (m) { }
+ Moment ();
+ Moment (int m);
+
+ Moment (Rational, Rational);
+ Moment (Rational m);
+
+ Moment operator - () const;
+
+ void operator += (Moment const &m);
+ void operator -= (Moment const &m);
+
+ void operator *= (Moment const &m);
+ void operator /= (Moment const &m);
+ void operator %= (Moment const &m);
+
+ Rational main_part_;
+ Rational grace_part_;
+
+ void set_infinite (int k);