Skip to content

Commit 3f4cacb

Browse files
authored
fix breakage in SpecialPolynomials (#417)
1 parent 647cb67 commit 3f4cacb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "Polynomials"
22
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
33
license = "MIT"
44
author = "JuliaMath"
5-
version = "3.1.2"
5+
version = "3.1.3"
66

77
[deps]
88
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/common.jl

+1
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ function Base.isapprox(p1::AbstractPolynomial, p2::AbstractPolynomial; kwargs...
10531053
elseif isconstant(p2)
10541054
return false
10551055
end
1056+
assert_same_variable(p1, p2) || return false
10561057
isapprox(promote(p1, p2)...; kwargs...)
10571058
end
10581059

0 commit comments

Comments
 (0)