Stephen Canon
5bf2f828ef
Initial pass at implementing pow(Self,Int) with desired semantics.
...
We don't need to do anything special for Float80, but Float and Double require some handholding because Int values are not always representable.
2019-11-29 22:56:14 -05:00
Ole Begemann
0ed7e786b5
Remove broken link in Real module readme
...
The link target for `[Real]` wasn't defined. I decided toremove the link altogether because the readme would essentially link to itself.
2019-11-12 17:28:36 +01:00
Stephen Canon and Xiaodi Wu
5d783ce458
Update Sources/Real/ScalarConformances.swift
...
Co-Authored-By: Xiaodi Wu <xiaodi.wu@gmail.com >
2019-11-10 22:19:39 -05:00
Stephen Canon and Xiaodi Wu
3fbc22cbe3
Update Sources/Real/ScalarConformances.swift
...
Co-Authored-By: Xiaodi Wu <xiaodi.wu@gmail.com >
2019-11-10 22:19:30 -05:00
Stephen Canon
e24586e2b1
Defer to libm cbrt for root(x,3).
...
This lets us get exact cases right only platforms where cbrt(x) has sub-ulp accuracy. It doesn't get all the other non-power-of-two roots quite right, and is still dependent on the host system, but 2 and 3 are the most common roots people take by far, so it's a good first step.
2019-11-10 22:02:53 -05:00
Stephen Canon
6d904ea56c
Add documentation for AdditiveArithmetic conformance of ElementaryFunctions
2019-11-10 21:12:37 -05:00
NevinBR
6195693e3a
Made ElementaryFunctions refine AdditiveArithmetic
2019-11-10 19:58:07 -05:00
NevinBR
ab19494638
Fixed typo in a comment
2019-11-10 10:35:22 -05:00
Sajjon
0cc4950453
Adding MARK in long source file
2019-11-08 08:39:27 +01:00
Sajjon
c423f9592b
Fix typos in source code
2019-11-08 08:39:07 +01:00
Stephen Canon
37253aa0b6
Update Real module README to bring it in line with the Swift Numerics blog post.
2019-11-06 12:58:09 -05:00
Stephen Canon
f59e64a1aa
Rename ElementaryFunctions module -> Real
...
No change to the protocols involved, purely a change so that the module that users import shares the name of the feature they are most likely to be using, rather than a somewhat-esoteric implementation detail.
2019-11-06 12:40:12 -05:00