Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix one optional internet doctest in oeis.py #39422

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/sage/databases/oeis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1809,11 +1809,9 @@ def programs(self, language='all', preparsing=True, keep_comments=False):

EXAMPLES::

sage: ee = oeis('A001113') ; ee # optional -- internet
A001113: Decimal expansion of e.

sage: ee = oeis.find_by_id('A00260') # optional -- internet
sage: ee.programs('pari')[0] # optional -- internet
0: default(realprecision, 50080); x=exp(1); for (n=1, 50000, d=floor(x); x=(x-d)*10; write("b001113.txt", n, " ", d)); \\ _Harry J. Smith_, Apr 15 2009
0: {a(n) = binomial(...)};...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The chosen form is a bit misleading as the binomial is divided by a polynomial.
Alternatives like binomial(... or binomial(...) / (....)};... are not very clear either.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certes. Le but est de rendre le test très robuste envers les modifications frequentes dans OEIS. Nul n'est besoin de verifier le resultat exact. Si ca ne tenait qu'a moi, je mettrais #random devant tous les tests de ce fichier.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En effet, les changements fréquents sont pénibles.


sage: G = oeis.find_by_id('A27642') # optional -- internet
sage: G.programs('all') # optional -- internet
Expand Down
Loading