Skip to content

Commit 6aeced9

Browse files
authored
docs: update examples for complex/float64/base/div
PR-URL: #7266 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent b9dd967 commit 6aeced9

File tree

5 files changed

+5
-57
lines changed

5 files changed

+5
-57
lines changed

lib/node_modules/@stdlib/complex/float64/base/div/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,12 @@ Divides two double-precision complex floating-point numbers.
4242

4343
```javascript
4444
var Complex128 = require( '@stdlib/complex/float64/ctor' );
45-
var real = require( '@stdlib/complex/float64/real' );
46-
var imag = require( '@stdlib/complex/float64/imag' );
4745

4846
var z1 = new Complex128( -13.0, -1.0 );
4947
var z2 = new Complex128( -2.0, 1.0 );
5048

5149
var v = cdiv( z1, z2 );
52-
// returns <Complex128>
53-
54-
var re = real( v );
55-
// returns 5.0
56-
57-
var im = imag( v );
58-
// returns 3.0
50+
// returns <Complex128>[ 5.0, 3.0 ]
5951
```
6052

6153
</section>

lib/node_modules/@stdlib/complex/float64/base/div/docs/types/index.d.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,12 @@ import { Complex128 } from '@stdlib/types/complex';
3131
*
3232
* @example
3333
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
34-
* var real = require( '@stdlib/complex/float64/real' );
35-
* var imag = require( '@stdlib/complex/float64/imag' );
3634
*
3735
* var z1 = new Complex128( -13.0, -1.0 );
38-
* // returns <Complex128>
39-
*
4036
* var z2 = new Complex128( -2.0, 1.0 );
41-
* // returns <Complex128>
4237
*
4338
* var out = cdiv( z1, z2 );
44-
* // returns <Complex128>
45-
*
46-
* var re = real( out );
47-
* // returns 5.0
48-
*
49-
* var im = imag( out );
50-
* // returns 3.0
39+
* // returns <Complex128>[ 5.0, 3.0 ]
5140
*/
5241
declare function cdiv( z1: Complex128, z2: Complex128 ): Complex128;
5342

lib/node_modules/@stdlib/complex/float64/base/div/lib/index.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,13 @@
2525
*
2626
* @example
2727
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
28-
* var real = require( '@stdlib/complex/float64/real' );
29-
* var imag = require( '@stdlib/complex/float64/imag' );
3028
* var cdiv = require( '@stdlib/complex/float64/base/div' );
3129
*
3230
* var z1 = new Complex128( -13.0, -1.0 );
33-
* // returns <Complex128>
34-
*
3531
* var z2 = new Complex128( -2.0, 1.0 );
36-
* // returns <Complex128>
3732
*
3833
* var out = cdiv( z1, z2 );
39-
* // returns <Complex128>
40-
*
41-
* var re = real( out );
42-
* // returns 5.0
43-
*
44-
* var im = imag( out );
45-
* // returns 3.0
34+
* // returns <Complex128>[ 5.0, 3.0 ]
4635
*/
4736

4837
// MODULES //

lib/node_modules/@stdlib/complex/float64/base/div/lib/main.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,12 @@ var RECIP_EPS_SQR = 2.0 / ( EPS * EPS );
5353
*
5454
* @example
5555
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
56-
* var real = require( '@stdlib/complex/float64/real' );
57-
* var imag = require( '@stdlib/complex/float64/imag' );
5856
*
5957
* var z1 = new Complex128( -13.0, -1.0 );
60-
* // returns <Complex128>
61-
*
6258
* var z2 = new Complex128( -2.0, 1.0 );
63-
* // returns <Complex128>
6459
*
6560
* var out = cdiv( z1, z2 );
66-
* // returns <Complex128>
67-
*
68-
* var re = real( out );
69-
* // returns 5.0
70-
*
71-
* var im = imag( out );
72-
* // returns 3.0
61+
* // returns <Complex128>[ 5.0, 3.0 ]
7362
*/
7463
function cdiv( z1, z2 ) {
7564
var re1;

lib/node_modules/@stdlib/complex/float64/base/div/lib/native.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,12 @@ var addon = require( './../src/addon.node' );
3636
*
3737
* @example
3838
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
39-
* var real = require( '@stdlib/complex/float64/real' );
40-
* var imag = require( '@stdlib/complex/float64/imag' );
4139
*
4240
* var z1 = new Complex128( -13.0, -1.0 );
43-
* // returns <Complex128>
44-
*
4541
* var z2 = new Complex128( -2.0, 1.0 );
46-
* // returns <Complex128>
4742
*
4843
* var out = cdiv( z1, z2 );
49-
* // returns <Complex128>
50-
*
51-
* var re = real( out );
52-
* // returns 5.0
53-
*
54-
* var im = imag( out );
55-
* // returns 3.0
44+
* // returns <Complex128>[ 5.0, 3.0 ]
5645
*/
5746
function cdiv( z1, z2 ) {
5847
var v = addon( z1, z2 );

0 commit comments

Comments
 (0)