8000 Cancelling fractions · Issue #4 · kangwonlee/calcul_mental · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cancelling fractions #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 5 tasks
kangwonlee opened this issue Jul 30, 2019 · 1 comment
Closed
2 of 5 tasks

Cancelling fractions #4

kangwonlee opened this issue Jul 30, 2019 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@kangwonlee
Copy link
Owner
kangwonlee commented Jul 30, 2019

Action Plan

  • Generate three integers
    x0, x1, x2, ∈ {x | x ∈ N, 1 < x < 10 }
    x0 < x1 < x2
  • Pick one of {x0, x1, x2} = xa
    The others are xb < xc
  • Numerator = xb / xa
    Denominator = xc / xa
  • Use fractions module

Question

  • What if xb and xc have a common factor? fractions.gcd(a, b) [ref]
  • Number of possible combinations < desirable?
  • Possible to present numerators and denominators as products of prime numbers?
  • How to present fractions on terminals with using default modules only? Or is it better to use sympy?
  • How to accept an answer? num / den? fractions.Fractions(str) [ref]
@kangwonlee kangwonlee added enhancement New feature or request question Further information is requested labels Jul 30, 2019
@kangwonlee
Copy link
Owner Author
  • 554b6ee resolves this issue for now
  • Unanswered questions to be separate issues later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant
0