Skip to content

Commit

Permalink
dad
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterLuschny committed Nov 29, 2024
1 parent 5366b6d commit 057b956
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 2 additions & 3 deletions src/Abel.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def abel(n: int) -> list[int]:


if __name__ == "__main__":
"""https://peterluschny.github.io/table/AbelTraits.html"""

from _tablutils import PreView

PreView(Abel)
Expand Down Expand Up @@ -107,7 +109,4 @@ def abel(n: int) -> list[int]:
| 56 | B065513 | Rev-TransNat0 | Number of endofunctions of [n] with a cycle a->b->c->a and for all x i |
| 57 | B100536 | Inv:Rev-PolyRow3 | a(n) = 3*n^2 - 2 |
| 58 | B366151 | Alt-PolyRow3 | a(n) = T(n, 3), where T(n, k) = Sum_{i=0..n} i^k * binomial(n, i) * (1 |
With much better navigation and the missing sequences:
https://luschny.de/math/oeis/Abel.html
'''
8 changes: 4 additions & 4 deletions src/Tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ def AnumberDict(
return tdict


header = '<html><head><title>Traits</title><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> window.MathJax = {loader: {load: ["[tex]/bbox"]}, tex: {packages: {"[+]": ["bbox"]}}}</script></head><body width="40%"><iframe name="OEISframe" frameborder="0" scrolling="yes" width="58%" height="2200" align="left" title="Sequences"'
header = '<!DOCTYPE html lang="en"><head><title>Traits</title><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> window.MathJax = {loader: {load: ["[tex]/bbox"]}, tex: {packages: {"[+]": ["bbox"] } } }</script></head><body width="40%"><iframe name="OEISframe" scrolling="yes" width="58%" height="2200" align="left" title="Sequences"'


def DictToHtml(
Expand All @@ -1492,8 +1492,8 @@ def DictToHtml(
SRC = f"https://oeis.org/{T.sim[0]}"
TID = (T.id).capitalize()
SH = f'src={SRC}></iframe><p><span style="white-space: pre"> {TID}</span><br>'
hitpath = GetRoot(f"data/{T.id}Traits.html")
mispath = GetRoot(f"data/{T.id}Missing.html")
hitpath = GetRoot(f"docs/{T.id}Traits.html")
mispath = GetRoot(f"docs/{T.id}Missing.html")
head = header.replace("Traits", T.id)
TeX = r"\(\bbox[yellow, 5px]{\color{DarkGreen} T_{n, k} \ = \ TTEX } \)"
TEX = TeX.replace("TTEX", T.tex)
Expand Down Expand Up @@ -1561,7 +1561,7 @@ def RefreshDatabase() -> None:
"""Use with caution."""
warn()
global GlobalDict
indexpath = GetRoot(f"data/index.html")
indexpath = GetRoot(f"docs/index.html")
with open(indexpath, "w+", encoding="utf-8") as index:
index.write(indheader)
for T in TablesList:
Expand Down
8 changes: 4 additions & 4 deletions src/_tabltraits.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def AnumberDict(
return tdict


header = '<html><head><title>Traits</title><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> window.MathJax = {loader: {load: ["[tex]/bbox"]}, tex: {packages: {"[+]": ["bbox"]}}}</script></head><body width="40%"><iframe name="OEISframe" frameborder="0" scrolling="yes" width="58%" height="2200" align="left" title="Sequences"'
header = '<!DOCTYPE html lang="en"><head><title>Traits</title><meta charset="utf-8"><meta name="viewport" content="width=device-width"><script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> window.MathJax = {loader: {load: ["[tex]/bbox"]}, tex: {packages: {"[+]": ["bbox"] } } }</script></head><body width="40%"><iframe name="OEISframe" scrolling="yes" width="58%" height="2200" align="left" title="Sequences"'

def DictToHtml(
T: Table,
Expand All @@ -777,8 +777,8 @@ def DictToHtml(
SRC = f'https://oeis.org/{T.sim[0]}'
TID = (T.id).capitalize()
SH = f'src={SRC}></iframe><p><span style="white-space: pre"> {TID}</span><br>'
hitpath = GetRoot(f"data/{T.id}Traits.html")
mispath = GetRoot(f"data/{T.id}Missing.html")
hitpath = GetRoot(f"docs/{T.id}Traits.html")
mispath = GetRoot(f"docs/{T.id}Missing.html")
head = header.replace("Traits", T.id)
TeX = r"\(\bbox[yellow, 5px]{\color{DarkGreen} T_{n, k} \ = \ TTEX } \)"
TEX = TeX.replace("TTEX", T.tex)
Expand Down Expand Up @@ -840,7 +840,7 @@ def RefreshDatabase() -> None:

global GlobalDict

indexpath = GetRoot(f"data/index.html")
indexpath = GetRoot(f"docs/index.html")
with open(indexpath, "w+", encoding="utf-8") as index:
index.write(indheader)

Expand Down

0 comments on commit 057b956

Please sign in to comment.