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
I have the following expression and a replacement dict: s1/floor(1.30718958377838*s1), {floor(1.30718958377838*s1): ps0, floor(1.30718958377838*s1)**2: ps1}, .subs turns it into s1/sqrt(ps1) where I want s1/ps0, xreplace works as I want. But then xreplace won’t work on 1+1024*x*y and dict {32*x*y: sympy.Symbol("s0")}. Is there a way to get desired answers in both those cases?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have the following expression and a replacement dict:
s1/floor(1.30718958377838*s1)
,{floor(1.30718958377838*s1): ps0, floor(1.30718958377838*s1)**2: ps1}
,.subs
turns it into s1/sqrt(ps1) where I want s1/ps0,xreplace
works as I want. But thenxreplace
won’t work on1+1024*x*y
and dict{32*x*y: sympy.Symbol("s0")}
. Is there a way to get desired answers in both those cases?Beta Was this translation helpful? Give feedback.
All reactions