MultivariatePolynomials.jl icon indicating copy to clipboard operation
MultivariatePolynomials.jl copied to clipboard

isapprox for array of polynomials

Open blegat opened this issue 3 years ago • 0 comments

julia> @polyvar x[1:3]
(PolyVar{true}[x₁, x₂, x₃],)

julia> 1.0x ≈ 1.0x
ERROR: MethodError: no method matching rtoldefault(::Type{Term{true, Float64}}, ::Type{Term{true, Float64}}, ::Int64)
Closest candidates are:
  rtoldefault(::Union{Type{T}, T}, ::Union{Type{S}, S}, ::Real) where {T<:Number, S<:Number} at ~/packages/julias/julia-1.7.2/share/julia/base/floatfuncs.jl:315
Stacktrace:
 [1] isapprox(x::Vector{Term{true, Float64}}, y::Vector{Term{true, Float64}})
   @ LinearAlgebra ~/packages/julias/julia-1.7.2/share/julia/stdlib/v1.7/LinearAlgebra/src/generic.jl:1706
 [2] top-level scope
   @ REPL[107]:1

blegat avatar Mar 24 '22 17:03 blegat