We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb48f6 commit 0ff8838Copy full SHA for 0ff8838
lib/node_modules/@stdlib/math/base/special/expf/README.md
@@ -171,17 +171,14 @@ float stdlib_base_expf( const float x );
171
#include <stdio.h>
172
173
int main( void ) {
174
- float x[ 100 ];
+ float x;
175
float v;
176
int i;
177
-
178
- for ( i = 0; i < 100; i++ ) {
179
- x[ i ] = ( ( (float)rand() / (float)RAND_MAX ) * 100.0f );
180
- }
181
182
for ( i = 0; i < 100; i++ ) {
183
- v = stdlib_base_expf( x[ i ] );
184
- printf( "e^%f = %f\n", x[ i ], v );
+ x = ( (float)rand() / (float)RAND_MAX ) * 100.0f;
+ v = stdlib_base_expf( x );
+ printf( "e^%f = %f\n", x, v );
185
}
186
187
```
0 commit comments