You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Symbolics
@variables x y
e = (x*y) +sin(x*y) +sqrt(sin(x*y))
Symbolics.cse(e)
returns an intermediate variable for x*y and another for sin(x*y).
It would be expected that the second variable includes the first one in the argument of sin rather than a repeated x*y.
This was working OK before the commit "CSE only exprs that appear more than once" 2c60e25
The previous behavior, while suboptimal, is much preferable for the effect of code optimization.
The text was updated successfully, but these errors were encountered:
Example:
returns an intermediate variable for
x*y
and another forsin(x*y)
.It would be expected that the second variable includes the first one in the argument of
sin
rather than a repeatedx*y
.This was working OK before the commit "CSE only exprs that appear more than once" 2c60e25
The previous behavior, while suboptimal, is much preferable for the effect of code optimization.
The text was updated successfully, but these errors were encountered: