Implementing a function library for nonlinear dynamic systems