Example 1 — Basic atanh() usage
This example calls atanh() with zero and a few values between -1 and 1.
<?php
echo atanh(0) . PHP_EOL;
echo round(atanh(0.5), 4) . PHP_EOL;
echo round(atanh(-0.5), 4) . PHP_EOL;
echo round(atanh(0.9), 4) . PHP_EOL; How It Works
- atanh(0) is 0 because tanh(0) is 0.
- atanh(0.5) is about 0.5493.
- atanh(-0.5) is the negative of that, -0.5493.
- atanh(0.9) is 1.4722, and the result grows fast as the input gets closer to 1.

