code display in fraction.py

This commit is contained in:
Benjamin Bertrand 2016-03-02 16:16:18 +03:00
parent 0b04f1eb48
commit 5d4fe72764

View File

@ -78,12 +78,8 @@ class Fraction(Explicable):
elif gcd_ != 1: elif gcd_ != 1:
n_frac = Fraction(self._num // gcd_, self._denom // gcd_) n_frac = Fraction(self._num // gcd_, self._denom // gcd_)
ini_step += [Expression([n_frac._num, ini_step += [Expression([n_frac._num, gcd_, op.mul,
gcd_, n_frac._denom, gcd_, op.mul,
op.mul,
n_frac._denom,
gcd_,
op.mul,
op.div])] op.div])]
n_frac.steps = ini_step + n_frac.steps n_frac.steps = ini_step + n_frac.steps