UNPKG
php.js
Version:
latest (0.1.1)
0.1.1
0.1.0
Use phpjs functions as required.
php.js
/
acosh.js
10 lines
(8 loc)
•
300 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.
exports
=
function
(
){
return
acosh.
apply
(
exports
,
arguments
) };
function
acosh
(
arg
) {
// discuss at: http://phpjs.org/functions/acosh/
// original by: Onno Marsman
// example 1: acosh(8723321.4);
// returns 1: 16.674657798418625
return
Math
.
log
(arg +
Math
.
sqrt
(arg * arg -
1
)); }