5 lines
98 B
JavaScript
5 lines
98 B
JavaScript
export default function(x) {
|
|
var r = Math.exp(x);
|
|
r = (r - 1 / r) / (r + 1 / r);
|
|
return r;
|
|
} |