Last active
August 22, 2016 15:45
-
-
Save cfeckardt/ab0abee85e5901d9e366f97142e67196 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The task is: | |
Write a React Redux app that is backed by a reducer that can do mathematical differentiation of polynomials: | |
For example, x^2 as input would give 2x^1 as output | |
3x^2+x+1 would give 6x+1 | |
Input: 3x^2+2x+1 | |
Output would be: 6x+2 | |
And for input: | |
4x^3+3x^2+2x+1 | |
Output would be: 12x^2+6x+2 | |
More examples: | |
4x^3+3x^2+1 and the output should be 12x^2+6x | |
4x^3-5x^2+1 and the output should be 12x^2-10x | |
Please make sure there is test coverage for requests and method, and put it on a bitbucket/github that you share with me, username: cfeckardt | |
Your app should have: | |
A text field, where I can input my equation. | |
And just below it, and the derived expression in a <div> just below it. | |
If I input garbage data, I'd like to be warned about that too. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment