Skip to content

Commit 5c4ffe4

Browse files
authored
docs: update examples
Signed-off-by: Athan <[email protected]>
1 parent 1f51a53 commit 5c4ffe4

File tree

1 file changed

+1
-12
lines changed
  • lib/node_modules/@stdlib/math/base/ops

1 file changed

+1
-12
lines changed

lib/node_modules/@stdlib/math/base/ops/README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,9 @@ The namespace contains the following functions:
6767
<!-- eslint no-undef: "error" -->
6868

6969
```javascript
70-
var Complex128 = require( '@stdlib/complex/float64/ctor' );
7170
var ns = require( '@stdlib/math/base/ops' );
7271

73-
console.log( ns.sub( 1.25, 0.45 ) );
74-
// => 0.8
75-
76-
console.log( ns.divf( 1.2, 0.4 ) );
77-
// => 3.0
78-
79-
// Operations for complex numbers:
80-
var z1 = new Complex128( 5.0, 3.0 );
81-
var z2 = new Complex128( -2.0, 1.0 );
82-
console.log( ns.cmul( z1, z2 ) ); // { 're': -13.0, 'im': -1.0 }
83-
// => <Complex128>
72+
console.log( ns );
8473
```
8574

8675
</section>

0 commit comments

Comments
 (0)