Skip to content

Commit 6f32fb0

Browse files
chore: resolved issues from readme
Signed-off-by: Dhruv/ <[email protected]>
1 parent 5f7a2c5 commit 6f32fb0

File tree

1 file changed

+7
-7
lines changed
  • lib/node_modules/@stdlib/math/base/special/cidentityf

1 file changed

+7
-7
lines changed

lib/node_modules/@stdlib/math/base/special/cidentityf/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ Evaluates the identity function for a single-precision complex floating-point nu
134134
#include "stdlib/complex/float32/real.h"
135135
#include "stdlib/complex/float32/imag.h"
136136

137-
stdlib_complex64_t z = stdlib_complex64( 2.5, -1.5 );
137+
stdlib_complex64_t z = stdlib_complex64( 2.5f, -1.5f );
138138
stdlib_complex64_t out = stdlib_base_cidentityf( z );
139139

140140
float re = stdlib_complex64_real( out );
141-
// returns 2.5
141+
// returns 2.5f
142142

143143
float im = stdlib_complex64_imag( out );
144-
// returns -1.5
144+
// returns -1.5f
145145
```
146146

147147
The function accepts the following arguments:
@@ -177,10 +177,10 @@ stdlib_complex64_t stdlib_base_cidentityf( const stdlib_complex64_t z );
177177
178178
int main( void ) {
179179
const stdlib_complex64_t x[] = {
180-
stdlib_complex64( 3.14, 1.5 ),
181-
stdlib_complex64( -3.14, -1.5 ),
182-
stdlib_complex64( 0.0, 0.0 ),
183-
stdlib_complex64( 0.0/0.0, 0.0/0.0 )
180+
stdlib_complex64( 3.14f, 1.5f ),
181+
stdlib_complex64( -3.14f, -1.5f ),
182+
stdlib_complex64( 0.0f, 0.0f ),
183+
stdlib_complex64( 0.0f/0.0f, 0.0f/0.0f )
184184
};
185185
186186
stdlib_complex64_t v;

0 commit comments

Comments
 (0)