You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[`f51b7b2`](https://github.com/stdlib-js/stdlib/commit/f51b7b2ea5c3cceca335f3089fba079d4290bde7) - **test:** update tests to match valid domain of acovercos _(by Karan Anand)_
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,18 +80,18 @@ Returns an [iterator][mdn-iterator-protocol] which iteratively computes the [inv
80
80
```javascript
81
81
var array2iterator =require( '@stdlib/array-to-iterator' );
82
82
83
-
var x = [ 0.0, -3.141592653589793/2.0, -3.141592653589793/6.0 ];
83
+
var x = [ 0.0, 3.141592653589793/2.0, 3.141592653589793/6.0 ];
84
84
var it =iterAcovercos( array2iterator( x ) );
85
85
// returns <Object>
86
86
87
87
var r =it.next().value;
88
-
// returns ~1.5708
88
+
// returns ~-1.5708
89
89
90
90
r =it.next().value;
91
-
// returns ~-0.6075
91
+
// returns ~0.6075
92
92
93
93
r =it.next().value;
94
-
// returns ~0.4966
94
+
// returns ~-0.4966
95
95
96
96
// ...
97
97
```
@@ -111,7 +111,7 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the
111
111
112
112
## Notes
113
113
114
-
- The domain of inverse coversed cosine is restricted to `[-2,0]`. If an iterated value is outside of the domain, the returned [iterator][mdn-iterator-protocol] returns `NaN`.
114
+
- The domain of inverse coversed cosine is restricted to `[0,2]`. If an iterated value is outside of the domain, the returned [iterator][mdn-iterator-protocol] returns `NaN`.
115
115
- If an iterated value is non-numeric (including `NaN`), the returned [iterator][mdn-iterator-protocol] returns `NaN`. If non-numeric iterated values are possible, you are advised to provide an [`iterator`][mdn-iterator-protocol] which type checks and handles non-numeric values accordingly.
116
116
- If an environment supports `Symbol.iterator`**and** a provided [iterator][mdn-iterator-protocol] is iterable, the returned [iterator][mdn-iterator-protocol] is iterable.
117
117
@@ -132,7 +132,7 @@ var uniform = require( '@stdlib/random-iter-uniform' );
132
132
var iterAcovercos =require( '@stdlib/math-iter-special-acovercos' );
133
133
134
134
// Create a seeded iterator for generating pseudorandom numbers:
Copy file name to clipboardExpand all lines: docs/types/index.d.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ type Iterator = Iter | IterableIterator;
30
30
*
31
31
* ## Notes
32
32
*
33
-
* - The domain of inverse coversed cosine is restricted to `[-2,0]`. If an iterated value is outside of the domain, the returned iterator returns `NaN`.
33
+
* - The domain of inverse coversed cosine is restricted to `[0,2]`. If an iterated value is outside of the domain, the returned iterator returns `NaN`.
34
34
* - If an environment supports `Symbol.iterator` **and** a provided iterator is iterable, the returned iterator is iterable.
35
35
*
36
36
* @param iterator - input iterator
@@ -39,7 +39,7 @@ type Iterator = Iter | IterableIterator;
39
39
* @example
40
40
* var uniform = require( '@stdlib/random-iter-uniform' );
41
41
*
42
-
* var iter = iterAcovercos( uniform( -2.0, 0.0 ) );
42
+
* var iter = iterAcovercos( uniform( 0.0, 2.0 ) );
Copy file name to clipboardExpand all lines: lib/main.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ var acovercos = require( '@stdlib/math-base-special-acovercos' );
31
31
*
32
32
* ## Notes
33
33
*
34
-
* - The domain of inverse coversed cosine is restricted to `[-2,0]`. If an iterated value is outside of the domain, the returned iterator returns `NaN`.
34
+
* - The domain of inverse coversed cosine is restricted to `[0,2]`. If an iterated value is outside of the domain, the returned iterator returns `NaN`.
35
35
* - If an environment supports `Symbol.iterator` **and** a provided iterator is iterable, the returned iterator is iterable.
36
36
*
37
37
* @param {Iterator} iterator - input iterator
@@ -41,7 +41,7 @@ var acovercos = require( '@stdlib/math-base-special-acovercos' );
41
41
* @example
42
42
* var uniform = require( '@stdlib/random-iter-uniform' );
43
43
*
44
-
* var iter = iterAcovercos( uniform( -2.0, 0.0 ) );
44
+
* var iter = iterAcovercos( uniform( 0.0, 2.0 ) );
0 commit comments