From c5b2772590cef91c37cefee49a529e8f7bdcc3e4 Mon Sep 17 00:00:00 2001 From: Nicba1010 Date: Mon, 5 Feb 2018 00:09:54 +0100 Subject: [PATCH] Sqrt --- math_parse.py | 1 + 1 file changed, 1 insertion(+) diff --git a/math_parse.py b/math_parse.py index 39188e6a..6e0eb3a4 100644 --- a/math_parse.py +++ b/math_parse.py @@ -87,6 +87,7 @@ class NumericStringParser(object): "tan": math.tan, "exp": math.exp, "abs": abs, + "sqrt": lambda a: math.sqrt(a), "trunc": lambda a: int(a), "round": round, "sgn": lambda a: abs(a) > epsilon and self.cmp(a, 0) or 0}