ES6 - Fonction Math.tan (x)

Cette fonction renvoie la tangente de x.

Syntaxe

Math.tan(x)

Paramètre

  • X - représente un nombre

Exemple

console.log("---Math.tan()---") 
console.log("Math.tan(Math.PI/4): "+Math.tan(Math.PI/4)) 
console.log("Math.tan(0): "+Math.tan(0))

Production

---Math.tan()--- 
Math.tan(Math.PI/4): 0.9999999999999999 
Math.tan(0): 0