tethys-feature-service/node_modules/proj4/lib/common/tanh.js

5 lines
98 B
JavaScript
Raw Normal View History

2023-10-02 13:04:02 +00:00
export default function(x) {
var r = Math.exp(x);
r = (r - 1 / r) / (r + 1 / r);
return r;
}