Feat: allowing to import Decimal
This commit is contained in:
parent
1a74c54548
commit
a3f7efca12
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
|
|
||||||
from .calculus import Expression, Integer # , Polynom, Fraction, random_str, txt, Equation
|
from .calculus import Expression, Integer, Decimal
|
||||||
|
|
||||||
# Expression.set_render('tex')
|
# Expression.set_render('tex')
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ x^7
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from .expression import Expression
|
from .expression import Expression
|
||||||
from .tokens.number import Integer
|
from .tokens.number import Integer, Decimal
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
e = Expression.from_str("1+2/3/4/5")
|
e = Expression.from_str("1+2/3/4/5")
|
||||||
|
@ -30,7 +30,7 @@ Expression is the classe wich handle all calculus. It can randomly generate or i
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .API import Expression, Integer
|
from .API import Expression, Integer, Decimal
|
||||||
|
|
||||||
__all__ = ["Expression"]
|
__all__ = ["Expression"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user