Sage
1 program
Added 2026-03-10T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: SageMath, SAGE
Provenance: commit 38aa1b2211 · authored 2026-03-10T18:01:44+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
8 sources · pl_id:
pl/sageWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: object-oriented · procedural (imperative) · functional · structured · reflective |
|---|---|
| Typing | duck, dynamic, strong; optional type annotations |
| Designed by | Python Software Foundation · Guido van Rossum |
| First appeared | 1991 |
| Influenced by | ABC · Ada · ALGOL 68 · APL · C · C++ · CLU · Dylan · Haskell · Icon · Lisp · Modula-3 · Perl · Standard ML |
| License | Python Software Foundation License |
| Homepage | https://www.python.org/ |
Extensions claimed by this language
15 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.py | pygments | primary | 708.7M files |
.sage | linguist | primary | 75.2K files |
.buck | pygments | secondary | 219 files |
.build | pygments | secondary | 1.5M files |
.bzl | pygments | secondary | 611.6K files |
.jy | pygments | secondary | 6.0K files |
.pyi | pygments | secondary | 1.9M files |
.pyw | pygments | secondary | 153.4K files |
.sage | pygments | secondary | 75.2K files |
.sagews | linguist | secondary | 3.8K files |
.sc | pygments | secondary | 704.0K files |
.sconscript | pygments | secondary | 2.0K files |
.sconstruct | pygments | secondary | 282 files |
.tac | pygments | secondary | 68.7K files |
.workspace | pygments | secondary | 107.1K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Prime Factorization and Symbolic Computation
Provenance: commit 38aa1b2211 · authored 2026-03-10T18:01:44+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
# Prime factorization and symbolic computation in SageMath
n = 123456789
print('Factorization of', n, ':', factor(n))
# List primes up to 50
print('Primes up to 50:', list(primes(50)))
# Symbolic computation: find roots of a polynomial
x = var('x')
f = x^3 - 3*x + 2
print('Roots of x^3 - 3x + 2:', f.roots())
# Numerical integration
result = numerical_integral(sin(x), 0, pi)
print('Integral of sin(x) from 0 to pi:', result[0])