Sets a new mathematical function for the Z-axis of the equation curve.
Returns eOk if a new function was successfully set or an appropriate error code in the other case.