Write a program to calculate the derivative of an arbitrary input function with arbitrary duration and arbitrary limits. Remember to check that you start calculating at least at the second point of data. Test your program on a simulated time-domain signal.