Ah, true, I'd forgotten that (if I ever knew it). Surprisingly, I did notice the change in M10 random number functions to go unitless, so rolled my own to replace the new built-in functions and extend them to the complex domain, but that's a story for another day.
An alternative to applying functions conventionally to a value is to use them as units.
Here's a unit tolerant version of a function I'd created earlier ("Worksheets are written, Never meaning to send", as the old song went - and still goes).
This would have been a lot easier if I hadn't been deprived of my partial function application capability.
And I'm still waiting for Mathcad's Unicode set to be extended to U+1xxxx, then I wouldn't have to cheat when I wanted mildly_annoyed≔"👿".

Yes, I could have written round like your version, but I wanted to inspect the units and do some manipulation of them in another worksheet, and didn't feel like rewriting the function. As you might be aware from your early-bird copy of my Expression Type Functions worksheet, I've got a variant of SIUnitsOf that (actually!) handles arbitrarily-deeply nested arrays with mixed units.
Stuart
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

