Hyperbolic area tangent implementation. \param arg function argument \return function value stored in single-preicision
| 1556 | /// \param arg function argument |
| 1557 | /// \return function value stored in single-preicision |
| 1558 | static expr atanh(float arg) |
| 1559 | { |
| 1560 | #if HALF_ENABLE_CPP11_CMATH |
| 1561 | return expr(std::atanh(arg)); |
| 1562 | #else |
| 1563 | return expr(static_cast<float>(0.5*std::log((1.0+arg)/(1.0-arg)))); |
| 1564 | #endif |
| 1565 | } |
| 1566 | |
| 1567 | /// Error function implementation. |
| 1568 | /// \param arg function argument |