UNPKG

proj4

Version:

Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.

5 lines (4 loc) 122 B
export default function (x) { var s = (x >= 0 ? 1 : -1); return s * (Math.log(Math.abs(x) + Math.sqrt(x * x + 1))); }