Introduction - If you have any usage issues, please Google them yourself
1 topic
Achieved using sequential storage structure defined abstract data types NUM.
Rational abstract data types are defined as follows:
ADT NUM {
Data object: D = {<a1, a2> | a1, a2 ∈ integer}
Data relationship: R = {<a1, a2> | a1 is a rational number of molecules, a2 is the denominator of the rational numbers, and a2 is not equal to 0}
Basic operations:
IniteIpt ()
Initial conditions: Input 2 to 4 digits.
Result: Generate two rational numbers.
plus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first plus second.
reduce (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns the result of rational first subtracting the second.
multiplus (first, second)
Initial conditions: rational first and second rational existence.
Result: Returns rational first multiplied second result.
divide (first, second)
Initial conditions: rational first and sec