@stdlib/math-iter-sequences-squared-triangular 0.0.3 → 0.0.7
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/NOTICE +1 -1
- package/README.md +43 -7
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# iterSquaredTriangularSeq
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> Create an iterator which generates a sequence of [squared triangular numbers][oeis-a000537].
|
|
26
26
|
|
|
@@ -33,7 +33,7 @@ The [squared triangular numbers][squared-triangular-number] are the integer sequ
|
|
|
33
33
|
<!-- <equation class="equation" label="eq:squared_triangular_numbers_sequence" align="center" raw="0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, \ldots" alt="Triangular number sequence"> -->
|
|
34
34
|
|
|
35
35
|
<div class="equation" align="center" data-raw-text="0, 1, 9, 36, 100, 225, 441, 784, 1296, 2025, 3025, 4356, \ldots" data-equation="eq:squared_triangular_numbers_sequence">
|
|
36
|
-
<img src="https://cdn.
|
|
36
|
+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@ffa1a1acab2d2c9973d3ad22a5dfc25afd86767a/lib/node_modules/@stdlib/math/iter/sequences/squared-triangular/docs/img/equation_squared_triangular_numbers_sequence.svg" alt="Triangular number sequence">
|
|
37
37
|
<br>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
@@ -46,7 +46,7 @@ starting at the 0th [squared triangular number][squared-triangular-number].
|
|
|
46
46
|
<!-- <equation class="equation" label="eq:triangular_numbers" align="center" raw="T_n = \sum_{i=1}^{n} i = 1 + 2 + 3 + \ldots + n = \frac{n(n+1)}{2} = \binom{n+1}{2}" alt="Triangular number formulas"> -->
|
|
47
47
|
|
|
48
48
|
<div class="equation" align="center" data-raw-text="T_n = \sum_{i=1}^{n} i = 1 + 2 + 3 + \ldots + n = \frac{n(n+1)}{2} = \binom{n+1}{2}" data-equation="eq:triangular_numbers">
|
|
49
|
-
<img src="https://cdn.
|
|
49
|
+
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@ffa1a1acab2d2c9973d3ad22a5dfc25afd86767a/lib/node_modules/@stdlib/math/iter/sequences/squared-triangular/docs/img/equation_triangular_numbers.svg" alt="Triangular number formulas">
|
|
50
50
|
<br>
|
|
51
51
|
</div>
|
|
52
52
|
|
|
@@ -190,6 +190,20 @@ while ( true ) {
|
|
|
190
190
|
|
|
191
191
|
<!-- /.references -->
|
|
192
192
|
|
|
193
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
194
|
+
|
|
195
|
+
<section class="related">
|
|
196
|
+
|
|
197
|
+
* * *
|
|
198
|
+
|
|
199
|
+
## See Also
|
|
200
|
+
|
|
201
|
+
- <span class="package-name">[`@stdlib/math/iter/sequences/triangular`][@stdlib/math/iter/sequences/triangular]</span><span class="delimiter">: </span><span class="description">create an iterator which generates a sequence of triangular numbers.</span>
|
|
202
|
+
|
|
203
|
+
</section>
|
|
204
|
+
|
|
205
|
+
<!-- /.related -->
|
|
206
|
+
|
|
193
207
|
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
194
208
|
|
|
195
209
|
|
|
@@ -203,6 +217,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
203
217
|
|
|
204
218
|
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].
|
|
205
219
|
|
|
220
|
+
#### Community
|
|
221
|
+
|
|
222
|
+
[![Chat][chat-image]][chat-url]
|
|
223
|
+
|
|
206
224
|
---
|
|
207
225
|
|
|
208
226
|
## License
|
|
@@ -212,7 +230,7 @@ See [LICENSE][stdlib-license].
|
|
|
212
230
|
|
|
213
231
|
## Copyright
|
|
214
232
|
|
|
215
|
-
Copyright © 2016-
|
|
233
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
216
234
|
|
|
217
235
|
</section>
|
|
218
236
|
|
|
@@ -231,9 +249,23 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
231
249
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/math-iter-sequences-squared-triangular/main.svg
|
|
232
250
|
[coverage-url]: https://codecov.io/github/stdlib-js/math-iter-sequences-squared-triangular?branch=main
|
|
233
251
|
|
|
234
|
-
|
|
252
|
+
<!--
|
|
253
|
+
|
|
254
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/math-iter-sequences-squared-triangular.svg
|
|
235
255
|
[dependencies-url]: https://david-dm.org/stdlib-js/math-iter-sequences-squared-triangular/main
|
|
236
256
|
|
|
257
|
+
-->
|
|
258
|
+
|
|
259
|
+
[umd]: https://github.com/umdjs/umd
|
|
260
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
261
|
+
|
|
262
|
+
[deno-url]: https://github.com/stdlib-js/math-iter-sequences-squared-triangular/tree/deno
|
|
263
|
+
[umd-url]: https://github.com/stdlib-js/math-iter-sequences-squared-triangular/tree/umd
|
|
264
|
+
[esm-url]: https://github.com/stdlib-js/math-iter-sequences-squared-triangular/tree/esm
|
|
265
|
+
|
|
266
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
267
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
268
|
+
|
|
237
269
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
238
270
|
|
|
239
271
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
@@ -244,9 +276,13 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
244
276
|
|
|
245
277
|
[squared-triangular-number]: https://en.wikipedia.org/wiki/Squared_triangular_number
|
|
246
278
|
|
|
247
|
-
[@stdlib/math/
|
|
279
|
+
[@stdlib/math/base/special/binomcoef]: https://www.npmjs.com/package/@stdlib/math-base-special-binomcoef
|
|
280
|
+
|
|
281
|
+
<!-- <related-links> -->
|
|
282
|
+
|
|
283
|
+
[@stdlib/math/iter/sequences/triangular]: https://www.npmjs.com/package/@stdlib/math-iter-sequences-triangular
|
|
248
284
|
|
|
249
|
-
|
|
285
|
+
<!-- </related-links> -->
|
|
250
286
|
|
|
251
287
|
</section>
|
|
252
288
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/math-iter-sequences-squared-triangular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Create an iterator which generates a sequence of squared triangular numbers.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"examples": "make examples",
|
|
29
29
|
"benchmark": "make benchmark"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://stdlib.io",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git://github.com/stdlib-js/math-iter-sequences-squared-triangular.git"
|