JuliaAlgebra / MultivariatePolynomials.jl

Multivariate polynomials interface
https://juliaalgebra.github.io/MultivariatePolynomials.jl/stable/
Other
135 stars 27 forks source link

isapprox for array of polynomials #198

Open blegat opened 2 years ago

blegat commented 2 years ago
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