Extension (Structure)swift-numerics 1.0.3all tags
Double (ext)
You’re viewing third-party extensions to Double
, a struct from the Swift standard library.
You can also read the documentation forDouble
itself.
extension Double
You’re viewing third-party extensions to Double
, a struct from the Swift standard library.
You can also read the documentation forDouble
itself.
extension Double
@frozen struct Double
A double-precision, floating-point value type.
import RealModule
protocol AlgebraicField : SignedNumeric
A type modeling an algebraic field. Refines the SignedNumeric
protocol, adding division.
protocol ElementaryFunctions : AdditiveArithmetic
A type that has elementary functions available.
protocol Real : AlgebraicField, RealFunctions, FloatingPoint
A type that models the real numbers.
protocol RealFunctions : ElementaryFunctions
static func _mulAdd(_ a: Double, _ b: Double, _ c: Double) -> Double
static func acos(_ x: Double) -> Double
static func acosh(_ x: Double) -> Double
static func asin(_ x: Double) -> Double
static func asinh(_ x: Double) -> Double
static func atan(_ x: Double) -> Double
static func atan2(y: Double, x: Double) -> Double
static func atanh(_ x: Double) -> Double
static func cos(_ x: Double) -> Double
static func cosh(_ x: Double) -> Double
static func erf(_ x: Double) -> Double
static func erfc(_ x: Double) -> Double
static func exp(_ x: Double) -> Double
static func exp2(_ x: Double) -> Double
static func expMinusOne(_ x: Double) -> Double
static func gamma(_ x: Double) -> Double
static func hypot(_ x: Double, _ y: Double) -> Double
static func log(_ x: Double) -> Double
static func log(onePlus x: Double) -> Double
static func log10(_ x: Double) -> Double
static func log2(_ x: Double) -> Double
static func logGamma(_ x: Double) -> Double
static func pow(_ x: Double, _ y: Double) -> Double
static func pow(_ x: Double, _ n: Int) -> Double
static func root(_ x: Double, _ n: Int) -> Double
static func sin(_ x: Double) -> Double
static func sinh(_ x: Double) -> Double
static func tan(_ x: Double) -> Double
static func tanh(_ x: Double) -> Double
static func _mulAdd(_ a: Self, _ b: Self, _ c: Self) -> Self
static func cosMinusOne(_ x: Self) -> Self
cos(x) - 1, computed in such a way as to maintain accuracy for small x.
static func exp10(_ x: Self) -> Self
static func signGamma(_ x: Self) -> FloatingPointSign
static func sqrt(_ x: Self) -> Self
var reciprocal: Self? { get }
The (approximate) reciprocal (multiplicative inverse) of this number, if it is representable.
static func / (a: Self, b: Self) -> Self