Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

dlapy2

LAPACK routine to calculate sqrt(x^2 + y^2) in a manner which doesn't cause unnecessary overflow.

Usage

var dlapy2 = require( '@stdlib/lapack/base/dlapy2' );

dlapy2( x, y )

Computes sqrt(x^2 + y^2) in a manner which doesn't cause unnecessary overflow.

var out = dlapy2( 3.0, 4.0 );
// returns 5.0

The function has the following parameters:

  • x: first input number.
  • y: second input number.

Notes

Examples

var discreteUniform = require( '@stdlib/random/array/discrete-uniform' );
var logEachMap = require( '@stdlib/console/log-each-map' );
var dlapy2 = require( '@stdlib/lapack/base/dlapy2' );

var opts = {
    'dtype': 'float64'
};
var x = discreteUniform( 100, -50, 50, opts );
var y = discreteUniform( 100, -50, 50, opts );

logEachMap( 'dlapy2( %d, %d ) = %0.4f', x, y, dlapy2 );

C APIs

Usage

TODO

TODO

TODO.

TODO

TODO

TODO

Examples

TODO