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.
This is a big deal: without negative numbers (or unary minus), one can use a much, much simpler parser.
The tests reject correct derivative forms such as (- 0 (sin x)) for the derivative of (cos x), or (^ (cos x) -2) for the derivative of (tan x). Similar problems arise from a choice of ordering of terms in the product when taking the derivatives of exp, sin, cos etc.
The expected forms should be stated explicitly, or there should be a set of canonical simplifications that the solutions and tests can both apply in order to validate the results. Generally, this is going to be 'hard', especially for
trigonometric identities.
Made a new solution based on this one which fixed up the untidy
std::string
reference/initialization onsolve_state
- which of course I only noticed after submitting.Doesn't this have a problem with e.g. v = {3, 4}; s = {5, 0}?