Skip to content

Commit 8ed22a1

Browse files
Update native.js
Signed-off-by: Gautam sharma <[email protected]>
1 parent 87475ba commit 8ed22a1

File tree

1 file changed

+15
-16
lines changed
  • lib/node_modules/@stdlib/math/base/special/cphase/lib

1 file changed

+15
-16
lines changed

lib/node_modules/@stdlib/math/base/special/cphase/lib/native.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,29 @@
1818

1919
'use strict';
2020

21-
2221
// MODULES //
2322

24-
var addon = require( './../src/addon.node' );
25-
23+
var addon = require('./../src/addon.node');
2624

2725
// MAIN //
2826

2927
/**
30-
*@private
31-
*@param {Complex128} z - complex number
32-
*@returns {number} argument
33-
*
34-
*@example
35-
*var Complex128 = require( '@stdlib/complex/float64/ctor' );
36-
*
37-
*var phi = cphase( new Complex128( 5.0, 3.0 ) );
38-
*// returns ~0.5404
39-
*/
40-
function cphase( z ) {
41-
return addon( z );
28+
* Computes the phase (argument) of a complex number.
29+
*
30+
* @private
31+
* @param {Complex128} z - complex number
32+
* @returns {number} argument
33+
*
34+
* @example
35+
* var Complex128 = require('@stdlib/complex/float64/ctor');
36+
*
37+
* var phi = cphase(new Complex128(5.0, 3.0));
38+
* // returns ~0.5404
39+
*/
40+
function cphase(z) {
41+
return addon(z);
4242
}
4343

44-
4544
// EXPORTS //
4645

4746
module.exports = cphase;

0 commit comments

Comments
 (0)