How to use the erf function from mathjs

Find comprehensive JavaScript mathjs.erf code examples handpicked from public code repositorys.

36
37
38
39
40
41
42
43
44
45
  return R[n][n];
}

exports.erfc = function(x){
  // Complementary Error Function
  return 1 - math.erf(x);
};

exports.igamc = function(a, x){
  // Complemented Incomplete Gamma Function
fork icon0
star icon10
watch icon1

196
197
198
199
200
201
202
203
204
205
}
let atanh = function(x){
  return Mathjs.atanh(x);
}
let erf = function(x){
  return Mathjs.erf(x);
}

let functions = [atan, square, minus, cube, erf, sin, cos, sigmoidSuck, gausSuck, gausMoarSuck];
return functions
fork icon0
star icon1
watch icon1

+ 7 other calls in file

-2
-1

export default cdfNormal
fork icon2
star icon0
watch icon0