Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mathlib.py
diff options
context:
space:
mode:
authorReinier Heeres <reinier@heeres.eu>2007-09-07 14:04:24 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2007-09-07 14:04:24 (GMT)
commitb0cca9f16f0a57ea07c8a27f4421311e96b41680 (patch)
tree99128b2f913aaaf3bd3f4bb6345f2cb1fca304e0 /mathlib.py
parentd804d55f4cdde65b74bb105fca60b0494211f4d5 (diff)
Basic plot() support!
Diffstat (limited to 'mathlib.py')
-rw-r--r--mathlib.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mathlib.py b/mathlib.py
index 6ded7d2..e1a7eed 100644
--- a/mathlib.py
+++ b/mathlib.py
@@ -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))