@stdlib/lapack-base-dlapy2
v0.1.1
Published
LAPACK routine to calculate sqrt(x^2 + y^2) in a manner which doesn't cause unnecessary overflow.
Readme
dlapy2
LAPACK routine to calculate
sqrt(x^2 + y^2)in a manner which doesn't cause unnecessary overflow.
Installation
npm install @stdlib/lapack-base-dlapy2Usage
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.0The 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
TODOTODO
TODO.
TODOTODO
TODOExamples
TODONotice
This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
Community
License
See LICENSE.
Copyright
Copyright © 2016-2026. The Stdlib Authors.
