Octave

GNU Octave

Installation

Ubuntu
apt install octave
Alma Linux
dnf install octave
Arch Linux
pacman -S octave

Examples

Fibonacci Numbers
# Fibonacci Numbers
function main ()
    n = str2num (argv () {end});
    printf("%d", fib (n));
endfunction

function r = fib (n)
    if (n < 2)
        r = n;
    else
        r = fib(n - 2) + fib(n - 1);
    endif
endfunction

#{
    example
        run:
            octave-cli -qf main.m 20
#}