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.
2 parents c3cd7b2 + fe7906c commit cdcae2cCopy full SHA for cdcae2c
test/rulesets.jl
@@ -54,6 +54,18 @@ end
54
@test simplify(Term(zero, [x + 2])) == 0
55
end
56
57
+@testset "LiteralReal" begin
58
+ @syms x1::LiteralReal x2::LiteralReal
59
+ s = cos(x1 * 3.2) - x2 * 5.8 + x2 * 1.2
60
+ @eqtest s == cos(x1 * 3.2) - x2 * 5.8 + x2 * 1.2
61
+
62
+ # Prevents automatic simplification:
63
+ @eqtest s != cos(3.2(x1^1)) - 4.6x2
64
65
+ # However, manual simplification should still work:
66
+ @eqtest simplify(s) == cos(3.2(x1^1)) - 4.6x2
67
+end
68
69
@testset "boolean" begin
70
@syms a::Real b c
71
0 commit comments