JavaScript Math Methods in Geogebra

Author:
JP MathPR
//exp(1) alert("e="+Math.E); //ln(2) alert("ln(2)="+Math.LN2); //ln(10) alert("ln(10)="+Math.LN10); //log_2(e) alert("log_2(e)="+Math.LOG2E); //log_10(e) alert("log_10(e)="+Math.LOG10E); //pi alert("pi="+Math.PI); //sqrt(1/2) alert("sqrt(1/2)="+Math.SQRT1_2); //sqrt(2) alert("sqrt(2)="+Math.SQRT2); ///////////////////////////////////// //abs alert("abs(-4.7)="+Math.abs(-4.7)); //acos alert("acos(0.5)="+Math.acos(0.5)); //asin alert("asin(0.5)="+Math.asin(0.5)); //atan alert("atan(2)="+Math.atan(2)); //atan2 alert("atan2(8,4)="+Math.atan2(8,4)); //cbrt alert("cbrt(125)="+Math.cbrt(125)); //ceil alert("ceil(4.4)="+Math.ceil(4.4)); alert("ceil(-5.1)="+Math.ceil(-5.1)); //cos alert("cos(0 deg)="+Math.cos(0 * Math.PI / 180)); alert("cos(3 rad)="+Math.cos(3)); //cosh alert("cosh(3)="+Math.cosh(3)); //exp alert("exp(1)="+Math.exp(1)); //floor alert("floor(4.7)="+Math.floor(4.7)); alert("floor(-5.9)="+Math.floor(-5.9)); //log alert("log(2)="+Math.log(2)); //max alert("max="+Math.max(0, 150, 30, 20, -8, -200)); //min alert("min="+Math.min(0, 150, 30, 20, -8, -200)); //pow alert("pow(8,2)="+Math.pow(8,2)); //random alert("random="+Math.random()); //round alert("round(4.7)="+Math.round(4.7)); alert("round(4.4)="+Math.round(4.4)); //sin alert("sin(90 deg)="+Math.sin(90 * Math.PI / 180)); alert("sin(3 rad)="+Math.sin(3)); //sinh alert("sinh(3)="+Math.sinh(3)); //sqrt alert("sqrt(64)="+Math.sqrt(64)); alert("sqrt(-9)="+Math.sqrt(-9)); //tan alert("tan(1)="+Math.tan(1)); //tanh alert("tanh(1)="+Math.tanh(1)); //trunc alert("trunc(8.76)="+Math.trunc(8.76)); //expm1 alert("expm1(0)="+Math.expm1(0)); //hypot alert("hypot(3,4)="+Math.hypot(3,4)); //imul alert("imul(3,4)="+Math.imul(3,4)); //log1p alert("log1p(5)="+Math.log1p(5)); //log10 alert("log10(5)="+Math.log10(5));