numerand spelling...
This commit is contained in:
parent
7d26fd722a
commit
d2928a38d2
@ -335,20 +335,20 @@ def isPolynom(exp):
|
||||
return 0
|
||||
return 1
|
||||
|
||||
def isNumerande(exp):
|
||||
def isNumerand(exp):
|
||||
"""Check is the expression is something we can compute with
|
||||
|
||||
>>> isNumerande(1)
|
||||
>>> isNumerand(1)
|
||||
1
|
||||
>>> from pymath.polynom import Polynom
|
||||
>>> p = Polynom([1,2])
|
||||
>>> isNumerande(p)
|
||||
>>> isNumerand(p)
|
||||
1
|
||||
>>> from pymath.fraction import Fraction
|
||||
>>> f = Fraction(12)
|
||||
>>> isNumerande(f)
|
||||
>>> isNumerand(f)
|
||||
1
|
||||
>>> isNumerande("a")
|
||||
>>> isNumerand("a")
|
||||
0
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user