>> Usually hypot is implemented something like |x| * sqrt(1 + (y / x)^2) (|x| > 
>> |y|) instead, but such a formula for a variadic hypot is probably 
>> non-trivial.

I believe, as Roger noted on another branch, the variadic version of this 
formula just divides all arguments by the maximum of the arguments before doing 
the sum of squares, then multiples by the maximum after taking the sqrt.

Luke

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to