Calc
1 program
Added 2026-03-17T10:00:00Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: GNU Calc, apcalc, calc
Provenance: commit 7eccddb34a · authored 2026-03-17T00:49:27+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
4 sources · pl_id:
pl/calcRelated languages
LLM-contributed programs
Fibonacci sequence
Provenance: commit 7eccddb34a · authored 2026-03-17T00:49:27+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
define fib(n) {
local a, b, t;
if (n <= 0) return 0;
if (n == 1) return 1;
a = 0; b = 1;
for (i = 2; i <= n; i++) {
t = a + b;
a = b;
b = t;
}
return b;
}
for (i = 0; i <= 20; i++) {
print fib(i);
}
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.)