| Algorithm: | c := abs(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := sign(a) | |
|---|---|---|
| Input: | ||
| Output: | ||
| else if |
||
| else |
| Algorithm: | b := inv(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := pow(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := pow(a, b) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := ceil(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := floor(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := round(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | c := trunc(a) | |
|---|---|---|
| Input: | ||
| Output: |
| Algorithm: | swap(a, b) | |
|---|---|---|
| Input: | ||
| Output: | ||
| where |
| Algorithm: | a.rand(n) | |
|---|---|---|
| Input: | ||
| Output: |