Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
66dcb6d
1
Parent(s):
73f7005
Fix sympy operators for log
Browse files- pysr/sr.py +2 -2
pysr/sr.py
CHANGED
@@ -47,8 +47,8 @@ sympy_mappings = {
|
|
47 |
'erf': lambda x : sympy.erf(x),
|
48 |
'erfc': lambda x : sympy.erfc(x),
|
49 |
'logm': lambda x : sympy.log(abs(x)),
|
50 |
-
'logm10':lambda x : sympy.
|
51 |
-
'logm2': lambda x : sympy.
|
52 |
'log1p': lambda x : sympy.log(x + 1),
|
53 |
'floor': lambda x : sympy.floor(x),
|
54 |
'ceil': lambda x : sympy.ceil(x),
|
|
|
47 |
'erf': lambda x : sympy.erf(x),
|
48 |
'erfc': lambda x : sympy.erfc(x),
|
49 |
'logm': lambda x : sympy.log(abs(x)),
|
50 |
+
'logm10':lambda x : sympy.log(abs(x), base=10),
|
51 |
+
'logm2': lambda x : sympy.log(abs(x), base=2),
|
52 |
'log1p': lambda x : sympy.log(x + 1),
|
53 |
'floor': lambda x : sympy.floor(x),
|
54 |
'ceil': lambda x : sympy.ceil(x),
|