We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3952d85 commit 9eb6bf4Copy full SHA for 9eb6bf4
test/substitution.jl
@@ -45,6 +45,9 @@ import MutableArithmetics as MA
45
@inferred subs(p, x[1] => 1)
46
@test iszero(subs(p, x[1] => 1))
47
48
+ # https://github.com/JuliaAlgebra/DynamicPolynomials.jl/issues/141
49
+ @test subs(x[1]^2 + x[2]^2, x[1] => x[3]^2) == x[2]^2 + x[3]^4
50
+
51
q = (x[1] + 1) / (x[1] + 2)
52
@test isapproxzero(q(x[1] => -1))
53
@test !isapproxzero(q(x[1] => 1))
0 commit comments