Search code examples
swiftmathfoundationbuilt-in

Is there an Inverse Error Function available in Swift's Foundation import?


I'm using the erf function in Swift, like this:

import Foundation
erf(2)

Is there an inverse error function as well?


Solution

  • We do not have such function in standard library. But here is an implementation of this function-

    https://github.com/antelopeusersgroup/antelope_contrib/blob/master/lib/location/libgenloc/erfinv.c

    HTH.