Next:
Lists in Prolog
Up:
prolog
Previous:
Example Program
Arithmetic Examples
The result of adding 1 to a number
The function signum(x) which is x-1 if x
0, and 0 otherwise.
The maximum of two numbers
The maximum of three numbers
The absolute value of a number