From 14200751483a06fb006f582f4930a746cfd05e12 Mon Sep 17 00:00:00 2001 From: Andi Date: Sun, 28 Sep 2025 16:17:42 +0100 Subject: [PATCH] in the division x and y of b are swapped --- 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 ```