Derivative generates code for derivatives from the given function declaration.
If d2 is true, the generated function returns both the first and second
derivatives. Otherwise, only the first derivative function is generated.
type Func struct {
Path string// Import path of the package holding the function. Name string// Function or method name. Deriv string// Name of the output derivative function.}