joergen7 / cuneiform-examples

Collection of small, self-contained Cuneiform code examples.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cuneiform-examples

Collection of small, self-contained Cuneiform code examples.

Ackermann function

Program computing the Ackermann-Péter function defined as

         | n+1             if m = 0
A(m,n) = | A(m-1,1)        if m > 0 and n = 0
         | A(m-1,A(m,n-1)) if m > 0 and n > 0

FizzBuzz

Prints the integers from 1 to 100 inclusive. But for multiples of 3 it prints Fizz, for multiples of 5 it prints Buzz and for multiples of both 3 and 5 it prints FizzBuzz.

This program is available with foreign functions in Matlab, Octave and Python.

About

Collection of small, self-contained Cuneiform code examples.

License:Apache License 2.0