diff --git a/deriver.py b/deriver.py index 359e675..9871cbd 100644 --- a/deriver.py +++ b/deriver.py @@ -310,7 +310,7 @@ class Simplifier: if term.is_constant(): return term.calc() elif isinstance(term,Operator2): - print term.__class__.__name__ + print ( term.__class__.__name__ ) sleft = Simplifier.simplify(term.left) sright = Simplifier.simplify(term.right) @@ -330,13 +330,13 @@ class Simplifier: else: return term -sterm = raw_input("Input term (deriving by x): ") +sterm = input("Input term (deriving by x): ") term = Parser.parse(sterm) -print "Deriving %s" % term +print ( "Deriving %s" % term ) dterm = Deriver.derive(term,"x") -print "DTerm: %s" % dterm +print ( "DTerm: %s" % dterm ) sterm = Simplifier.simplify(dterm) -print "Result: %s" % sterm +print ( "Result: %s" % sterm )