You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/math/base/ops/cadd/README.md
+111-32
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ limitations under the License.
18
18
19
19
-->
20
20
21
-
# add
21
+
# cadd
22
22
23
-
> Add two complex numbers.
23
+
> Add two double-precision complex floating-point numbers.
24
24
25
25
<sectionclass="intro">
26
26
@@ -36,27 +36,25 @@ limitations under the License.
36
36
var cadd =require( '@stdlib/math/base/ops/cadd' );
37
37
```
38
38
39
-
#### cadd( \[out,] re1, im1, re2, im2 )
39
+
#### cadd( z1, z2 )
40
40
41
-
Adds two `complex` numbers where each `complex` number is comprised of a **real** component `re` and an **imaginary** component `im`.
41
+
Adds two double-precision complex floating-point numbers.
42
42
43
43
```javascript
44
-
var v =cadd( 5.0, 3.0, -2.0, 1.0 );
45
-
// returns [ 3.0, 4.0 ]
46
-
```
47
-
48
-
By default, the function returns real and imaginary components as a two-element `array`. To avoid unnecessary memory allocation, the function supports providing an output (destination) object.
44
+
var Complex128 =require( '@stdlib/complex/float64' );
<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
103
+
104
+
<sectionclass="intro">
105
+
106
+
</section>
107
+
108
+
<!-- /.intro -->
109
+
110
+
<!-- C usage documentation. -->
111
+
112
+
<sectionclass="usage">
113
+
114
+
### Usage
115
+
116
+
```c
117
+
#include"stdlib/math/base/ops/cadd.h"
118
+
```
119
+
120
+
#### stdlib_base_cadd( z1, z2 )
121
+
122
+
Adds two double-precision complex floating-point numbers.
0 commit comments