Skip to content

Commit 8f09b15

Browse files
committed
Auto-generated commit
1 parent b658229 commit 8f09b15

File tree

6 files changed

+187
-3
lines changed

6 files changed

+187
-3
lines changed

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,12 @@ jsconfig.json
188188
# Other editor files #
189189
######################
190190
.idea/
191+
.cursor
191192
.cursorignore
193+
.windsurfrules
194+
.clinerules
192195

193196
# AI coding agents #
194197
####################
195-
claude.md
198+
CLAUDE.md
199+
GEMINI.md

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-09-07)
7+
## Unreleased (2025-10-01)
88

99
<section class="reverts">
1010

@@ -22,6 +22,7 @@
2222

2323
<details>
2424

25+
- [`f6204a4`](https://github.com/stdlib-js/stdlib/commit/f6204a4fc179ad7f12ecdfa6a472ae56d4f04b9d) - **test:** add tests to achieve full coverage in `acosf` and `asin` _(by Philipp Burckhardt)_
2526
- [`5967ff0`](https://github.com/stdlib-js/stdlib/commit/5967ff0776bd0b67f1378625f87a7797bb9954c3) - **chore:** add structured package data for packages in `math/base/special` [(#8022)](https://github.com/stdlib-js/stdlib/pull/8022) _(by Gunj Joshi, Athan Reines)_
2627
- [`fc438e0`](https://github.com/stdlib-js/stdlib/commit/fc438e0edbad0689d6923d6f3edb959b96597662) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
2728
- [`630ddb7`](https://github.com/stdlib-js/stdlib/commit/630ddb777824b5f6e501fda6dadf4ce41dccb964) - **test:** replace equal with strictEqual _(by Karan Anand)_

CONTRIBUTORS

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Ahmed Khaled <kahmd1444@gmail.com>
2020
Aksshay Balasubramanian <119944779+Aksshay88@users.noreply.github.com>
2121
Aleksandr <112382387+alextes90@users.noreply.github.com>
2222
Ali Salesi <ali_sal1381@yahoo.com>
23-
AlyAbdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
23+
Aly Abdelmoneim <148393799+AlyAbdelmoneim@users.noreply.github.com>
2424
Aman Bhansali <bhansali.1@iitj.ac.in>
2525
AmanBhadkariya <140033975+AmanBhadkariya@users.noreply.github.com>
2626
Amisha Chhajed <136238836+amishhaa@users.noreply.github.com>
@@ -29,6 +29,7 @@ Anmol Sah <113588714+anmolsah@users.noreply.github.com>
2929
Annamalai Prabu <apfossdev@gmail.com>
3030
Anshu Kumar <132515490+anxhukumar@users.noreply.github.com>
3131
Anshu Kumar <contact.anshukumar@protonmail.com>
32+
Anshuman Singh <109489361+Anshumancanrock@users.noreply.github.com>
3233
Anudeep Sanapala <anudeep0306@gmail.com>
3334
Arihant Pal <arihant0pal@gmail.com>
3435
Aryan Bhirud <112156883+AryanBhirud@users.noreply.github.com>
@@ -137,6 +138,7 @@ Nourhan Hasan <109472010+TheNourhan@users.noreply.github.com>
137138
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
138139
Oneday12323 <107678750+Oneday12323@users.noreply.github.com>
139140
Ori Miles <97595296+orimiles5@users.noreply.github.com>
141+
Payal Goswami <payalgoswami9711@gmail.com>
140142
Philipp Burckhardt <pburckhardt@outlook.com>
141143
Pierre Forstmann <15964998+pierreforstmann@users.noreply.github.com>
142144
Pradyumn Prasad <pradyumnprasad.567@gmail.com>
@@ -178,9 +180,11 @@ Sanchay Ketan Sinha <122982233+satansin123@users.noreply.github.com>
178180
Sarthak Paandey <145528240+SarthakPaandey@users.noreply.github.com>
179181
Satyajeet Chavan <chavansatyajeet2004@gmail.com>
180182
Saurabh Singh <saurabhsraghuvanshi@gmail.com>
183+
Seth-Banker <125103042+Seth-Banker@users.noreply.github.com>
181184
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
182185
Shabareesh Shetty <139731143+ShabiShett07@users.noreply.github.com>
183186
Shashank Shekhar Singh <shashankshekharsingh1205@gmail.com>
187+
Shaswata Panda <106397517+shaswata-26@users.noreply.github.com>
184188
Shivam Ahir <11shivam00@gmail.com>
185189
Shivansh <114570926+shiv343@users.noreply.github.com>
186190
Shraddheya Shendre <shendreshraddheya@gmail.com>
@@ -201,6 +205,7 @@ Tirtadwipa Manunggal <tirtadwipa.manunggal@gmail.com>
201205
Tudor Pagu <104032457+tudor-pagu@users.noreply.github.com>
202206
Tufailahmed Bargir <142114244+Tufailahmed-Bargir@users.noreply.github.com>
203207
Tushar Bhardwaj <155543597+TusharBhardwaj441@users.noreply.github.com>
208+
Tyson Cung <45380903+tysoncung@users.noreply.github.com>
204209
Uday Kakade <141299403+udaykakade25@users.noreply.github.com>
205210
Ujjwal Kirti <64329707+ujjwalkirti@users.noreply.github.com>
206211
Utkarsh <http://utkarsh11105@gmail.com>
@@ -218,6 +223,7 @@ Yaswanth Kosuru <116426380+yaswanthkosuru@users.noreply.github.com>
218223
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
219224
Yugal Kaushik <yugalkaushik14@gmail.com>
220225
Yuvi Mittal <128018763+yuvi-mittal@users.noreply.github.com>
226+
Zuhair Ahmad <157193652+Zuhair-CS@users.noreply.github.com>
221227
deepak427 <62477872+deepak427@users.noreply.github.com>
222228
devshree-bhati <147095250+devshree-bhati@users.noreply.github.com>
223229
ditsu <170345142+ditsus@users.noreply.github.com>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
},
5050
"devDependencies": {
5151
"@stdlib/assert-is-negative-zero": "^0.2.2",
52+
"@stdlib/assert-is-number": "^0.2.2",
5253
"@stdlib/assert-is-positive-zero": "^0.2.2",
5354
"@stdlib/console-log-each-map": "github:stdlib-js/console-log-each-map#main",
5455
"@stdlib/constants-float64-eps": "^0.2.2",

test/test.rational_pq.js

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert-is-number' ).isPrimitive;
25+
var rational = require( './../lib/rational_pq.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof rational, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function returns a number for x = 0', function test( t ) {
37+
var v = rational( 0.0 );
38+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
39+
t.strictEqual( v, 0.16666666666666713, 'returns expected value' );
40+
t.end();
41+
});
42+
43+
tape( 'the function evaluates a rational function for positive values less than 1', function test( t ) {
44+
var v;
45+
46+
v = rational( 0.5 );
47+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
48+
49+
v = rational( 0.1 );
50+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
51+
52+
v = rational( 0.9 );
53+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
54+
55+
t.end();
56+
});
57+
58+
tape( 'the function evaluates a rational function for positive values greater than 1', function test( t ) {
59+
var v;
60+
61+
v = rational( 1.5 );
62+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
63+
64+
v = rational( 2.0 );
65+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
66+
67+
v = rational( 10.0 );
68+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
69+
70+
t.end();
71+
});
72+
73+
tape( 'the function evaluates a rational function for negative values', function test( t ) {
74+
var v;
75+
76+
v = rational( -0.5 );
77+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
78+
79+
v = rational( -1.0 );
80+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
81+
82+
v = rational( -2.0 );
83+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
84+
85+
t.end();
86+
});

test/test.rational_rs.js

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var isNumber = require( '@stdlib/assert-is-number' ).isPrimitive;
25+
var rational = require( './../lib/rational_rs.js' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is a function', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof rational, 'function', 'main export is a function' );
33+
t.end();
34+
});
35+
36+
tape( 'the function returns a number for x = 0', function test( t ) {
37+
var v = rational( 0.0 );
38+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
39+
t.strictEqual( v, 0.08333333333333809, 'returns expected value' );
40+
t.end();
41+
});
42+
43+
tape( 'the function evaluates a rational function for positive values less than 1', function test( t ) {
44+
var v;
45+
46+
v = rational( 0.5 );
47+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
48+
49+
v = rational( 0.1 );
50+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
51+
52+
v = rational( 0.9 );
53+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
54+
55+
t.end();
56+
});
57+
58+
tape( 'the function evaluates a rational function for positive values greater than 1', function test( t ) {
59+
var v;
60+
61+
v = rational( 1.5 );
62+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
63+
64+
v = rational( 2.0 );
65+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
66+
67+
v = rational( 10.0 );
68+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
69+
70+
t.end();
71+
});
72+
73+
tape( 'the function evaluates a rational function for negative values', function test( t ) {
74+
var v;
75+
76+
v = rational( -0.5 );
77+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
78+
79+
v = rational( -1.0 );
80+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
81+
82+
v = rational( -2.0 );
83+
t.strictEqual( isNumber( v ), true, 'returns expected value' );
84+
85+
t.end();
86+
});

0 commit comments

Comments
 (0)