Skip to content

Commit

Permalink
powER
Browse files Browse the repository at this point in the history
  • Loading branch information
smeznar committed Jan 27, 2025
1 parent c213a97 commit 9a2b805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SRToolkit/utils/symbol_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def default_symbols(num_variables: int = 25) -> "SymbolLibrary":
sl.add_symbol("-", symbol_type="op", precedence=0, np_fn="{} = {} - {}")
sl.add_symbol("*", symbol_type="op", precedence=1, np_fn="{} = {} * {}")
sl.add_symbol("/", symbol_type="op", precedence=1, np_fn="{} = {} / {}")
sl.add_symbol("^", symbol_type="op", precedence=2, np_fn="{} = np.pow({},{})")
sl.add_symbol("^", symbol_type="op", precedence=2, np_fn="{} = np.power({},{})")
sl.add_symbol("u-", symbol_type="fn", precedence=5, np_fn="{} = -{}")
sl.add_symbol("sqrt", symbol_type="fn", precedence=5, np_fn="{} = np.sqrt({})")
sl.add_symbol("sin", symbol_type="fn", precedence=5, np_fn="{} = np.sin({})")
Expand Down

0 comments on commit 9a2b805

Please sign in to comment.