Javascript Math tanh()

Introduction

The Math.tanh() function returns the hyperbolic tangent of a number.

Math.tanh(x) // x is a number.
let a = Math.tanh(0);      
console.log(a);//  w  w  w. j  a  v a  2  s .c  o m
a = Math.tanh(Infinity); 
console.log(a);
a = Math.tanh(1);      
console.log(a);



PreviousNext

Related