Skip to content

Commit

Permalink
rational-numbers: Remove redundant factor (#1727)
Browse files Browse the repository at this point in the history
If `b₁ = 0`, then `r₁` is not a rational number anyway.

From https://github.com/exercism/problem-specifications/pull/1655/files#r421573667
  • Loading branch information
SaschaMann authored Oct 29, 2020
1 parent a2c75d2 commit 4d57825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/rational-numbers/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The difference of two rational numbers `r₁ = a₁/b₁` and `r₂ = a₂/b₂`

The product (multiplication) of two rational numbers `r₁ = a₁/b₁` and `r₂ = a₂/b₂` is `r₁ * r₂ = (a₁ * a₂) / (b₁ * b₂)`.

Dividing a rational number `r₁ = a₁/b₁` by another `r₂ = a₂/b₂` is `r₁ / r₂ = (a₁ * b₂) / (a₂ * b₁)` if `a₂ * b₁` is not zero.
Dividing a rational number `r₁ = a₁/b₁` by another `r₂ = a₂/b₂` is `r₁ / r₂ = (a₁ * b₂) / (a₂ * b₁)` if `a₂` is not zero.

Exponentiation of a rational number `r = a/b` to a non-negative integer power `n` is `r^n = (a^n)/(b^n)`.

Expand Down

0 comments on commit 4d57825

Please sign in to comment.