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