-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Symbolics doesn't interact well with IntervalArithmetic #1157
Comments
We might need to change from using Real to a concrete RealSymbolic (which would be good for other things), then the promotion can be defined on that? Or define the promote_symtype? |
Thanks, RealSymbolic sounds like a good idea yes; Real seems too general. I guess I'll try fiddling with promote_symtype in the mean time... |
When you create a symbolic variable via Symbolics.jl, its default numeric type is using Symbolics
@variable x
typeof(Symbolics.value(x)) # SymbolicUtils.BasicSymbolic{Real}
In IntervalArithmetic, Calling
If you know the primitive type you want your symbolic variable to be, you can explicitly declare it.
Then, the multiplication with
Note that you may get an error when you print |
That's very helpful, thanks! |
Is there an easy fix for this? It looks like some type promotions are wrong, but I've tried various possible fixes and none have been successful.
The text was updated successfully, but these errors were encountered: