Contribution (talk | contribs)
Contribution (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 189: Line 189:
<pre>
<pre>
# Enter the values for the X ratio of EDX. Ensure the numerator and denominator differ by 1 or 2.
# Enter the values for the X ratio of EDX. Ensure the numerator and denominator differ by 1 or 2.
numerator, denominator = 7, 6
numerator, denominator = 3, 2


# Program
# Program
Line 236: Line 236:
(pair_1, pair_2) = calculate_complementary_pair(numerator, denominator)
(pair_1, pair_2) = calculate_complementary_pair(numerator, denominator)


print(f"Superparticular complementary pair of {numerator}/{denominator} are: {pair_1[0]}/{pair_1[1]} and {pair_2[0]}/{pair_2[1]}")
print(f"Successive superparticular complementary pair of {numerator}/{denominator}: {pair_1[0]}/{pair_1[1]} and {pair_2[0]}/{pair_2[1]}")


# Calculate ratios
# Calculate ratios