GAP

Implementation of programming language GAP

GAP (Groups, Algorithms, Programming) — computer algebra system that includes GAP language interpreter.

GAP kernel is written in C.

GAP 4 loading banner
GAP 4 loading banner

Examples:

Hello, World!:

Example for versions GAP 4.4.12

To run as a script use gap -q < filename.gap

Print("Hello, Wolrd!\n");

Factorial:

Example for versions GAP 4.4.12

This example uses standard Factorial function.

for n in [0..16] do
    Print(n, "! = ", Factorial(n), "\n");
od;