diff options
author | Reinier Heeres <reinier@heeres.eu> | 2007-09-07 14:04:24 (GMT) |
---|---|---|
committer | Reinier Heeres <reinier@heeres.eu> | 2007-09-07 14:04:24 (GMT) |
commit | b0cca9f16f0a57ea07c8a27f4421311e96b41680 (patch) | |
tree | 99128b2f913aaaf3bd3f4bb6345f2cb1fca304e0 /mathlib.py | |
parent | d804d55f4cdde65b74bb105fca60b0494211f4d5 (diff) |
Basic plot() support!
Diffstat (limited to 'mathlib.py')
-rw-r--r-- | mathlib.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -22,8 +22,7 @@ import math from decimal import Decimal import logging -_logger = logging.getLogger('calc-activity') - +_logger = logging.getLogger('MathLib') class MathLib: ANGLE_DEG = math.pi/180 @@ -170,7 +169,7 @@ class MathLib: def pow(self, x, y): if self.is_int(y): - return x ** y + return x ** int(y) else: return self.d(math.pow(x, y)) |