Merge pull request #318 from stephentyrone/constrain-algebraic-field-1.1

[1.1] Constrain algebraic field to Magnitude: AlgebraicField
This commit is contained in:
Stephen Canon authored and GitHub committed 2025-08-09 12:48:26 -04:00
commit 1a19d0d28d
1 file changed
+1 -1
+1 -1
View File
@@ -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)