Extension (Structure)swift-numerics 1.0.3all tags
Float16 (ext)
You’re viewing third-party extensions to Float16
, a struct from the Swift standard library.
You can also read the documentation forFloat16
itself.
extension Float16
You’re viewing third-party extensions to Float16
, a struct from the Swift standard library.
You can also read the documentation forFloat16
itself.
extension Float16
@frozen struct Float16
A half-precision (16b), 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 acos(_ x: Float16) -> Float16
static func acosh(_ x: Float16) -> Float16
static func asin(_ x: Float16) -> Float16
static func asinh(_ x: Float16) -> Float16
static func atan(_ x: Float16) -> Float16
static func atan2(y: Float16, x: Float16) -> Float16
static func atanh(_ x: Float16) -> Float16
static func cos(_ x: Float16) -> Float16
static func cosh(_ x: Float16) -> Float16
static func erf(_ x: Float16) -> Float16
static func erfc(_ x: Float16) -> Float16
static func exp(_ x: Float16) -> Float16
static func exp10(_ x: Float16) -> Float16
static func exp2(_ x: Float16) -> Float16
static func expMinusOne(_ x: Float16) -> Float16
static func gamma(_ x: Float16) -> Float16
static func hypot(_ x: Float16, _ y: Float16) -> Float16
static func log(_ x: Float16) -> Float16
static func log(onePlus x: Float16) -> Float16
static func log10(_ x: Float16) -> Float16
static func log2(_ x: Float16) -> Float16
static func logGamma(_ x: Float16) -> Float16
static func pow(_ x: Float16, _ y: Float16) -> Float16
static func pow(_ x: Float16, _ n: Int) -> Float16
static func root(_ x: Float16, _ n: Int) -> Float16
static func sin(_ x: Float16) -> Float16
static func sinh(_ x: Float16) -> Float16
static func tan(_ x: Float16) -> Float16
static func tanh(_ x: Float16) -> Float16
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