"This value must be a scalar" Why does the standard lognormal (Pr_lnorm) work but when I introduce a program into the function definition (Pr_tlnorm), I get the above error?
If you want to call a function which, like yours, expects a scalar argument "id" using a vector instead and expect this vector to be fed element by element as argument of the function and the various results to be collected in a result vector, you have to use vectorization!
I'm not familiar enough with Mathcad (or perhaps maths) to be sure what the difference is between the two solutions, but the latter solution by @JKT does appear to offer the benefit of baking in the vectorization at the function definition stage.
Translate
Windchill Satisfaction Survey
Help shape the future of Windchill. Take our 5-minute survey and share your feedback.