tanh(): Hyperbolic tangent

<?Php
echo tanh(0); // Output is 0
echo "<br>";
echo tanh(1); // Output  0.76159415595576
echo "<br>";
echo tanh(-1); // Output -0.76159415595576
echo "<br>";
echo tanh(4.2); // Output is 0.99955036645953
echo "<br>";
echo tanh(2); // Output is 0.96402758007582
echo "<br>";
echo tanh(90); // Output is 1
?>
Syntax
float tanh(float $x);
$x is the input value.

Plotting of SIN & SIN curves by using PHP GD function with deg2rad()


Math Functions TAN() SIN() COS() rad2deg() function
Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer