Stephen Canon
a7d826ead0
Merge pull request #352 from stephentyrone/fix-cosh-sinh-signs
...
Fix signs of cosh and sinh near the overflow boundary.
2026-09-10 10:53:41 -04:00
Stephen Canon
c2d05532d3
Fix signs of cosh and sinh near the overflow boundary.
...
Resovles https://github.com/apple/swift-numerics/issues/347
2026-09-10 10:27:51 -04:00
Stephen Canon
3b272b08af
a word.
2026-09-10 10:09:49 -04:00
Stephen Canon
bb7b69501f
Relax documented behavior of Complex.reciprocal
...
In cases of underflow, multiplication by reciprocal may not be the same as division. Document this, rather than tightening the behavior, because it's still about as good as multiplication by reciprocal would be for a Real type.
2026-09-10 10:07:01 -04:00
Stephen Canon
899af71c02
Merge pull request #328 from stephentyrone/complex-divide-docs
...
Added some notes on complex division.
2026-01-28 20:58:00 -05:00
Eric Bariaux
894008997c
Ensure compatibility with Swift versions below 6
2025-09-25 12:41:14 +02:00
Eric Bariaux
d46e20b4c5
String(reflecting:) not available in Embedded mode.
...
And Real does not conform to CustomDebugStringConvertible, so can't access debugDescription property directly on x and y
2025-09-18 07:21:15 +02:00
Eric Bariaux
6a7cf593bf
Codable not available right-now in Embedded mode
2025-09-18 07:20:19 +02:00
Stephen Canon
cbdb286797
Added some notes on complex division.
2025-08-20 19:18:41 -04:00
Stephen Canon
2c19b7b8cd
Last few review notes on complex.
2025-08-12 15:13:07 -04:00
Stephen Canon
221387985a
Further review edits from Nate.
2025-08-12 15:04:11 -04:00
Stephen Canon
8b2fd7bbde
Provide transliteration of Чебышёв.
2025-08-12 14:52:42 -04:00
Stephen Canon
61a8b91b3e
Some formatting cleanup around code blocks.
2025-08-12 13:20:29 -04:00
Stephen Canon
9c548804c8
Massage docc files to make the Documentation check happier
2025-08-11 18:11:44 -04:00
Stephen Canon
af0352e8b1
Some additional organization for Complex docc.
2025-08-09 14:29:05 -04:00
Stephen Canon
5b34639450
Further documentation work for Complex.
2025-08-08 09:55:59 -04:00
Stephen Canon
450691764d
typo.
2025-08-08 09:55:56 -04:00
Stephen Canon
95e9441f8c
Changes from review feedback.
2025-08-08 09:55:54 -04:00
Stephen Canon
d2f6811b87
More docc changes.
2025-08-08 09:55:47 -04:00
Stephen Canon
129e496ef1
Further docc work.
2025-08-08 09:55:46 -04:00
Stephen Canon
5d8425644a
Initial work on docc setup.
2025-08-08 09:55:42 -04:00
Stephen Canon
da661919b9
Fixup some file headers that had the Swift.org text instead of Swift Numerics
...
These are a copy-pasto from introduced when I originally imported approximate equality (which was originally proposed for the standard library).
2024-07-01 12:46:42 -04:00
Stephen Canon
262cbea1f2
review feedback.
2024-05-16 22:12:24 -04:00
Stephen Canon and Guillaume Lessard
84c41a0bef
Update Sources/ComplexModule/Complex+AlgebraicField.swift
...
Co-authored-by: Guillaume Lessard <glessard@tffenterprises.com >
2024-05-16 19:46:17 -04:00
Stephen Canon
3d6de9f3ef
Reworked complex divide scaling.
2024-05-16 15:44:11 -04:00
Stephen Canon
3fa18ae9b5
Test improvements
...
Improved how tolerance is applied close to infinity for complex division
(this still could use a more principled approach, but at least we're in
the right ballpark now). Tightened up the tolerance for semi-exhaustive
testing too, since that can be done now.
2024-05-16 08:39:12 -04:00
Stephen Canon
1ba2178227
Further progress on complex division
2024-05-14 17:22:50 -04:00
Steve Canon
97bab250eb
WIP
2024-05-14 10:24:31 -04:00
Stephen Canon
f6b0aeb607
Remove _mulAdd in favor of Relaxed.multiplyAdd.
2023-04-26 08:56:43 -04:00
Steve (Numerics) Canon
30c01a9fc5
Possible spelling: Relaxed.sum/product.
2023-04-26 08:56:43 -04:00
Stephen Canon
e601f16e20
Mark Complex Sendable when the underlying RealType is.
2022-09-30 14:07:49 -04:00
Stephen Canon
60a3edbaa9
Further improvement to Complex.pow(_:Self,_:Self) edge cases.
...
Bring pow(zero, w) in line with the behavior of pow for the underlying real type.
2022-09-17 14:56:29 -04:00
Stephen Canon
b9e8b970f2
Fixup indentation.
2022-09-15 15:39:34 -04:00
Stephen Canon
d34f5636c4
Fix the edge-case handling of Complex.pow(.zero, <int>)
2022-09-15 15:07:06 -04:00
Stephen Canon
48003e8b7a
Fixup banner comment on Scale.swift.
2022-04-07 10:18:54 -04:00
Stephen Canon
027bcc5b8e
Remove conformance of Complex to Differentiable
...
The conformance was breaking CI testing, because the CI bots use a macOS version that predates availability of the _Differentiation module, and the compiler-generated differentation operations have neither availability attributes nor checks, so any reference to those operations simply crashes in dyld because the library is not present. We can add availability, but that's not really accurate either, because these operations are not actually binary-stable, so while we wouldn't crash in dyld, we also might not work correctly in the future. We could mark them unavailable on Apple platforms, but that's also not quite right (and further means that they're not going to get a lot of attention). The best solution seems to be to remove the conformance (which was never source-stable).
2022-04-06 14:41:04 -04:00
Stephen Canon
270972dd8a
Minor documentation formatting cleanup.
2022-04-06 11:50:25 -04:00
Stephen Canon
27f8192a63
Attempt to work around CI misconfiguration by removing Complex Differentiable conformance.
2022-04-06 09:58:40 -04:00
Stephen Canon
c4f8886a11
Move baseline supported tools version to 5.4.
2022-03-05 10:18:13 -05:00
Stephen Canon
445b0da15d
Update complex cmake for refactoring.
2021-12-16 13:38:20 -05:00
Stephen Canon
d329698498
remove F16/F80 stubs for complex elfns.
2021-12-11 14:57:36 -05:00
Stephen Canon
ba65b0fc77
Refactor Complex module for finer granularity.
2021-12-11 11:19:29 -05:00
Markus Winter
63df367680
Fix a typo in the comments of sinh expression
2021-10-13 11:47:45 +02:00
ਰਾਹੁਲ ਭੇਲੇ
c3806f23ff
Removed number lines for easy clipboard copying.
2021-09-25 15:11:26 +05:30
Stephen Canon
32c2b64370
Merge pull request #186 from apple/complex-readme
...
Update README.md
2021-08-20 09:29:44 -04:00
Stephen Canon
3d6bff6cae
Update README.md
2021-08-20 09:18:28 -04:00
Stephen Canon and Xiaodi Wu
05440473eb
Update Sources/ComplexModule/Arithmetic.swift
...
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com >
2021-08-20 09:06:10 -04:00
Stephen Canon
ecc77886a1
Update Sources/ComplexModule/Arithmetic.swift
2021-08-19 21:20:58 -04:00
Stephen Canon
10e75aa392
Further expand documentation of reciprocal with some example use.
2021-08-19 20:47:36 -04:00
Stephen Canon
702c6fc1d8
Document the Augmented enum in RealModule in advance of 1.0
2021-08-19 14:00:52 -04:00