@stdlib/math-base-special-sincosf 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,192 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ DEPENDENCIES & ATTRIBUTION
180
+
181
+ The library links against the following external libraries or contains
182
+ implementations from the following external libraries, which have their own
183
+ licenses:
184
+
185
+ * FreeBSD <https://svnweb.freebsd.org/>
186
+
187
+ Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved.
188
+
189
+ Developed at SunPro, a Sun Microsystems, Inc. business.
190
+ Permission to use, copy, modify, and distribute this
191
+ software is freely granted, provided that this notice
192
+ is preserved.
package/NOTICE ADDED
@@ -0,0 +1 @@
1
+ Copyright (c) 2016-2026 The Stdlib Authors.
package/README.md ADDED
@@ -0,0 +1,292 @@
1
+ <!--
2
+
3
+ @license Apache-2.0
4
+
5
+ Copyright (c) 2025 The Stdlib Authors.
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+
19
+ -->
20
+
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
32
+ # sincosf
33
+
34
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
35
+
36
+ > Simultaneously compute the [sine][@stdlib/math/base/special/sinf] and [cosine][@stdlib/math/base/special/cosf] of a single-precision floating-point number (in radians).
37
+
38
+ <section class="installation">
39
+
40
+ ## Installation
41
+
42
+ ```bash
43
+ npm install @stdlib/math-base-special-sincosf
44
+ ```
45
+
46
+ </section>
47
+
48
+ <section class="usage">
49
+
50
+ ## Usage
51
+
52
+ ```javascript
53
+ var sincosf = require( '@stdlib/math-base-special-sincosf' );
54
+ ```
55
+
56
+ #### sincosf( x )
57
+
58
+ Simultaneously computes the [sine][@stdlib/math/base/special/sinf] and [cosine][@stdlib/math/base/special/cosf] of a single-precision floating-point number (in radians).
59
+
60
+ ```javascript
61
+ var v = sincosf( 0.0 );
62
+ // returns [ ~0.0, ~1.0 ]
63
+
64
+ v = sincosf( 3.141592653589793/2.0 );
65
+ // returns [ ~1.0, ~0.0 ]
66
+
67
+ v = sincosf( -3.141592653589793/6.0 );
68
+ // returns [ ~-0.5, ~0.866 ]
69
+ ```
70
+
71
+ #### sincosf.assign( x, out, stride, offset )
72
+
73
+ Simultaneously computes the [sine][@stdlib/math/base/special/sinf] and [cosine][@stdlib/math/base/special/cosf] of a single-precision floating-point number (in radians) and assigns the results to a provided output array.
74
+
75
+ ```javascript
76
+ var Float32Array = require( '@stdlib/array-float32' );
77
+
78
+ var out = new Float32Array( 2 );
79
+
80
+ var v = sincosf.assign( 0.0, out, 1, 0 );
81
+ // returns <Float32Array>[ ~0.0, ~1.0 ]
82
+
83
+ var bool = ( v === out );
84
+ // returns true
85
+ ```
86
+
87
+ </section>
88
+
89
+ <!-- /.usage -->
90
+
91
+ <section class="examples">
92
+
93
+ ## Examples
94
+
95
+ <!-- eslint no-undef: "error" -->
96
+
97
+ ```javascript
98
+ var uniform = require( '@stdlib/random-array-uniform' );
99
+ var TWO_PI = require( '@stdlib/constants-float32-two-pi' );
100
+ var sincosf = require( '@stdlib/math-base-special-sincosf' );
101
+
102
+ var opts = {
103
+ 'dtype': 'float32'
104
+ };
105
+ var x = uniform( 100, 0.0, TWO_PI, opts );
106
+
107
+ var y;
108
+ var i;
109
+ for ( i = 0; i < x.length; i++ ) {
110
+ y = sincosf( x[ i ] );
111
+ console.log( 'sincosf(%d) = [ %d, %d ]', x[ i ], y[ 0 ], y[ 1 ] );
112
+ }
113
+ ```
114
+
115
+ </section>
116
+
117
+ <!-- /.examples -->
118
+
119
+ <!-- C interface documentation. -->
120
+
121
+ * * *
122
+
123
+ <section class="c">
124
+
125
+ ## C APIs
126
+
127
+ <!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->
128
+
129
+ <section class="intro">
130
+
131
+ </section>
132
+
133
+ <!-- /.intro -->
134
+
135
+ <!-- C usage documentation. -->
136
+
137
+ <section class="usage">
138
+
139
+ ### Usage
140
+
141
+ ```c
142
+ #include "stdlib/math/base/special/sincosf.h"
143
+ ```
144
+
145
+ #### stdlib_base_sincosf( x, &sine, &cosine )
146
+
147
+ Simultaneously computes the [sine][@stdlib/math/base/special/sinf] and [cosine][@stdlib/math/base/special/cosf] of a single-precision floating-point number (in radians).
148
+
149
+ ```c
150
+ float cosine;
151
+ float sine;
152
+
153
+ stdlib_base_sincosf( 4.0f, &sine, &cosine );
154
+ ```
155
+
156
+ The function accepts the following arguments:
157
+
158
+ - **x**: `[in] float` input value.
159
+ - **sine**: `[out] float*` destination for the sine.
160
+ - **cosine**: `[out] float*` destination for the cosine.
161
+
162
+ ```c
163
+ void stdlib_base_sincosf( const float x, float *sine, float *cosine );
164
+ ```
165
+
166
+ </section>
167
+
168
+ <!-- /.usage -->
169
+
170
+ <!-- C API usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
171
+
172
+ <section class="notes">
173
+
174
+ </section>
175
+
176
+ <!-- /.notes -->
177
+
178
+ <!-- C API usage examples. -->
179
+
180
+ <section class="examples">
181
+
182
+ ### Examples
183
+
184
+ ```c
185
+ #include "stdlib/math/base/special/sincosf.h"
186
+ #include <stdio.h>
187
+
188
+ int main( void ) {
189
+ const float x[] = { 0.0f, 1.57f, 3.14f, 6.28f };
190
+
191
+ float cosine;
192
+ float sine;
193
+ int i;
194
+ for ( i = 0; i < 4; i++ ) {
195
+ stdlib_base_sincosf( x[ i ], &sine, &cosine );
196
+ printf( "sincosf(%f) = [ %f, %f ]\n", x[ i ], sine, cosine );
197
+ }
198
+ }
199
+ ```
200
+
201
+ </section>
202
+
203
+ <!-- /.examples -->
204
+
205
+ </section>
206
+
207
+ <!-- /.c -->
208
+
209
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
210
+
211
+ <section class="related">
212
+
213
+ </section>
214
+
215
+ <!-- /.related -->
216
+
217
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
218
+
219
+
220
+ <section class="main-repo" >
221
+
222
+ * * *
223
+
224
+ ## Notice
225
+
226
+ This package is part of [stdlib][stdlib], a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
227
+
228
+ For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
229
+
230
+ #### Community
231
+
232
+ [![Chat][chat-image]][chat-url]
233
+
234
+ ---
235
+
236
+ ## Copyright
237
+
238
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
239
+
240
+ </section>
241
+
242
+ <!-- /.stdlib -->
243
+
244
+ <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
245
+
246
+ <section class="links">
247
+
248
+ [npm-image]: http://img.shields.io/npm/v/@stdlib/math-base-special-sincosf.svg
249
+ [npm-url]: https://npmjs.org/package/@stdlib/math-base-special-sincosf
250
+
251
+ [test-image]: https://github.com/stdlib-js/math-base-special-sincosf/actions/workflows/test.yml/badge.svg?branch=v0.1.0
252
+ [test-url]: https://github.com/stdlib-js/math-base-special-sincosf/actions/workflows/test.yml?query=branch:v0.1.0
253
+
254
+ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-base-special-sincosf/main.svg
255
+ [coverage-url]: https://codecov.io/github/stdlib-js/math-base-special-sincosf?branch=main
256
+
257
+ <!--
258
+
259
+ [dependencies-image]: https://img.shields.io/david/stdlib-js/math-base-special-sincosf.svg
260
+ [dependencies-url]: https://david-dm.org/stdlib-js/math-base-special-sincosf/main
261
+
262
+ -->
263
+
264
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
265
+ [chat-url]: https://stdlib.zulipchat.com
266
+
267
+ [stdlib]: https://github.com/stdlib-js/stdlib
268
+
269
+ [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
270
+
271
+ [umd]: https://github.com/umdjs/umd
272
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
273
+
274
+ [deno-url]: https://github.com/stdlib-js/math-base-special-sincosf/tree/deno
275
+ [deno-readme]: https://github.com/stdlib-js/math-base-special-sincosf/blob/deno/README.md
276
+ [umd-url]: https://github.com/stdlib-js/math-base-special-sincosf/tree/umd
277
+ [umd-readme]: https://github.com/stdlib-js/math-base-special-sincosf/blob/umd/README.md
278
+ [esm-url]: https://github.com/stdlib-js/math-base-special-sincosf/tree/esm
279
+ [esm-readme]: https://github.com/stdlib-js/math-base-special-sincosf/blob/esm/README.md
280
+ [branches-url]: https://github.com/stdlib-js/math-base-special-sincosf/blob/main/branches.md
281
+
282
+ [@stdlib/math/base/special/cosf]: https://www.npmjs.com/package/@stdlib/math-base-special-cosf
283
+
284
+ [@stdlib/math/base/special/sinf]: https://www.npmjs.com/package/@stdlib/math-base-special-sinf
285
+
286
+ <!-- <related-links> -->
287
+
288
+ <!-- </related-links> -->
289
+
290
+ </section>
291
+
292
+ <!-- /.links -->
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import sincosf from '../docs/types/index';
3
+ export = sincosf;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";var l=function(n,r){return function(){return r||n((r={exports:{}}).exports,r),r.exports}};var P=l(function(z,D){
2
+ var F=require('@stdlib/number-float32-base-to-word/dist'),g=require('@stdlib/math-base-special-rempio2f/dist'),O=require('@stdlib/number-float64-base-to-float32/dist'),m=require('@stdlib/constants-float32-abs-mask/dist'),H=require('@stdlib/constants-float32-exponent-mask/dist'),q=require('@stdlib/constants-float64-half-pi/dist'),c=require('@stdlib/math-base-special-kernel-sincosf/dist').assign,M=1061752794,b=1075235811,h=1081824209,K=1085271519,V=1088565717,k=964689920,N=q,R=2*q,A=3*q,W=4*q,T=[0];function w(n,r,v,a){var _,I,i,E;if(I=F(O(n))|0,i=I&m|0,i<=M)return i<k&&(n|0)===0?(r[a]=O(n),r[a+v]=O(1),r):c(n,r,v,a);if(i<=h)return i<=b?I>0?(c(n-N,r,v,a),_=O(-r[a]),r[a]=r[a+v],r[a+v]=_):(c(n+N,r,v,a),_=O(-r[a+v]),r[a+v]=r[a],r[a]=_):(I>0?c(n-R,r,v,a):c(n+R,r,v,a),r[a]=O(-r[a]),r[a+v]=O(-r[a+v])),r;if(i<=V)return i<=K?I>0?(c(n-A,r,v,a),_=O(-r[a+v]),r[a+v]=r[a],r[a]=_):(c(n+A,r,v,a),_=O(-r[a]),r[a]=r[a+v],r[a+v]=_):I>0?c(n-W,r,v,a):c(n+W,r,v,a),r;if(i>=H)return r[a]=NaN,r[a+v]=NaN,r;switch(E=g(O(n),T),c(T[0],r,v,a),E&3){case 0:return r;case 1:return _=r[a+v],r[a+v]=O(-r[a]),r[a]=_,r;case 2:return r[a]=O(-r[a]),r[a+v]=O(-r[a+v]),r;default:return _=O(-r[a+v]),r[a+v]=r[a],r[a]=_,r}}D.exports=w
3
+ });var S=l(function(C,L){
4
+ var y=P();function B(n){return y(n,[0,0],1,0)}L.exports=B
5
+ });var X=require('@stdlib/utils-define-nonenumerable-read-only-property/dist'),p=S(),Y=P();X(p,"assign",Y);module.exports=p;
6
+ /** @license Apache-2.0 */
7
+ /** @license Apache-2.0 */
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/assign.js", "../lib/main.js", "../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2025 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*\n*\n* ## Notice\n*\n* The following copyright and license were part of the original implementation available as part of FreeBSD [k_sin.c]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_sin.c} and [k_cos.c]{@link https://svnweb.freebsd.org/base/release/9.3.0/lib/msun/src/k_cos.c}. The implementation follows the original sine and cosine kernels, but has been modified for JavaScript and combined into a single function.\n*\n* ```text\n* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.\n*\n* Developed at SunPro, a Sun Microsystems, Inc. business.\n* Permission to use, copy, modify, and distribute this\n* software is freely granted, provided that this notice\n* is preserved.\n* ```\n*/\n\n'use strict';\n\n// MODULES //\n\nvar toWordf = require( '@stdlib/number-float32-base-to-word' );\nvar rempio2f = require( '@stdlib/math-base-special-rempio2f' );\nvar f32 = require( '@stdlib/number-float64-base-to-float32' );\nvar FLOAT32_ABS_MASK = require( '@stdlib/constants-float32-abs-mask' );\nvar FLOAT32_EXPONENT_MASK = require( '@stdlib/constants-float32-exponent-mask' );\nvar FLOAT64_HALF_PI = require( '@stdlib/constants-float64-half-pi' );\nvar kernelSincosf = require( '@stdlib/math-base-special-kernel-sincosf' ).assign;\n\n\n// VARIABLES //\n\n// PI/4 = 0.7853981256484985 => 0 01111110 10010010000111111011010 => 0x3f490fda = 1061752768\nvar PIO4_WORD = 0x3f490fda|0; // asm type annotation\n\n// 3*PI/4 = 2.356194257736206 => 0 10000000 00101101100101111100011 => 0x4016cbe3 = 1075235811\nvar THREE_PIO4_WORD = 0x4016cbe3|0; // asm type annotation\n\n// 5*PI/4 = 3.9269907474517822 => 0 10000000 11110110101001111010001 => 0x407b53d1 = 1081824209\nvar FIVE_PIO4_WORD = 0x407b53d1|0; // asm type annotation\n\n// 7*PI/4 = 5.497786998748779 => 0 10000001 01011111110110111011111 => 0x40afeddf = 1085271519\nvar SEVEN_PIO4_WORD = 0x40afeddf|0; // asm type annotation\n\n// 9*PI/4 = 7.068583011627197 => 0 10000001 11000100011000111010101 => 0x40e231d5 = 1088565717\nvar NINE_PIO4_WORD = 0x40e231d5|0; // asm type annotation\n\n// 2^-12 = 0.000244140625 => 0 01110011 00000000000000000000000 => 0x39800000 = 964689920\nvar SMALL_WORD = 0x39800000|0; // asm type annotation\n\n// Small multiples of PI/2 in double-precision floating-point format:\nvar PIO2 = FLOAT64_HALF_PI; // 0x3FF921FB, 0x54442D18\nvar PI = 2.0 * FLOAT64_HALF_PI; // 0x400921FB, 0x54442D18\nvar THREE_PIO2 = 3.0 * FLOAT64_HALF_PI; // 0x4012D97C, 0x7F3321D2\nvar TWO_PI = 4.0 * FLOAT64_HALF_PI; // 0x401921FB, 0x54442D18\n\n// Array for storing the remainder element:\nvar Y = [ 0.0 ];\n\n\n// MAIN //\n\n/**\n* Simultaneously computes the sine and cosine of a single-precision floating-point number (in radians) and assigns the results to a provided output array.\n*\n* ## Method\n*\n* - Let \\\\(S\\\\), \\\\(C\\\\), and \\\\(T\\\\) denote the \\\\(\\sin\\\\), \\\\(\\cos\\\\) and \\\\(\\tan\\\\), respectively, on \\\\(\\[-\\pi/4, +\\pi/4\\]\\\\).\n*\n* - Reduce the argument \\\\(x\\\\) to \\\\(y = x-k\\pi/2\\\\) in \\\\(\\[-\\pi/4, +\\pi/4\\]\\\\), and let \\\\(n = k \\mod 4\\\\).\n*\n* - We have\n*\n* | n | sin(x) | cos(x) | tan(x) |\n* | - | ------ | ------ | ------ |\n* | 0 | S | C | T |\n* | 1 | C | -S | -1/T |\n* | 2 | -S | -C | T |\n* | 3 | -C | S | -1/T |\n*\n* @private\n* @param {number} x - input value (in radians)\n* @param {Collection} out - output array\n* @param {integer} stride - output array stride\n* @param {NonNegativeInteger} offset - output array index offset\n* @returns {Collection} output array\n*\n* @example\n* var v = sincosf( 0.0, [ 0.0, 0.0 ], 1, 0 );\n* // returns [ ~0.0, ~1.0 ]\n*\n* @example\n* var v = sincosf( 3.141592653589793/2.0, [ 0.0, 0.0 ], 1, 0 );\n* // returns [ ~1.0, ~0.0 ]\n*\n* @example\n* var v = sincosf( -3.141592653589793/6.0, [ 0.0, 0.0 ], 1, 0 );\n* // returns [ ~-0.5, ~0.866 ]\n*\n* @example\n* var v = sincosf( NaN, [ 0.0, 0.0 ], 1, 0 );\n* // returns [ NaN, NaN ]\n*/\nfunction sincosf( x, out, stride, offset ) {\n\tvar tmp;\n\tvar hx;\n\tvar ix;\n\tvar n;\n\n\thx = toWordf( f32( x ) ) |0; // asm type annotation\n\tix = (hx & FLOAT32_ABS_MASK)|0; // asm type annotation\n\n\t// Case: |x| ~<= \u03C0/4\n\tif ( ix <= PIO4_WORD ) {\n\t\t// Case: |x| < 2^-12\n\t\tif ( ix < SMALL_WORD ) {\n\t\t\tif ( (x|0) === 0 ) {\n\t\t\t\tout[ offset ] = f32( x );\n\t\t\t\tout[ offset+stride ] = f32( 1.0 );\n\t\t\t\treturn out;\n\t\t\t}\n\t\t}\n\t\treturn kernelSincosf( x, out, stride, offset );\n\t}\n\t// Case: |x| ~<= 5\u03C0/4\n\tif ( ix <= FIVE_PIO4_WORD ) {\n\t\t// Case: |x| ~<= 3\u03C0/4\n\t\tif ( ix <= THREE_PIO4_WORD ) {\n\t\t\tif ( hx > 0 ) {\n\t\t\t\tkernelSincosf( x - PIO2, out, stride, offset );\n\t\t\t\ttmp = f32( -out[ offset ] );\n\t\t\t\tout[ offset ] = out[ offset+stride ];\n\t\t\t\tout[ offset+stride ] = tmp;\n\t\t\t} else {\n\t\t\t\tkernelSincosf( x + PIO2, out, stride, offset );\n\t\t\t\ttmp = f32( -out[ offset+stride ] );\n\t\t\t\tout[ offset+stride ] = out[ offset ];\n\t\t\t\tout[ offset ] = tmp;\n\t\t\t}\n\t\t} else {\n\t\t\tif ( hx > 0 ) {\n\t\t\t\tkernelSincosf( x - PI, out, stride, offset );\n\t\t\t} else {\n\t\t\t\tkernelSincosf( x + PI, out, stride, offset );\n\t\t\t}\n\t\t\tout[ offset ] = f32( -out[ offset ] );\n\t\t\tout[ offset+stride ] = f32( -out[ offset+stride ] );\n\t\t}\n\t\treturn out;\n\t}\n\t// Case: |x| ~<= 9\u03C0/4\n\tif ( ix <= NINE_PIO4_WORD ) {\n\t\t// Case: |x| ~<= 7\u03C0/4\n\t\tif ( ix <= SEVEN_PIO4_WORD ) {\n\t\t\tif ( hx > 0 ) {\n\t\t\t\tkernelSincosf( x - THREE_PIO2, out, stride, offset );\n\t\t\t\ttmp = f32( -out[ offset+stride ] );\n\t\t\t\tout[ offset+stride ] = out[ offset ];\n\t\t\t\tout[ offset ] = tmp;\n\t\t\t} else {\n\t\t\t\tkernelSincosf( x + THREE_PIO2, out, stride, offset );\n\t\t\t\ttmp = f32( -out[ offset ] );\n\t\t\t\tout[ offset ] = out[ offset+stride ];\n\t\t\t\tout[ offset+stride ] = tmp;\n\t\t\t}\n\t\t} else if ( hx > 0 ) {\n\t\t\tkernelSincosf( x - TWO_PI, out, stride, offset );\n\t\t} else {\n\t\t\tkernelSincosf( x + TWO_PI, out, stride, offset );\n\t\t}\n\t\treturn out;\n\t}\n\t// Case: x is NaN or infinity\n\tif ( ix >= FLOAT32_EXPONENT_MASK ) {\n\t\tout[ offset ] = NaN;\n\t\tout[ offset+stride ] = NaN;\n\t\treturn out;\n\t}\n\t// Argument reduction...\n\tn = rempio2f( f32( x ), Y );\n\n\t// Compute the sine and cosine together:\n\tkernelSincosf( Y[ 0 ], out, stride, offset );\n\n\tswitch ( n & 3 ) {\n\tcase 0:\n\t\treturn out;\n\tcase 1:\n\t\ttmp = out[ offset+stride ];\n\t\tout[ offset+stride ] = f32( -out[ offset ] );\n\t\tout[ offset ] = tmp;\n\t\treturn out;\n\tcase 2:\n\t\tout[ offset ] = f32( -out[ offset ] );\n\t\tout[ offset+stride ] = f32( -out[ offset+stride ] );\n\t\treturn out;\n\tdefault:\n\t\ttmp = f32( -out[ offset+stride ] );\n\t\tout[ offset+stride ] = out[ offset ];\n\t\tout[ offset ] = tmp;\n\t\treturn out;\n\t}\n}\n\n\n// EXPORTS //\n\nmodule.exports = sincosf;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2025 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n// MODULES //\n\nvar assign = require( './assign.js' );\n\n\n// MAIN //\n\n/**\n* Simultaneously computes the sine and cosine of a single-precision floating-point number (in radians).\n*\n* @param {number} x - input value (in radians)\n* @returns {Array<number>} sine and cosine\n*\n* @example\n* var v = sincosf( 0.0 );\n* // returns [ ~0.0, ~1.0 ]\n*\n* @example\n* var v = sincosf( 3.141592653589793/2.0 );\n* // returns [ ~1.0, ~0.0 ]\n*\n* @example\n* var v = sincosf( -3.141592653589793/6.0 );\n* // returns [ ~-0.5, ~0.866 ]\n*\n* @example\n* var v = sincosf( NaN );\n* // returns [ NaN, NaN ]\n*/\nfunction sincosf( x ) {\n\treturn assign( x, [ 0.0, 0.0 ], 1, 0 );\n}\n\n\n// EXPORTS //\n\nmodule.exports = sincosf;\n", "/**\n* @license Apache-2.0\n*\n* Copyright (c) 2025 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/**\n* Simultaneously compute the sine and cosine of a single-precision floating-point number (in radians).\n*\n* @module @stdlib/math-base-special-sincosf\n*\n* @example\n* var sincosf = require( '@stdlib/math-base-special-sincosf' );\n*\n* var v = sincosf( 0.0 );\n* // returns [ ~0.0, ~1.0 ]\n*\n* v = sincosf( 3.141592653589793/2.0 );\n* // returns [ ~1.0, ~0.0 ]\n*\n* v = sincosf( -3.141592653589793/6.0 );\n* // returns [ ~-0.5, ~0.866 ]\n*\n* v = sincosf( NaN );\n* // returns [ NaN, NaN ]\n*\n* @example\n* var Float32Array = require( '@stdlib/array-float32' );\n* var sincosf = require( '@stdlib/math-base-special-sincosf' );\n*\n* var out = new Float32Array( 2 );\n*\n* var v = sincosf.assign( 0.0, out, 1, 0 );\n* // returns <Float32Array>[ ~0.0, ~1.0 ]\n*\n* var bool = ( v === out );\n* // returns true\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-nonenumerable-read-only-property' );\nvar main = require( './main.js' );\nvar assign = require( './assign.js' );\n\n\n// MAIN //\n\nsetReadOnly( main, 'assign', assign );\n\n\n// EXPORTS //\n\nmodule.exports = main;\n"],
5
+ "mappings": "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",
6
+ "names": ["require_assign", "__commonJSMin", "exports", "module", "toWordf", "rempio2f", "f32", "FLOAT32_ABS_MASK", "FLOAT32_EXPONENT_MASK", "FLOAT64_HALF_PI", "kernelSincosf", "PIO4_WORD", "THREE_PIO4_WORD", "FIVE_PIO4_WORD", "SEVEN_PIO4_WORD", "NINE_PIO4_WORD", "SMALL_WORD", "PIO2", "PI", "THREE_PIO2", "TWO_PI", "Y", "sincosf", "x", "out", "stride", "offset", "tmp", "hx", "ix", "n", "require_main", "__commonJSMin", "exports", "module", "assign", "sincosf", "x", "setReadOnly", "main", "assign"]
7
+ }
@@ -0,0 +1,100 @@
1
+ /*
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2025 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ // TypeScript Version: 4.1
20
+
21
+ /// <reference types="@stdlib/types"/>
22
+
23
+ import { NumericArray } from '@stdlib/types/array';
24
+
25
+ interface SinCosf {
26
+ /**
27
+ * Simultaneously computes the sine and cosine of a single-precision floating-point number (in radians).
28
+ *
29
+ * @param x - input value (in radians)
30
+ * @returns sine and cosine
31
+ *
32
+ * @example
33
+ * var v = sincosf( 0.0 );
34
+ * // returns [ ~0.0, ~1.0 ]
35
+ *
36
+ * @example
37
+ * var v = sincosf( 3.141592653589793/2.0 );
38
+ * // returns [ ~1.0, ~0.0 ]
39
+ *
40
+ * @example
41
+ * var v = sincosf( -3.141592653589793/6.0 );
42
+ * // returns [ ~-0.5, ~0.866 ]
43
+ *
44
+ * @example
45
+ * var v = sincosf( NaN );
46
+ * // returns [ NaN, NaN ]
47
+ */
48
+ ( x: number ): Array<number>;
49
+
50
+ /**
51
+ * Simultaneously computes the sine and cosine of a single-precision floating-point number (in radians) and assigns the results to a provided output array.
52
+ *
53
+ * @param x - input value (in radians)
54
+ * @param out - output array
55
+ * @param stride - output array stride
56
+ * @param offset - output array index offset
57
+ * @returns sine and cosine
58
+ *
59
+ * @example
60
+ * var Float32Array = require( '@stdlib/array-float32' );
61
+ *
62
+ * var out = new Float32Array( 2 );
63
+ *
64
+ * var v = sincosf.assign( 0.0, out, 1, 0 );
65
+ * // returns <Float32Array>[ ~0.0, ~1.0 ]
66
+ *
67
+ * var bool = ( v === out );
68
+ * // returns true
69
+ */
70
+ assign<T extends NumericArray>( x: number, out: T, stride: number, offset: number ): T;
71
+ }
72
+
73
+ /**
74
+ * Simultaneously computes the sine and cosine of a single-precision floating-point number (in radians).
75
+ *
76
+ * @param x - input value (in radians)
77
+ * @returns sine and cosine
78
+ *
79
+ * @example
80
+ * var v = sincosf( 0.0 );
81
+ * // returns [ ~0.0, ~1.0 ]
82
+ *
83
+ * @example
84
+ * var v = sincosf( 3.141592653589793/2.0 );
85
+ * // returns [ ~1.0, ~0.0 ]
86
+ *
87
+ * @example
88
+ * var v = sincosf( -3.141592653589793/6.0 );
89
+ * // returns [ ~-0.5, ~0.866 ]
90
+ *
91
+ * @example
92
+ * var v = sincosf( NaN );
93
+ * // returns [ NaN, NaN ]
94
+ */
95
+ declare var sincosf: SinCosf;
96
+
97
+
98
+ // EXPORTS //
99
+
100
+ export = sincosf;