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.
Refactor random test:
1.) move input and output inside the function
2.) show input in test information
For example:
It's not stated what to do with indices pointing at non-existing words.
Sample and fixed tests should use exact expected values instead of rounded to 5 decimal places ones.
The current precision requirement (1e-2) is so lenient that a simple approximation based on the two given test cases passes all tests. I suggest increasing the required precision to 1e-6, which should be easily reached with any solution based on the correctly derived closed-form solution.
Division seems to not be tested.
Since inputs seem to be simple polynomials, this kata seems to be a close duplicate of Differentiate a polynomial, with some additional mess in input strings.
x**x**x
also consists of "basic operators" but calculating its derivative is far more involved than for, say,"x * 2"
With the current tests, this kata is practically a simple regex-replacement task which isn't really a novel idea.