Fix FunctionD_D.
Add trig functions.