From 60f0cc9bcc9e7a7b8b17a7d3fedd06d688914308 Mon Sep 17 00:00:00 2001 From: Sascha Mann Date: Thu, 29 Oct 2020 00:24:09 +0100 Subject: [PATCH] rational-numbers: Remove redundant factor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If `b₁ = 0`, then `r₁` is not a rational number anyway. From https://github.com/exercism/problem-specifications/pull/1655/files#r421573667 --- exercises/rational-numbers/description.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/rational-numbers/description.md b/exercises/rational-numbers/description.md index 621f8a123b..55ebaeb4bc 100644 --- a/exercises/rational-numbers/description.md +++ b/exercises/rational-numbers/description.md @@ -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)`.