Skip to content

Commit 945e92b

Browse files
committed
chore: apply suggestions from review
--- 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: passed - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent b096d0b commit 945e92b

File tree

10 files changed

+15
-19
lines changed

10 files changed

+15
-19
lines changed

lib/node_modules/@stdlib/math/base/special/kernel-cosf/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ limitations under the License.
2020

2121
# kernelCosf
2222

23-
> Compute the [cosine][cosine] of a single-precision floating-point number on `[-π/4, π/4]`.
23+
> Compute the [cosine][cosine] of a number on `[-π/4, π/4]` in single-precision floating-point format.
2424
2525
<section class="usage">
2626

@@ -32,7 +32,7 @@ var kernelCosf = require( '@stdlib/math/base/special/kernel-cosf' );
3232

3333
#### kernelCosf( x )
3434

35-
Computes the [cosine][cosine] of a single-precision floating-point number on `[-π/4, π/4]`.
35+
Computes the [cosine][cosine] of a number on `[-π/4, π/4]` in single-precision floating-point format.
3636

3737
```javascript
3838
var v = kernelCosf( 0.0 );
@@ -101,11 +101,11 @@ logEachMap( 'kernelCosf(%0.4f) = %0.4f', x, kernelCosf );
101101

102102
#### stdlib_base_kernel_cosf( x )
103103

104-
Computes the [cosine][cosine] of a single-precision floating-point number on `[-π/4, π/4]`.
104+
Computes the [cosine][cosine] of a number on `[-π/4, π/4]` in single-precision floating-point format.
105105

106106
```c
107107
float v = stdlib_base_kernel_cosf( 0.0 );
108-
// returns ~0.0f
108+
// returns ~1.0f
109109

110110
v = stdlib_base_kernel_cosf( 3.141592653589793/6.0 );
111111
// returns ~0.866f
@@ -148,7 +148,7 @@ int main( void ) {
148148
int i;
149149
for ( i = 0; i < 10; i++ ) {
150150
out = stdlib_base_kernel_cosf( x[ i ] );
151-
printf ( "x[ i ]: %lf, out: %f\n", x[ i ], out );
151+
printf( "kernelCosf(%lf) = %f\n", x[ i ], out );
152152
}
153153
}
154154
```

lib/node_modules/@stdlib/math/base/special/kernel-cosf/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
{{alias}}( x )
3-
Computes the cosine of a single-precision floating-point number on the
4-
interval [-π/4, π/4].
3+
Computes the cosine of a number on the interval [-π/4, π/4] in
4+
single-precision floating-point format.
55

66
If provided `NaN`, the function returns `NaN`.
77

lib/node_modules/@stdlib/math/base/special/kernel-cosf/docs/types/index.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@
1919
// TypeScript Version: 4.1
2020

2121
/**
22-
* Computes the cosine of a single-precision floating-point number on \\( \[-\pi/4, \pi/4] \\), where \\( \pi/4 \approx 0.785398164 \\).
23-
*
24-
* ## Notes
25-
*
26-
* - \\( | \cos(x) - c(x) | < 2^{-34.1} \\), where \\( 2^{-34.1} \approx \[ -5.37 \times 10^{-11}, 5.295 \times 10^{-11} \] \\).
22+
* Computes the cosine of a number on \\( \[-\pi/4, \pi/4] \\) in single-precision floating-point format, where \\( \pi/4 \approx 0.785398164 \\).
2723
*
2824
* @param x - input value (in radians, assumed to be bounded by ~pi/4 in magnitude)
2925
* @returns cosine

lib/node_modules/@stdlib/math/base/special/kernel-cosf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ int main( void ) {
2727
int i;
2828
for ( i = 0; i < 10; i++ ) {
2929
out = stdlib_base_kernel_cosf( x[ i ] );
30-
printf ( "x[ i ]: %lf, out: %f\n", x[ i ], out );
30+
printf( "kernelCosf(%lf) = %f\n", x[ i ], out );
3131
}
3232
}

lib/node_modules/@stdlib/math/base/special/kernel-cosf/include/stdlib/math/base/special/kernel_cosf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Computes the cosine of a single-precision floating-point number on [-π/4, π/4].
30+
* Computes the cosine of a number on [-π/4, π/4] in single-precision floating-point format.
3131
*/
3232
float stdlib_base_kernel_cosf( const double x );
3333

lib/node_modules/@stdlib/math/base/special/kernel-cosf/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'use strict';
2020

2121
/**
22-
* Compute the cosine of a single-precision floating-point number on `[-π/4, π/4]`.
22+
* Compute the cosine of a number on `[-π/4, π/4]` in single-precision floating-point format.
2323
*
2424
* @module @stdlib/math/base/special/kernel-cosf
2525
*

lib/node_modules/@stdlib/math/base/special/kernel-cosf/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var C1 = 0.0416666233237390631894; // 0x155553e1053a42.0p-57
4747
// MAIN //
4848

4949
/**
50-
* Computes the cosine of a single-precision floating-point number on \\( \[-\pi/4, \pi/4] \\), where \\( \pi/4 \approx 0.785398164 \\).
50+
* Computes the cosine of a number on \\( \[-\pi/4, \pi/4] \\) in single-precision floating-point format, where \\( \pi/4 \approx 0.785398164 \\).
5151
*
5252
* ## Notes
5353
*

lib/node_modules/@stdlib/math/base/special/kernel-cosf/lib/native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var addon = require( './../src/addon.node' );
2626
// MAIN //
2727

2828
/**
29-
* Computes the cosine of a single-precision floating-point number on \\( \[-\pi/4, \pi/4] \\), where \\( \pi/4 \approx 0.785398164 \\).
29+
* Computes the cosine of a number on \\( \[-\pi/4, \pi/4] \\) in single-precision floating-point format, where \\( \pi/4 \approx 0.785398164 \\).
3030
*
3131
* @private
3232
* @param {number} x - input value (in radians, assumed to be bounded by ~pi/4 in magnitude)

lib/node_modules/@stdlib/math/base/special/kernel-cosf/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@stdlib/math/base/special/kernel-cosf",
33
"version": "0.0.0",
4-
"description": "Compute the cosine of a single-precision floating-point number on [-π/4, π/4].",
4+
"description": "Compute the cosine of a number on [-π/4, π/4] in single-precision floating-point format.",
55
"license": "Apache-2.0",
66
"author": {
77
"name": "The Stdlib Authors",

lib/node_modules/@stdlib/math/base/special/kernel-cosf/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static double polyval_c23( const double x ) {
5858
// END: polyval_c23
5959

6060
/**
61-
* Computes the cosine of a single-precision floating-point number on \\( \[-\pi/4, \pi/4] \\), where \\( \pi/4 \approx 0.785398164 \\).
61+
* Computes the cosine of a number on \\( \[-\pi/4, \pi/4] \\) in single-precision floating-point format, where \\( \pi/4 \approx 0.785398164 \\).
6262
*
6363
* ## Notes
6464
*

0 commit comments

Comments
 (0)