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
Base.promote_rule(::Type{<:Number}, ::Type{<:Num}) = Num
Base.promote_rule(::Type{<:Symbolic{<:Number}}, ::Type{<:Num}) = Num
Normally users are supposed not to call internal constructors. But here symbolic version of sqrt(3) is special and we should wrap it with a Num struct.
This was reported originally by @ketch in ranocha/BSeries.jl#96
Using the recommendation in https://discourse.julialang.org/t/symbolic-sqrt-2-and-sin-pi/58633 to represent a square root symbolically does not work well when constructing an array of symbolic expressions and rational numbers:
Note the
Vector{Any}
.The text was updated successfully, but these errors were encountered: