Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
•
3972e78
1
Parent(s):
744d6e2
Format code with black
Browse files- pysr/sr.py +2 -2
pysr/sr.py
CHANGED
@@ -77,8 +77,8 @@ sympy_mappings = {
|
|
77 |
"div": lambda x, y: x / y,
|
78 |
"mult": lambda x, y: x * y,
|
79 |
"sqrt_abs": lambda x: sympy.sqrt(abs(x)),
|
80 |
-
"square": lambda x: x
|
81 |
-
"cube": lambda x: x
|
82 |
"plus": lambda x, y: x + y,
|
83 |
"sub": lambda x, y: x - y,
|
84 |
"neg": lambda x: -x,
|
|
|
77 |
"div": lambda x, y: x / y,
|
78 |
"mult": lambda x, y: x * y,
|
79 |
"sqrt_abs": lambda x: sympy.sqrt(abs(x)),
|
80 |
+
"square": lambda x: x**2,
|
81 |
+
"cube": lambda x: x**3,
|
82 |
"plus": lambda x, y: x + y,
|
83 |
"sub": lambda x, y: x - y,
|
84 |
"neg": lambda x: -x,
|