2017-01-24 23:37:28 +01:00

5 lines
110 B
JavaScript

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