i have this problem:your task is to approximate numerically the derivative of a given function f:R->R at some value x .the value for x will be input by the user (and can vary).the function f should be treated as a c++ function,for examble the user should be able to change it by editing the programme.

a) write a c++ computer progrmme to carry out this numerical approximation

b) run your c++ programme to approximate the following derivatives:

1. f(x)=sinxcosx at x= 60 moirai

2. f(x)=ln(x^2 + x^4 ) at x=3