Skip to content

Commit 949c533

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents ac7d5b4 + 8e7f070 commit 949c533

File tree

24 files changed

+77
-77
lines changed

24 files changed

+77
-77
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ double stdlib_base_acovercos( const double x );
166166
#include <stdio.h>
167167
168168
int main( void ) {
169-
const double x[] = { 0.0, 0.27, 0.56, 0.78, 1.67, 1.67, 1.78, 1.80, 1.89, 2.0 };
169+
const double x[] = { 0.0, 0.27, 0.56, 0.78, 1.67, 1.70, 1.78, 1.80, 1.89, 2.0 };
170170
171171
double v;
172172
int i;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <stdio.h>
2121

2222
int main( void ) {
23-
const double x[] = { 0.0, 0.27, 0.56, 0.78, 1.67, 1.67, 1.78, 1.80, 1.89, 2.0 };
23+
const double x[] = { 0.0, 0.27, 0.56, 0.78, 1.67, 1.70, 1.78, 1.80, 1.89, 2.0 };
2424

2525
double v;
2626
int i;

lib/node_modules/@stdlib/math/base/special/acovercos/test/fixtures/julia/runner.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ dir = dirname( file );
6565
x = range( 0.0, stop = 2.0, length = 2003 );
6666
gen( x, "data.json" );
6767

68-
# Generate fixture data for small negative values:
68+
# Generate fixture data for small positive values:
6969
x = range( 1e-208, stop = 1e-200, length = 2003 );
7070
gen( x, "small_positive.json" );

lib/node_modules/@stdlib/math/base/special/acovercos/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ tape( 'the function computes the inverse coversed cosine', function test( t ) {
6666
t.end();
6767
});
6868

69-
tape( 'the function computes the inverse coversed cosine (small negative numbers)', function test( t ) {
69+
tape( 'the function computes the inverse coversed cosine (small positive numbers)', function test( t ) {
7070
var expected;
7171
var delta;
7272
var tol;

lib/node_modules/@stdlib/math/base/special/acovercos/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tape( 'the function computes the inverse coversed cosine', opts, function test(
7575
t.end();
7676
});
7777

78-
tape( 'the function computes the inverse coversed cosine (small negative numbers)', opts, function test( t ) {
78+
tape( 'the function computes the inverse coversed cosine (small positive numbers)', opts, function test( t ) {
7979
var expected;
8080
var delta;
8181
var tol;

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ limitations under the License.
2626

2727
The [inverse coversed cosine][inverse-coversed-cosine] is defined as
2828

29-
<!-- <equation class="equation" label="eq:arccovercosine" align="center" raw="\operatorname{acovercos}(\theta) = \arcsin(1+\theta)" alt="Inverse coversed cosine."> -->
29+
<!-- <equation class="equation" label="eq:arccovercosine" align="center" raw="\operatorname{acovercos}(\theta) = \arcsin(\theta-1)" alt="Inverse coversed cosine."> -->
3030

3131
```math
32-
\mathop{\mathrm{acovercos}}(\theta) = \arcsin(1+\theta)
32+
\mathop{\mathrm{acovercos}}(\theta) = \arcsin(\theta-1)
3333
```
3434

3535
<!-- </equation> -->
@@ -52,22 +52,22 @@ Computes the [inverse coversed cosine][inverse-coversed-cosine] of a single-prec
5252

5353
```javascript
5454
var v = acovercosf( 0.0 );
55-
// returns ~1.5708
55+
// returns ~-1.5708
5656

57-
v = acovercosf( -3.141592653589793 / 2.0 );
58-
// returns ~-0.6075
57+
v = acovercosf( 3.141592653589793 / 2.0 );
58+
// returns ~0.6075
5959

60-
v = acovercosf( -3.141592653589793 / 6.0 );
61-
// returns ~0.4966
60+
v = acovercosf( 3.141592653589793 / 6.0 );
61+
// returns ~-0.4966
6262
```
6363

64-
If `x < -2`, `x > 0`, or `x` is `NaN`, the function returns `NaN`.
64+
If `x < 0`, `x > 2`, or `x` is `NaN`, the function returns `NaN`.
6565

6666
```javascript
67-
var v = acovercosf( 1.0 );
67+
var v = acovercosf( -1.0 );
6868
// returns NaN
6969

70-
v = acovercosf( -3.14 );
70+
v = acovercosf( 3.14 );
7171
// returns NaN
7272

7373
v = acovercosf( NaN );
@@ -89,7 +89,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
8989
var logEachMap = require( '@stdlib/console/log-each-map' );
9090
var acovercosf = require( '@stdlib/math/base/special/acovercosf' );
9191

92-
var x = uniform( 100, -2.0, 0.0, {
92+
var x = uniform( 100, 0.0, 2.0, {
9393
'dtype': 'float32'
9494
});
9595

@@ -131,8 +131,8 @@ logEachMap( 'acovercosf(%0.4f) = %0.4f', x, acovercosf );
131131
Computes the [inverse coversed cosine][inverse-coversed-cosine] of a single-precision floating-point number.
132132

133133
```c
134-
float out = stdlib_base_acovercosf( -3.141592653589793f / 2.0f );
135-
// returns ~-0.6075f
134+
float out = stdlib_base_acovercosf( 3.141592653589793f / 2.0f );
135+
// returns ~0.6075f
136136
```
137137

138138
The function accepts the following arguments:
@@ -166,7 +166,7 @@ float stdlib_base_acovercosf( const float x );
166166
#include <stdio.h>
167167
168168
int main( void ) {
169-
const float x[] = { -2.0f, -1.80f, -1.78f, -1.67f, -0.56f, -0.27f, -1.67f, -0.78f, -1.89f, 0.0f };
169+
const float x[] = { 0.0f, 0.27f, 0.56f, 0.78f, 1.67f, 1.70f, 1.78f, 1.80f, 1.89f, 2.0f };
170170
171171
float v;
172172
int i;

lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37-
x = uniform( 100, -2.0, 0.0, {
37+
x = uniform( 100, 0.0, 2.0, {
3838
'dtype': 'float32'
3939
});
4040

lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var i;
4545

46-
x = uniform( 100, -2.0, 0.0, {
46+
x = uniform( 100, 0.0, 2.0, {
4747
'dtype': 'float32'
4848
});
4949

lib/node_modules/@stdlib/math/base/special/acovercosf/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static double benchmark( void ) {
9797
int i;
9898

9999
for ( i = 0; i < 100; i++ ) {
100-
x[ i ] = -2.0f * rand_float();
100+
x[ i ] = 2.0f * rand_float();
101101
}
102102

103103
t = tic();

lib/node_modules/@stdlib/math/base/special/acovercosf/docs/repl.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Computes the inverse coversed cosine of a single-precision floating-
44
point number (in radians).
55

6-
The inverse coversed cosine is defined as `asin(1+x)`.
6+
The inverse coversed cosine is defined as `asin(x-1)`.
77

8-
If `x < -2`, `x > 0`, or `x` is `NaN`, the function returns `NaN`.
8+
If `x < 0`, `x > 2`, or `x` is `NaN`, the function returns `NaN`.
99

1010
Parameters
1111
----------
@@ -19,10 +19,10 @@
1919

2020
Examples
2121
--------
22-
> var y = {{alias}}( -1.5 )
23-
~-0.5236
22+
> var y = {{alias}}( 1.5 )
23+
~0.5236
2424
> y = {{alias}}( -0.0 )
25-
~1.5708
25+
~-1.5708
2626

2727
See Also
2828
--------

0 commit comments

Comments
 (0)