File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
lib/node_modules/@stdlib/math/base/special/cidentityf/src Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 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*/
3642stdlib_complex64_t stdlib_base_cidentityf ( const stdlib_complex64_t z ) {
3743 return z ;
You can’t perform that action at this time.
0 commit comments