5 lines
113 B
JavaScript

var HALF_PI = Math.PI/2;
module.exports = function(x, L) {
return 2 * Math.atan(x * Math.exp(L)) - HALF_PI;
};