mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

implement inverse erf function

Open krishnasaga opened this issue 5 years ago • 3 comments

Thanks for the implementation of erf function here #678 . because of this I'm able to write gaussian distribution function as follows (1 - erf((m - x ) / (Math.sqrt(2) * sd))) / 2

It is good to have an inverse erf function so something like this image quantile function of gaussian distribution can be implemented.

krishnasaga avatar Oct 28 '20 12:10 krishnasaga

👍 anyone interested in implementing the inverse erf function? Help would be welcome.

josdejong avatar Oct 28 '20 12:10 josdejong

I like the approach of implementing "nontrivial mathematics functions" which is used in this library:

  • https://github.com/paulmasson/math/blob/master/src/functions/gamma.js#L262

axkr avatar Oct 28 '20 15:10 axkr

Thanks for the implementation of erf function here #678 . because of this I'm able to write gaussian distribution function as follows (1 - erf((m - x ) / (Math.sqrt(2) * sd))) / 2

Can you tell me how did you implement the import in your module?

ashish1497 avatar Sep 04 '21 12:09 ashish1497