Gradient function for optim.
I have read that when the gradient function is not supplied (is null) then first order differencing is used to find the differential. I was trying to track down this for my own information but I run into .Internal(optim.....). I was not sure where to look next to see the function that is automatically supplied for the gradient. Thank you. Kevin