ES6 - Fonction Math.acos (x)

Cette fonction renvoie le cosinus inverse de x.

Syntaxe

Math.acos(x)

Paramètre

  • X - représente un nombre

Exemple

console.log("---Math.acos()---") 
console.log("Math.acos(0): "+Math.acos(0)) 
console.log("Math.acos(Math.SQRT1_2): "+Math.acos(Math.SQRT1_2))

Production

---Math.acos()--- 
Math.acos(0): 1.5707963267948966 
Math.acos(Math.SQRT1_2): 0.7853981633974483