The acosh()
function returns the inverse hyperbolic cosine of a number.
We can see the mathematical representation of the acosh()
function below.
Note:
std.math
is required for this function.
acosh(number) //number can be real, float, or double.
This function requires a number as a parameter. The value of the parameter should be greater than or equal to 1.
acosh()
returns the inverse hyperbolic cosine of a number that is sent as a parameter.
The following code shows how to use the acosh()
function in D.
import core.stdc.stdio;import std.stdio;//header required for functionimport std.math;int main() {//positive numberwriteln("The value of acosh(1.5) :", acosh(1.5));// 1writeln("The value of acosh(1.0) :", acosh(1.0));//less than 1writeln("The value of acosh(0.0): ",acosh(0.0) );writeln("The value of acosh(-1.5): ",acosh(-1.5) );return 0;}
std.math
header required for acosh()
function.acosh()
.acosh()
.acosh()
.