tethys-feature-service/node_modules/proj4/lib/common/asinhy.js
2023-10-02 15:04:02 +02:00

10 lines
188 B
JavaScript

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;
}