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