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
thread 'main' panicked at 'internal error: entered unreachable code: domain checks failed to detect non-finite result (NaN) in unary operation on Cos(Var("x"), Radian)', src/expr/cast.rs:81:17
The text was updated successfully, but these errors were encountered:
I think the culprit is that cos(inf)=NaN, and 2^10^6 is approximately inf.
This issue raises the question: why is the finiteness check on line 79 even there? Approximating 2^10^6 displays inf, and honestly what else should it display if we want to stick with floats? I think that the solution to this issue is simply to remove that panic and let NaNs be NaNs.
replication
2<enter>1e6^c
error message
The text was updated successfully, but these errors were encountered: