Skip to content

Commit 2de2781

Browse files
committed
chore: update examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: passed - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 5df47c3 commit 2de2781

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

lib/node_modules/@stdlib/math/base/assert/is-prime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int main( void ) {
156156
157157
bool b;
158158
int i;
159-
for ( i = 0; i < 6; i++ ) {
159+
for ( i = 0; i < 8; i++ ) {
160160
b = stdlib_base_is_prime( x[ i ] );
161161
printf( "Value: %lf. Is Prime? %s.\n", x[ i ], ( b ) ? "True" : "False" );
162162
}

lib/node_modules/@stdlib/math/base/assert/is-prime/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int main( void ) {
2525

2626
bool b;
2727
int i;
28-
for ( i = 0; i < 6; i++ ) {
28+
for ( i = 0; i < 8; i++ ) {
2929
b = stdlib_base_is_prime( x[ i ] );
3030
printf( "Value: %lf. Is Prime? %s.\n", x[ i ], ( b ) ? "True" : "False" );
3131
}

lib/node_modules/@stdlib/math/base/assert/uint32-is-pow2/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ int main( void ) {
149149
bool b;
150150
int i;
151151
152-
for ( i = 0; i < 9; i++ ) {
152+
for ( i = 0; i < 10; i++ ) {
153153
b = stdlib_base_uint32_is_pow2( x[ i ] );
154154
printf( "Value: %u. is a power of 2? %s.\n", x[ i ], ( b ) ? "True" : "False" );
155155
}
156156
}
157157
```
158158

159-
</section>s
159+
</section>
160160

161161
<!-- /.examples -->
162162

lib/node_modules/@stdlib/math/base/assert/uint32-is-pow2/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ int main( void ) {
2626
bool b;
2727
int i;
2828

29-
for ( i = 0; i < 9; i++ ) {
29+
for ( i = 0; i < 10; i++ ) {
3030
b = stdlib_base_uint32_is_pow2( x[ i ] );
3131
printf( "Value: %u. is a power of 2? %s.\n", x[ i ], ( b ) ? "True" : "False" );
3232
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ int main( void ) {
143143
int i;
144144
for ( i = 0; i < 10; i++ ) {
145145
v = stdlib_base_atanf( x[ i ] );
146-
printf( "atan(%f) = %f\n", x[ i ], v );
146+
printf( "atanf(%f) = %f\n", x[ i ], v );
147147
}
148148
}
149149
```

lib/node_modules/@stdlib/math/base/special/atanf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ int main( void ) {
2626
int i;
2727
for ( i = 0; i < 10; i++ ) {
2828
v = stdlib_base_atanf( x[ i ] );
29-
printf( "atan(%f) = %f\n", x[ i ], v );
29+
printf( "atanf(%f) = %f\n", x[ i ], v );
3030
}
3131
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ logEachMap( 'atanh(%0.4f) = %0.4f', x, atanh );
115115

116116
#### stdlib_base_atanh( x )
117117

118-
Computes the [hyperbolic arctangent][hyperbolic-arctangent] of double-precision floating-point number.
118+
Computes the [hyperbolic arctangent][hyperbolic-arctangent] of a double-precision floating-point number.
119119

120120
```c
121121
double out = stdlib_base_atanh( 0.0 );

0 commit comments

Comments
 (0)