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
-[`3dd8cb3`](https://github.com/stdlib-js/stdlib/commit/3dd8cb379ea22c4a92d610d146cdd662d3187e27) - **chore:** minor clean-up _(by Philipp Burckhardt)_
463
464
-[`f51b7b2`](https://github.com/stdlib-js/stdlib/commit/f51b7b2ea5c3cceca335f3089fba079d4290bde7) - **test:** update tests to match valid domain of acovercos _(by Karan Anand)_
464
465
-[`e525deb`](https://github.com/stdlib-js/stdlib/commit/e525debf09ec10ada9ec72ea4674ee9fd8e049cb) - **fix:** use correct inverse coversed cosine formula _(by Karan Anand)_
Copy file name to clipboardExpand all lines: iter/special/acovercos/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
@@ -47,18 +47,18 @@ Returns an [iterator][mdn-iterator-protocol] which iteratively computes the [inv
47
47
```javascript
48
48
var array2iterator =require( '@stdlib/array/to-iterator' );
49
49
50
-
var x = [ 0.0, -3.141592653589793/2.0, -3.141592653589793/6.0 ];
50
+
var x = [ 0.0, 3.141592653589793/2.0, 3.141592653589793/6.0 ];
51
51
var it =iterAcovercos( array2iterator( x ) );
52
52
// returns <Object>
53
53
54
54
var r =it.next().value;
55
-
// returns ~1.5708
55
+
// returns ~-1.5708
56
56
57
57
r =it.next().value;
58
-
// returns ~-0.6075
58
+
// returns ~0.6075
59
59
60
60
r =it.next().value;
61
-
// returns ~0.4966
61
+
// returns ~-0.4966
62
62
63
63
// ...
64
64
```
@@ -78,7 +78,7 @@ The returned [iterator][mdn-iterator-protocol] protocol-compliant object has the
78
78
79
79
## Notes
80
80
81
-
- 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`.
81
+
- 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`.
82
82
- 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.
83
83
- If an environment supports `Symbol.iterator`**and** a provided [iterator][mdn-iterator-protocol] is iterable, the returned [iterator][mdn-iterator-protocol] is iterable.
84
84
@@ -99,7 +99,7 @@ var uniform = require( '@stdlib/random/iter/uniform' );
99
99
var iterAcovercos =require( '@stdlib/math/iter/special/acovercos' );
100
100
101
101
// Create a seeded iterator for generating pseudorandom numbers:
Copy file name to clipboardExpand all lines: iter/special/acovercos/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: iter/special/acovercos/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( './../../../../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( './../../../../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