numerand spelling...

This commit is contained in:
Lafrite 2014-12-22 11:46:42 +01:00
parent 7d26fd722a
commit d2928a38d2

View File

@ -335,20 +335,20 @@ def isPolynom(exp):
return 0 return 0
return 1 return 1
def isNumerande(exp): def isNumerand(exp):
"""Check is the expression is something we can compute with """Check is the expression is something we can compute with
>>> isNumerande(1) >>> isNumerand(1)
1 1
>>> from pymath.polynom import Polynom >>> from pymath.polynom import Polynom
>>> p = Polynom([1,2]) >>> p = Polynom([1,2])
>>> isNumerande(p) >>> isNumerand(p)
1 1
>>> from pymath.fraction import Fraction >>> from pymath.fraction import Fraction
>>> f = Fraction(12) >>> f = Fraction(12)
>>> isNumerande(f) >>> isNumerand(f)
1 1
>>> isNumerande("a") >>> isNumerand("a")
0 0