Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions lib/node_modules/@stdlib/math/base/special/cexp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,26 +57,12 @@ Evaluates the [exponential][exponential-function] function for a double-precisio

```javascript
var Complex128 = require( '@stdlib/complex/float64/ctor' );
var real = require( '@stdlib/complex/float64/real' );
var imag = require( '@stdlib/complex/float64/imag' );

var v = cexp( new Complex128( 0.0, 0.0 ) );
// returns <Complex128>

var re = real( v );
// returns 1.0

var im = imag( v );
// returns 0.0
// returns <Complex128>[ 1.0, 0.0 ]

v = cexp( new Complex128( 0.0, 1.0 ) );
// returns <Complex128>

re = real( v );
// returns ~0.540

im = imag( v );
// returns ~0.841
// returns <Complex128>[ ~0.540, ~0.841 ]
```

</section>
Expand Down
12 changes: 2 additions & 10 deletions lib/node_modules/@stdlib/math/base/special/cexp/docs/repl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@
Examples
--------
> var y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 0.0, 0.0 ) )
<Complex128>
> var re = {{alias:@stdlib/complex/float64/real}}( y )
1.0
> var im = {{alias:@stdlib/complex/float64/imag}}( y )
0.0
<Complex128>[ 1.0, 0.0 ]
> y = {{alias}}( new {{alias:@stdlib/complex/float64/ctor}}( 0.0, 1.0 ) )
<Complex128>
> re = {{alias:@stdlib/complex/float64/real}}( y )
~0.540
> im = {{alias:@stdlib/complex/float64/imag}}( y )
~0.841
<Complex128>[ ~0.540, ~0.841 ]

See Also
--------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,16 @@ import { Complex128 } from '@stdlib/types/complex';
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
*
* var v = cexp( new Complex128( 0.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns 1.0
*
* var im = imag( v );
* // returns 0.0
* // returns <Complex128>[ 1.0, 0.0 ]
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
*
* var v = cexp( new Complex128( 1.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns ~2.718
* // returns <Complex128>[ ~2.718, 0.0 ]
*
* var im = imag( v );
* // returns 0.0
*/
declare function cexp( z: Complex128 ): Complex128;

Expand Down
9 changes: 1 addition & 8 deletions lib/node_modules/@stdlib/math/base/special/cexp/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cexp = require( '@stdlib/math/base/special/cexp' );
*
* var v = cexp( new Complex128( 0.0, 0.0 ) );
* // returns <Complex128>
* // returns <Complex128>[ 1.0, 0.0 ]
*
* var re = real( v );
* // returns 1.0
*
* var im = imag( v );
* // returns 0.0
*/

// MODULES //
Expand Down
19 changes: 2 additions & 17 deletions lib/node_modules/@stdlib/math/base/special/cexp/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,33 +42,18 @@ var imag = require( '@stdlib/complex/float64/imag' );
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cexp = require( '@stdlib/math/base/special/cexp' );
*
* var v = cexp( new Complex128( 0.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns 1.0
*
* var im = imag( v );
* // returns 0.0
* // returns <Complex128>[ 1.0, 0.0 ]
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cexp = require( '@stdlib/math/base/special/cexp' );
*
* var v = cexp( new Complex128( 1.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns ~2.718
* // returns <Complex128>[ ~2.718, 0.0 ]
*
* var im = imag( v );
* // returns 0.0
*/
function cexp( z ) {
var out;
Expand Down
19 changes: 2 additions & 17 deletions lib/node_modules/@stdlib/math/base/special/cexp/lib/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,33 +35,18 @@ var addon = require( './../src/addon.node' );
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cexp = require( '@stdlib/math/base/special/cexp' );
*
* var v = cexp( new Complex128( 0.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns 1.0
*
* var im = imag( v );
* // returns 0.0
* // returns <Complex128>[ 1.0, 0.0 ]
*
* @example
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
* var cexp = require( '@stdlib/math/base/special/cexp' );
*
* var v = cexp( new Complex128( 1.0, 0.0 ) );
* // returns <Complex128>
*
* var re = real( v );
* // returns ~2.718
* // returns <Complex128>[ ~2.718, 0.0 ]
*
* var im = imag( v );
* // returns 0.0
*/
function cexp( z ) {
var v = addon( z );
Expand Down