Contribution
Joined 18 April 2020
Contribution (talk | contribs) |
Contribution (talk | contribs) No edit summary |
||
(2 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 = | 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"Successive superparticular complementary pair of {numerator}/{denominator} | 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 | ||
Line 249: | Line 249: | ||
print_mappings(ratio_log_cents, superparticular_complementary_log_cents, numerator, denominator) | print_mappings(ratio_log_cents, superparticular_complementary_log_cents, numerator, denominator) | ||
</pre> | </pre> | ||