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>2008-01-03 08:52:09 (GMT)
committer Reinier Heeres <reinier@heeres.eu>2008-01-03 08:52:09 (GMT)
commit5dda927d0d3cbf4c8265db32f5adcdb701cbab35 (patch)
treead5624eabd8c8163eeaa7e6152e6ea65250a9446 /mathlib.py
parentf0a4be3d698ad001d18f5dfef3763bf1ef741482 (diff)
More parser fixes, #5734
Diffstat (limited to 'mathlib.py')
-rw-r--r--mathlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mathlib.py b/mathlib.py
index 4c3fe3b..b70d096 100644
--- a/mathlib.py
+++ b/mathlib.py
@@ -42,7 +42,9 @@ class MathLib:
#Constants should maybe become variables in eqnparser.py
self.set_constant('true', True)
+ self.set_constant('True', True)
self.set_constant('false', False)
+ self.set_constant('False', False)
self.set_constant('pi', self.parse_number('3.1415926535'))
self.set_constant('kb', self.parse_number('1.380650524e-23'))
self.set_constant('Na', self.parse_number('6.02214e23'))