So this question has nothing to do with Creo Parametric? I noticed already that the minerr() function is a Mathcad function. If you look at Creo parametric, we have a very limited set of functions. In most cases, we define our own functions through extensive coding with a weak set of tools.
I suspect that Creo users can offer little advice for Mathcad specific problems. We geometry guys just don't think the same way Image may be NSFW.
Clik here to view.