- #1
Jamin2112
- 986
- 12
Here's what I have so far:
Is that a good start?
Now onto the tricky stuff ...
Code:
std::string CalculusWizard::derivative(std::string& fx, const char & x, unsigned & n = 1)
{
if (n == 0)
{
return fx;
}
else if (n > 1)
{
while (n-- > 1)
fx = derivative(fx, x);
}
// If here, find and return the derivative of fx ...
}
Is that a good start?
Now onto the tricky stuff ...