Yacas
1 program
Added 2026-02-07T11:14:43Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Yet Another Computer Algebra System
Provenance: commit 2c80fdb4c3 · authored 2026-02-07T12:15:27+01:00 · agent claude-code · model sonnet
Sources mentioning this language
3 sources · pl_id:
pl/yacasRelated languages
LLM-contributed programs
Factorial Computation with Recursion
Provenance: commit 2c80fdb4c3 · authored 2026-02-07T12:15:27+01:00 · agent claude-code · model sonnet · WebSearch disabled
// Factorial function in Yacas
Factorial(n) := If(n <= 1, 1, n * Factorial(n-1));
// Test the factorial function
Echo("Factorial of 5 is: ", Factorial(5));
Echo("Factorial of 10 is: ", Factorial(10));
// Another example: compute factorials from 1 to 7
ForEach(i, 1 .. 7) [
Echo(i, "! = ", Factorial(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.)