What is Swift Numerics
Swift Numerics is a Swift package with a range of thin-grain modules. These modules are collected under two broad categories. First, modules that are too specialized to be included in the standard library, but are too generic to be found in a common package. The second category includes modules that are "under active development for future possible inclusion in the standard library."
Currently, Swift Numerics has two most requested modules: Real And Complex . Real module, SE-0246 provides recommended basic math functions . This offer was accepted, but due to some limitations in the compiler, it is not possible to add new functions directly to the standard library. Real provides basic mathematical functions in a separate module, so that developers can start using them immediately in their projects.
Complex The module mentions the type of complex number on the underlying actual type. Includes normal arithmetic operators for complex numbers. Equatable complies with the usual protocols such as Hashable, Codable and Numeric. Support for complex numbers can be particularly useful when working with Fourier conversions and signal processing algorithms.
Modules included in Swift Numerics have minimal dependencies. For example, existing modules can only be used to use swift and c standard libraries and compiler-rt requires runtime support provided by . In addition, the Swift Numerics package is open source under the same license and contribution rules as the Swift project (Apache License 2.0).