CS 1073 Introductory Programming
for Scientific Applications
Rationals and Complex Numbers
A
Rational
class:
This represents rational numbers, that is, fractions.
Rational class
.
long Rational class
A
Complex
class:
This class handles complex numbers, that is, numbers with a real and an imaginary part.
Complex class
.