Skip to content

Commit cbd0262

Browse files
committed
docs: add errata section for 'Figurate Numbers (2012)' to README
1 parent 8317afb commit cbd0262

File tree

3 files changed

+111
-5
lines changed

3 files changed

+111
-5
lines changed

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
given-names: "Edgar Armando"
66
orcid: "https://orcid.org/0000-0002-9672-9087"
77
title: "Figurate Numbers for Python"
8-
version: 0.8.0
8+
version: 1.0.0
99
doi:
1010
date-released: 2024-07-08
1111
url: "https://github.com/edelveart/figuratenum"

README.md

Lines changed: 108 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
![PyPI - Wheel](https://img.shields.io/pypi/wheel/figuratenum)
66
![PyPI - Status](https://img.shields.io/pypi/status/figuratenum)
77

8-
9-
FigurateNum is a set of 235 **figurate number generators** based on the book [Figurate Numbers (2012)](https://books.google.com.pe/books/about/Figurate_Numbers.html?id=cDxYdstLPz4C&redir_esc=y) by Michel Deza and Elena Deza.
8+
**FigurateNum** is a collection of **233 figurate number generators** based on the book
9+
> [Figurate Numbers](https://books.google.com.pe/books/about/Figurate_Numbers.html?id=cDxYdstLPz4C&redir_esc=y) by Michel Deza and Elena Deza, published in 2012.
1010
1111
FigurateNum generates the following types of **infinite sequences**:
1212

@@ -320,6 +320,112 @@ array('d', [1.0, 19.0, 70.0, 170.0, 335.0])
320320
67. `generalized_k_dimensional_centered_hypercube_numbers(k, start_num = 0)`
321321
68. `generalized_nexus_numbers(start_num = 0)`
322322

323+
## Errata for *Figurate Numbers (2012)*
324+
325+
This section lists the errata and corrections for the book *Figurate Numbers (2012)* by Michel Deza and Elena Deza. If you find any errors in the content, please feel free to contribute corrections.
326+
327+
- Chapter 1, formula in the table on page 6 says:
328+
329+
| Name | Formula | |
330+
| ------ | ------------------- | --- |
331+
| Square | `1/2 (n^2 - 0 * n)` | |
332+
333+
334+
It should be:
335+
| Name | Formula | |
336+
| ------ | -------------------- | --- |
337+
| Square | `1/2 (2n^2 - 0 * n)` | |
338+
339+
- Chapter 1, formula in the table on page 51 says:
340+
341+
| Name | Formula | |
342+
| -------------------- | --------------------- | --------------------- |
343+
| Cent. icosihexagonal | `1/3n^2 - 13 * n + 1` | `546, 728, 936, 1170` |
344+
345+
346+
It should be:
347+
| Name | Formula | |
348+
| -------------------- | --------------------- | --------------------- |
349+
| Cent. icosihexagonal | `1/3n^2 - 13 * n + 1` | `547, 729, 937, 1171` |
350+
351+
- Chapter 1, formula in the table on page 51 says:
352+
353+
| Name | Formula | |
354+
| --------------------- | ------- | ----- |
355+
| Cent. icosiheptagonal | | `972` |
356+
357+
358+
It should be:
359+
| Name | Formula | |
360+
| --------------------- | ------- | ----- |
361+
| Cent. icosiheptagonal | | `973` |
362+
363+
- Chapter 1, formula in the table on page 51 says:
364+
365+
| Name | Formula | |
366+
| -------------------- | ------- | ---- |
367+
| Cent. icosioctagonal | | `84` |
368+
369+
370+
It should be:
371+
| Name | Formula | |
372+
| -------------------- | ------- | ---- |
373+
| Cent. icosioctagonal | | `85` |
374+
375+
- Chapter 1, page 65 (polite numbers) says:
376+
> `inpolite numbers`
377+
378+
It should read:
379+
380+
> `impolite numbers`
381+
382+
- Chapter 1, formula (truncated centered pentagonal numbers) on page 72 says:
383+
> `TCSS_5(n) = (35n^2 - 55n) / 2 + 3`
384+
385+
It should be:
386+
> `TCSS_5(n) = (35n^2 - 55n) / 2 + 11`
387+
388+
- Chapter 2, formula of octagonal pyramidal number on page 92 says:
389+
> `n(n+1)(6n-1) / 6`
390+
391+
It should be:
392+
> `n(n+1)(6n-3) / 6`
393+
394+
- Chapter 2, page 140 says:
395+
> centered square pyramidal numbers are 1, 6, 19, 44, 85, 111, 146, 231, ...
396+
397+
This sequence must exclude the number 111:
398+
399+
> centered square pyramidal numbers are 1, 6, 19, 44, 85, ~~111~~, 146, 231, ...
400+
401+
- Chapter 2, page 155 (generalized centered tetrahedron numbers) says:
402+
> `S_3^3(n) = ((2n - 1)(n^2 + n + 3)) / 3`
403+
404+
Formula must have a negative sign:
405+
406+
> `S_3^3(n) = ((2n - 1)(n^2 - n + 3)) / 3`
407+
408+
- Chapter 2, page 156 (generalized centered square pyramid numbers) says:
409+
> `S_4^3(n) = ((2n - 1) * (n^2 - n + 2)^2) / 3`
410+
411+
Formula must write:
412+
413+
> `S_4^3(n) = ((2n - 1) * (n^2 - n + 2)) / 2`
414+
415+
- Chapter 3, page 188 (hyperoctahedral numbers) says:
416+
> `hexadecahoron numbers`
417+
418+
It should read:
419+
420+
> `hexadecachoron numbers`
421+
422+
- Chapter 3, page 190 (hypericosahedral numbers) says:
423+
> `hexacisihoron numbers`
424+
425+
It should read:
426+
427+
> `hexacosichoron numbers`
428+
323429
## Contributing
324430

325431
FigurateNumber is currently under development, and we warmly invite your contributions. Just **fork** the project and then submit a **pull request**:

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "figuratenum"
77
version = "0.8.0"
8-
description = "Generates infinite sequences of figurate numbers for Python."
8+
description = "Generate 233 infinite figurate number sequences for mathematical research, applications, and exploration in Python."
99
readme = "README.md"
1010
authors = [{ name = "Edgar Armando Delgado Vega" }]
1111
license = { file = "LICENSE" }
@@ -14,7 +14,7 @@ requires-python = ">=3.9"
1414
classifiers = [
1515
"Programming Language :: Python :: 3",
1616
"Programming Language :: Python :: 2",
17-
"Development Status :: 3 - Alpha",
17+
"Development Status :: 5 - Production/Stable",
1818
"Topic :: Scientific/Engineering :: Mathematics",
1919
"Topic :: Software Development :: Libraries :: Python Modules",
2020
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)