Magma
1 program
Added 2026-02-05T22:22:28Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 78097b496e · authored 2026-02-05T23:23:10+01:00 · agent claude-code · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/magmaExtensions claimed by this language
1 claim. 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 |
|---|---|---|---|
.magma | wikidata | primary | 1.1K files |
Related languages
LLM-contributed programs
Fibonacci Matrix Exponentiation
Provenance: commit 78097b496e · authored 2026-02-05T23:23:10+01:00 · agent claude-code · model sonnet · WebSearch disabled
// Compute Fibonacci numbers using matrix exponentiation
// This demonstrates Magma's matrix operations
function FibonacciMatrix(n)
if n eq 0 then
return 0;
elif n eq 1 then
return 1;
end if;
M := MatrixRing(IntegerRing(), 2);
F := M![1, 1, 1, 0];
result := F^(n-1);
return result[1,1];
end function;
// Compute first 15 Fibonacci numbers
printf "First 15 Fibonacci numbers:\n";
for i := 0 to 14 do
printf "%o ", FibonacciMatrix(i);
end for;
printf "\n";
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.)