Computes the hypotenuse using the alpha max plus beta min algorithm.
number
number
hypotenuse
var h = ampbm( -5.0, 12.0 );
// returns ~13.5
Returns a function to compute a hypotenuse using the alpha max plus beta min algorithm.
alpha
beta
boolean indicating whether input values are always nonnegative
boolean indicating whether input values are always 32-bit integers
function to compute a hypotenuse
var hypot = ampbm.factory( 1.0, 0.5 );
// returns <Function>
var h = hypot( -5.0, 12.0 );
// returns 14.5
Interface for computing the hypotenuse using the alpha max plus beta min algorithm.