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

4 lines
120 B
JavaScript
Raw Permalink Normal View History

2023-10-02 13:04:02 +00:00
export default function(x) {
var s = (x >= 0 ? 1 : -1);
return s * (Math.log(Math.abs(x) + Math.sqrt(x * x + 1)));
}