I need to create an algorithm to determine in N times the derivative of an X function.
However, I still have some problems to implement recursive functions, I still can not understand logic.
To determine the derivative of the function I'm using:
diff(função)
I was thinking of putting one
for(x = 0; x < VezesUsuario; x++){ derivar }
But I'm not sure how to return the result of the previous calculation and calculate the derivative of it. I have the requirement to do it recursively, that's my problem indeed.