Skip to content
#

generic-programming

Here are 143 public repositories matching this topic...

stephentyrone
stephentyrone commented Nov 2, 2020

IEEE 754 recommends (but does not require) a compound function, which is in the process of being standardized for C and C++; we should expose it in swift-numerics. The simplest, most literal translation of the operation into Swift would be:

extension RealFunctions {
  /// (1+x)ⁿ
  /// 
  /// Returns NaN if x < -1.
  static func compound(_ x: Self, _ n: Int) -> Self {
    // not

Improve this page

Add a description, image, and links to the generic-programming topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the generic-programming topic, visit your repo's landing page and select "manage topics."

Learn more