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/yacas
LLM (this repo) · 1PldbRosettacode

Related languages

LiE (0.48)JACAL (0.42)YASM (0.25)Yab (0.25)Yash (0.25)

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
code.ys · added: 2026-02-07T11:14:43Z
// 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.)

Contribute — propose a file extension

Tell us where to find evidence about Yacas (mapped to pl/yacas). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Yacas/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← YABFD Yacc →