From 83ea74625df710338a38ac75f3c4ece21b572b26 Mon Sep 17 00:00:00 2001 From: Sergio Mauricio Vanegas Arias Date: Tue, 8 Jul 2025 10:45:53 +0300 Subject: [PATCH] Typo in rational division implementation. --- content/english/hpc/arithmetic/float.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/english/hpc/arithmetic/float.md b/content/english/hpc/arithmetic/float.md index dcc33039..20e18fe9 100644 --- a/content/english/hpc/arithmetic/float.md +++ b/content/english/hpc/arithmetic/float.md @@ -38,7 +38,7 @@ struct r { r operator+(r a, r b) { return {a.x * b.y + a.y * b.x, a.y * b.y}; } r operator*(r a, r b) { return {a.x * b.x, a.y * b.y}; } -r operator/(r a, r b) { return {a.x * b.x, a.y * b.y}; } +r operator/(r a, r b) { return {a.x * b.y, a.y * b.x}; } bool operator<(r a, r b) { return a.x * b.y < b.x * a.y; } // ...and so on, you get the idea ```