From d91884bb27f1451771d9e13f7b0098463d56014f Mon Sep 17 00:00:00 2001 From: Stephen Canon Date: Fri, 8 Aug 2025 17:17:28 -0400 Subject: [PATCH] Merge pull request #315 from stephentyrone/algebraic-field-magnitude Constrain AlgebraicField to required Magnitude:AlgebraicField --- Sources/RealModule/AlgebraicField.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RealModule/AlgebraicField.swift b/Sources/RealModule/AlgebraicField.swift index 4c8070d..230187b 100644 --- a/Sources/RealModule/AlgebraicField.swift +++ b/Sources/RealModule/AlgebraicField.swift @@ -40,7 +40,7 @@ /// See also `Real`, `SignedNumeric`, `Numeric` and `AdditiveArithmetic`. /// /// [field]: https://en.wikipedia.org/wiki/Field_(mathematics) -public protocol AlgebraicField: SignedNumeric { +public protocol AlgebraicField: SignedNumeric where Magnitude: AlgebraicField { /// Replaces a with the (approximate) quotient `a/b`. static func /=(a: inout Self, b: Self)