Node:Functions, Next:, Previous:Declarations, Up:Top



Functions

Here is a simple example of how to define a new function:

Q1> :(Factorial :x) = if x=0 => 1 || x * (Factorial x-1)
This is the classical factorial function. Here is how to call it:
Q2> Factorial 30
265252859812191058636308480000000