I have a commercial software which doesn't seem to have a max() function. I vaguely recall that there was a way to find the maximum of two values using squares and square roots but my google searches were useless. Can anyone help me out?

And is there an easy way to apply this technique to more than two numbers.