mirror of
https://github.com/apple/swift-numerics
synced 2026-11-26 04:57:53 +00:00
Fixup indentation.
This commit is contained in:
1 parent
d34f5636c4
commit
b9e8b970f2
2 files changed
+23
-23
No files matched your search
@@ -420,9 +420,9 @@ extension Complex: ElementaryFunctions {
|
||||
|
||||
@inlinable
|
||||
public static func pow(_ z: Complex, _ n: Int) -> Complex {
|
||||
if z.isZero {
|
||||
return n < 0 ? .infinity : n == 0 ? .one : .zero
|
||||
}
|
||||
if z.isZero {
|
||||
return n < 0 ? .infinity : n == 0 ? .one : .zero
|
||||
}
|
||||
// TODO: this implementation is not quite correct, because n may be
|
||||
// rounded in conversion to RealType. This only effects very extreme
|
||||
// cases, so we'll leave it alone for now.
|
||||
|
||||
Reference in new issue
Block a user