| Algorithm: | c := sign(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | div(a, b, q, r) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | div(a, b, q, r) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c.split(n, a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := abs(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | d := abs(a, b, c) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | b := log2(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | sqrt(b, c, d) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | b := sqrt(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | b := root(a, n) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := pow(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := pow(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c.setbit(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c.clearbit(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := b.testbit(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.odd() | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.even() | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.length() | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.highest() | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.lowest() | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | swap(a, b) | |
|---|---|---|
| Input: | ||
| Output: | ||
| where |
| Algorithm: | a.rand(n) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := Ntoa(a, c, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := atoN(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | b := factorial(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := bin_coefficient(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := fibonacci(n) | |
|---|---|---|
| Input: | ||
| Output: | ||
| where |
| Algorithm: | c := gcd(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := lcm(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := a.isprime() | |
|---|---|---|
| Input: | ||
| Output: | ||
| Note: | Error possible:``the primality could not be determined". |
| Algorithm: | factoring(a, c) | |
|---|---|---|
| Input: | ||
| Output: | c is a container over Naturals with an output-iterator |
|
| for all |
| Algorithm: | c := euler(a) | |
|---|---|---|
| Input: | ||
| Output: | ||
| where |