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

10 lines
188 B
JavaScript
Raw Permalink Normal View History

2023-10-02 13:04:02 +00:00
import hypot from './hypot';
import log1py from './log1py';
export default function(x) {
var y = Math.abs(x);
y = log1py(y * (1 + y / (hypot(1, y) + 1)));
return x < 0 ? -y : y;
}