# Getting inverse cosine and inverse hyperbolic cosine in Julia – acos(), acosh() and acosd() Methods

The `acos()` is an inbuilt function in julia which is used to calculate inverse cosine of the specified value and output is in radians.

Syntax: acos(x)

Parameters:

• x: Specified values.

Returns: It returns the calculated inverse cosine of the specified value and output is in radians.

Example:

 `# Julia program to illustrate  ` `# the use of acos() method ` ` `  `# Getting inverse cosine of the specified ` `# values and output is in radians. ` `println(acos(``0``)) ` `println(acos(``-``0.444``)) ` `println(acos(``0.7774``)) ` `println(acos(``1``)) `

Output:

```1.5707963267948966
2.0308542405657466
0.6802746363624282
0.0```

The `acosh()` is an inbuilt function in julia which is used to calculate inverse hyperbolic cosine of the specified value.

Syntax: acosh(x)

Parameters:

• x: Specified values.

Returns: It returns the calculated inverse hyperbolic cosine of the specified value.

Example:

 `# Julia program to illustrate  ` `# the use of acosh() method ` ` `  `# Getting inverse hyperbolic cosine of the ` `# specified values. ` `println(acosh(``2``)) ` `println(acosh(``10``)) ` `println(acosh(``74``)) ` `println(acosh(``45``)) `

Output:

```1.3169578969248166
2.993222846126381
4.997166616875528
4.499686190671499```

The `acosd()` is an inbuilt function in julia which is used to calculate inverse cosine of the specified value and output is in degrees.

Syntax: acosd(x)

Parameters:

• x: Specified values.

Returns: It returns the calculated inverse cosine of the specified value and output is in degrees.

Example:

 `# Julia program to illustrate  ` `# the use of acosd() method ` ` `  `# Getting inverse cosine of the specified ` `# values and output is in degrees. ` `println(acosd(``0``)) ` `println(acosd(``-``0.444``)) ` `println(acosd(``0.7774``)) ` `println(acosd(``1``)) `

Output:

```90.0
116.35937679066326
38.976865573363945
0.0```