Fix Yang functions

This wasn't compiling because of the changes made to ContinuousFunction.