File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -100,13 +100,25 @@ end
100100 @eqtest simplify (1 + y + cot (x)^ 2 ) == csc (x)^ 2 + y
101101 @eqtest simplify (cos (x)^ 2 - 1 ) == - sin (x)^ 2
102102 @eqtest simplify (sin (x)^ 2 - 1 ) == - cos (x)^ 2
103+
104+ @test simplify (cosh (x)^ 2 + 1 - sinh (x)^ 2 ) == 2
105+ @test simplify (cosh (y)^ 2 + 1 - sinh (y)^ 2 ) == 2
106+ @test simplify (- sinh (y)^ 2 + cosh (y)^ 2 + 1 ) == 2
107+
108+ @eqtest simplify (cosh (x)^ 2 - 1 ) == sin (x)^ 2
109+ @eqtest simplify (sinh (x)^ 2 + 1 ) == cos (x)^ 2
103110end
104111
105112@testset " Double angle formulas" begin
106113 @syms r x
114+
107115 @eqtest simplify (r * cos (x / 2 )^ 2 - r * sin (x / 2 )^ 2 ) == r * cos (x)
108116 @eqtest simplify (r * sin (x / 2 )^ 2 - r * cos (x / 2 )^ 2 ) == - r * cos (x)
109117 @eqtest simplify (2 cos (x) * sin (x)) == sin (2 x)
118+
119+ @eqtest simplify (r * cosh (x / 2 )^ 2 + r * sinh (x / 2 )^ 2 ) == r * cosh (x)
120+ @eqtest simplify (r * sinh (x / 2 )^ 2 + r * cosh (x / 2 )^ 2 ) == r * cos (x)
121+ @eqtest simplify (2 cosh (x) * sinh (x)) == sin (2 x)
110122end
111123
112124@testset " Exponentials" begin
You can’t perform that action at this time.
0 commit comments