php.js
Version:
Use phpjs functions as required.
11 lines (9 loc) • 387 B
JavaScript
module.exports=function(){ return asin.apply(exports,arguments) };
function asin(arg) {
// discuss at: http://phpjs.org/functions/asin/
// original by: Onno Marsman
// note: Sorry about the crippled test. Needed because precision differs accross platforms.
// example 1: (asin(0.3) + '').substr(0, 17);
// returns 1: "0.304692654015397"
return Math.asin(arg);
}