Skip to content

Commit

Permalink
Translate log2 and log10 to their direct sympy equivalents instead of…
Browse files Browse the repository at this point in the history
… log(x)/log(base)
  • Loading branch information
Sebastian Heuchler committed Sep 4, 2024
1 parent 339cc0a commit dee1356
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysr/export_sympy.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"erf": sympy.erf,
"erfc": sympy.erfc,
"log": lambda x: sympy.log(x),
"log10": lambda x: sympy.log(x, 10),
"log2": lambda x: sympy.log(x, 2),
"log10": lambda x: sympy.codegen.cfunctions.log10(x),
"log2": lambda x: sympy.codegen.cfunctions.log2(x),
"log1p": lambda x: sympy.log(x + 1),
"log_abs": lambda x: sympy.log(abs(x)),
"log10_abs": lambda x: sympy.log(abs(x), 10),
Expand Down

0 comments on commit dee1356

Please sign in to comment.