Updated deriver to python3

This commit is contained in:
madmaurice 2016-02-21 15:36:34 +01:00
parent b956e515b8
commit c420cd1e9b
1 changed files with 5 additions and 5 deletions

View File

@ -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 )