Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I modified the test cases so they accept the alternative forms of differentiating tan (C#, Java and JavaScript language versions).
In my case, saying which of the two ways of differentiating
tan
was expected would have helped.TBH I'm surprised I didn't run into issues with the ordering of chain/product/quotient rules... or maybe it just didn't come up.
If you look at the sample tests those are the expected forms.
I would "simplify"
(- 0 (sin x))
to(* -1 (sin x))
because usually you dont put unecessary 0 in the result expression.And
(^ (cos x) -2)
is the same as(+ 1 (^ (tan x) 2))
which is what the tests expect.I will see if I can make it more clear what to simplify and to look at the tests for guidance.
language?