@stdlib/math-base-special-acosf 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +1 -1
- package/README.md +33 -12
- package/package.json +11 -11
- package/src/addon.c +0 -1
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -89,15 +89,15 @@ var v = acosf( -3.14 );
|
|
|
89
89
|
<!-- eslint no-undef: "error" -->
|
|
90
90
|
|
|
91
91
|
```javascript
|
|
92
|
-
var
|
|
92
|
+
var uniform = require( '@stdlib/random-array-uniform' );
|
|
93
|
+
var logEachMap = require( '@stdlib/console-log-each-map' );
|
|
93
94
|
var acosf = require( '@stdlib/math-base-special-acosf' );
|
|
94
95
|
|
|
95
|
-
var x =
|
|
96
|
+
var x = uniform( 100, -1.0, 1.0, {
|
|
97
|
+
'dtype': 'float32'
|
|
98
|
+
});
|
|
96
99
|
|
|
97
|
-
|
|
98
|
-
for ( i = 0; i < x.length; i++ ) {
|
|
99
|
-
console.log( acosf( x[ i ] ) );
|
|
100
|
-
}
|
|
100
|
+
logEachMap( 'acosf(%0.4f) = %0.4f', x, acosf );
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
</section>
|
|
@@ -174,7 +174,7 @@ float stdlib_base_acosf( const float x );
|
|
|
174
174
|
|
|
175
175
|
int main( void ) {
|
|
176
176
|
const float x[] = { -1.0f, -0.78f, -0.56f, -0.33f, -0.11f, 0.11f, 0.33f, 0.56f, 0.78f, 1.0f };
|
|
177
|
-
|
|
177
|
+
|
|
178
178
|
float v;
|
|
179
179
|
int i;
|
|
180
180
|
for ( i = 0; i < 10; i++ ) {
|
|
@@ -196,6 +196,15 @@ int main( void ) {
|
|
|
196
196
|
|
|
197
197
|
<section class="related">
|
|
198
198
|
|
|
199
|
+
* * *
|
|
200
|
+
|
|
201
|
+
## See Also
|
|
202
|
+
|
|
203
|
+
- <span class="package-name">[`@stdlib/math-base/special/acos`][@stdlib/math/base/special/acos]</span><span class="delimiter">: </span><span class="description">compute the arccosine of a double-precision floating-point number.</span>
|
|
204
|
+
- <span class="package-name">[`@stdlib/math-base/special/acosh`][@stdlib/math/base/special/acosh]</span><span class="delimiter">: </span><span class="description">compute the hyperbolic arccosine of a double-precision floating-point number.</span>
|
|
205
|
+
- <span class="package-name">[`@stdlib/math-base/special/asinf`][@stdlib/math/base/special/asinf]</span><span class="delimiter">: </span><span class="description">compute the arcsine of a single-precision floating-point number.</span>
|
|
206
|
+
- <span class="package-name">[`@stdlib/math-base/special/atanf`][@stdlib/math/base/special/atanf]</span><span class="delimiter">: </span><span class="description">compute the arctangent of a single-precision floating-point number.</span>
|
|
207
|
+
|
|
199
208
|
</section>
|
|
200
209
|
|
|
201
210
|
<!-- /.related -->
|
|
@@ -221,7 +230,7 @@ For more information on the project, filing bug reports and feature requests, an
|
|
|
221
230
|
|
|
222
231
|
## Copyright
|
|
223
232
|
|
|
224
|
-
Copyright © 2016-
|
|
233
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
225
234
|
|
|
226
235
|
</section>
|
|
227
236
|
|
|
@@ -234,8 +243,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
234
243
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-acosf.svg
|
|
235
244
|
[npm-url]: https://npmjs.org/package/@stdlib/math-base-special-acosf
|
|
236
245
|
|
|
237
|
-
[test-image]: https://github.com/stdlib-js/math-base-special-acosf/actions/workflows/test.yml/badge.svg?branch=v0.1.
|
|
238
|
-
[test-url]: https://github.com/stdlib-js/math-base-special-acosf/actions/workflows/test.yml?query=branch:v0.1.
|
|
246
|
+
[test-image]: https://github.com/stdlib-js/math-base-special-acosf/actions/workflows/test.yml/badge.svg?branch=v0.1.2
|
|
247
|
+
[test-url]: https://github.com/stdlib-js/math-base-special-acosf/actions/workflows/test.yml?query=branch:v0.1.2
|
|
239
248
|
|
|
240
249
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-acosf/main.svg
|
|
241
250
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-acosf?branch=main
|
|
@@ -247,8 +256,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
247
256
|
|
|
248
257
|
-->
|
|
249
258
|
|
|
250
|
-
[chat-image]: https://img.shields.io/
|
|
251
|
-
[chat-url]: https://
|
|
259
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
260
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
252
261
|
|
|
253
262
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
254
263
|
|
|
@@ -267,6 +276,18 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
267
276
|
|
|
268
277
|
[arccosine]: https://en.wikipedia.org/wiki/Inverse_trigonometric_functions
|
|
269
278
|
|
|
279
|
+
<!-- <related-links> -->
|
|
280
|
+
|
|
281
|
+
[@stdlib/math/base/special/acos]: https://www.npmjs.com/package/@stdlib/math-base-special-acos
|
|
282
|
+
|
|
283
|
+
[@stdlib/math/base/special/acosh]: https://www.npmjs.com/package/@stdlib/math-base-special-acosh
|
|
284
|
+
|
|
285
|
+
[@stdlib/math/base/special/asinf]: https://www.npmjs.com/package/@stdlib/math-base-special-asinf
|
|
286
|
+
|
|
287
|
+
[@stdlib/math/base/special/atanf]: https://www.npmjs.com/package/@stdlib/math-base-special-atanf
|
|
288
|
+
|
|
289
|
+
<!-- </related-links> -->
|
|
290
|
+
|
|
270
291
|
</section>
|
|
271
292
|
|
|
272
293
|
<!-- /.links -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-base-special-acosf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Compute the arccosine of a single-precision floating-point number.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@stdlib/constants-float32-abs-mask": "^0.2.
|
|
38
|
-
"@stdlib/constants-float32-pi": "
|
|
39
|
-
"@stdlib/math-base-assert-is-nanf": "^0.2.
|
|
40
|
-
"@stdlib/math-base-napi-unary": "^0.2.
|
|
41
|
-
"@stdlib/math-base-special-absf": "^0.2.
|
|
42
|
-
"@stdlib/math-base-special-sqrtf": "^0.2.
|
|
43
|
-
"@stdlib/number-float32-base-from-word": "^0.2.
|
|
44
|
-
"@stdlib/number-float32-base-to-word": "^0.2.
|
|
45
|
-
"@stdlib/number-float64-base-to-float32": "^0.2.
|
|
46
|
-
"@stdlib/utils-library-manifest": "^0.2.
|
|
37
|
+
"@stdlib/constants-float32-abs-mask": "^0.2.3",
|
|
38
|
+
"@stdlib/constants-float32-pi": "^0.1.0",
|
|
39
|
+
"@stdlib/math-base-assert-is-nanf": "^0.2.3",
|
|
40
|
+
"@stdlib/math-base-napi-unary": "^0.2.7",
|
|
41
|
+
"@stdlib/math-base-special-absf": "^0.2.3",
|
|
42
|
+
"@stdlib/math-base-special-sqrtf": "^0.2.2",
|
|
43
|
+
"@stdlib/number-float32-base-from-word": "^0.2.2",
|
|
44
|
+
"@stdlib/number-float32-base-to-word": "^0.2.2",
|
|
45
|
+
"@stdlib/number-float64-base-to-float32": "^0.2.2",
|
|
46
|
+
"@stdlib/utils-library-manifest": "^0.2.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {},
|
|
49
49
|
"engines": {
|