Skip to content

Commit 09378ea

Browse files
chore: resolved main.c
Signed-off-by: Dhruv/ <[email protected]>
1 parent a25d43e commit 09378ea

File tree

1 file changed

+9
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/cidentityf/src

1 file changed

+9
-3
lines changed

lib/node_modules/@stdlib/math/base/special/cidentityf/src/main.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@
2727
*
2828
* @example
2929
* #include "stdlib/complex/float32/ctor.h"
30+
* #include "stdlib/complex/float32/real.h"
31+
* #include "stdlib/complex/float32/imag.h"
3032
*
31-
* stdlib_complex64_t z = stdlib_complex64( 3.0f+3.0f*I );
33+
* stdlib_complex64_t z = stdlib_complex64( 3.0f, 3.0f );
3234
*
33-
* stdlib_complex64_t y = stdlib_base_cidentityf( z );
34-
* // returns 3.0f+3.0f*I
35+
* stdlib_complex64_t out = stdlib_base_cidentityf( z );
36+
* float re = stdlib_complex64_real( out );
37+
* // returns 2.5f
38+
*
39+
* float im = stdlib_complex64_imag( out );
40+
* // returns -1.5f
3541
*/
3642
stdlib_complex64_t stdlib_base_cidentityf( const stdlib_complex64_t z ) {
3743
return z;

0 commit comments

Comments
 (0)