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 2547a4e commit 25d1ce6Copy full SHA for 25d1ce6
test/derivatives.jl
@@ -15,6 +15,13 @@ dsin = D(sin(t))
15
dcsch = D(csch(t))
16
@test expand_derivatives(dcsch) == simplify_constants(coth(t) * csch(t) * -1)
17
18
+@test expand_derivatives(D(-7)) == 0
19
+@test expand_derivatives(D(sin(2t))) == simplify_constants(cos(2t) * 2)
20
+@test expand_derivatives(D2(sin(t))) == simplify_constants(-sin(t))
21
+@test expand_derivatives(D2(sin(2t))) == simplify_constants(sin(2t) * -4)
22
+@test expand_derivatives(D2(t)) == 0
23
+@test expand_derivatives(D2(5)) == 0
24
+
25
# Chain rule
26
dsinsin = D(sin(sin(t)))
27
@test expand_derivatives(dsinsin) == cos(sin(t))*cos(t)
0 commit comments