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 5e3e44eCopy full SHA for 5e3e44e
test/derivatives.jl
@@ -15,6 +15,12 @@ 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(sin(2t))) == simplify_constants(cos(2t) * 2)
19
+@test expand_derivatives(D2(sin(t))) == simplify_constants(-sin(t))
20
+@test expand_derivatives(D2(sin(2t))) == simplify_constants(sin(2t) * -4)
21
+@test expand_derivatives(D2(t)) == 0
22
+@test expand_derivatives(D2(5)) == 0
23
+
24
# Chain rule
25
dsinsin = D(sin(sin(t)))
26
@test expand_derivatives(dsinsin) == cos(sin(t))*cos(t)
0 commit comments