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