Next: Arithmetical Operations
Up: Rational (rational.h)
Previous: Rational (rational.h)
- Constructors
| Algorithm: |
|
c := Rational(a) |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := Rational(a, b) |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := Rational(a) |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := Rational(a) |
| Input: |
|
. |
| Output: |
|
such that  |
- Selectors
| Algorithm: |
|
c := a.numerator() |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := numerator(a) |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := a.denominator() |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := denominator(a) |
| Input: |
|
. |
| Output: |
|
such that  |
- Assignments
| Algorithm: |
|
c := c = a |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := c = a |
| Input: |
|
. |
| Output: |
|
such that  |
| Algorithm: |
|
c := b = a |
| Input: |
|
. |
| Output: |
|
such that  |
Next: Arithmetical Operations
Up: Rational (rational.h)
Previous: Rational (rational.h)
Piologie Version 1.2
3/3/1998