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
It seems undesirable that a variable of type SymEngine.Basic is a Number but throws an error when coerced to that type. The type SymPy.Sym does not have this issue.
julia>using SymEngine
julia>@vars x
julia>isa(x,Number)
true
julia> Number[1,2,3,x]
ERROR: ArgumentError: Object can have no free symbols
inN(::SymEngine.BasicType{Val{:Symbol}}) at /Users/sswatson/.julia/v0.5/SymEngine/src/numerics.jl:122insetindex!(::Array{Number,1}, ::SymEngine.Basic, ::Int64) at ./array.jl:415ingetindex(::Type{Number}, ::Int64, ::Int64, ::Int64, ::SymEngine.Basic, ::Vararg{SymEngine.Basic,N}) at ./array.jl:132
julia>using SymPy; @syms y
(y,)
julia> Number[1,2,3,y]
4-element Array{Number,1}:123
y
The text was updated successfully, but these errors were encountered:
It seems undesirable that a variable of type
SymEngine.Basic
is aNumber
but throws an error when coerced to that type. The typeSymPy.Sym
does not have this issue.The text was updated successfully, but these errors were encountered: