Getting inverse tangent and inverse hyperbolic tangent in Julia – atan(), atanh() and atand() Methods

• Last Updated : 26 Mar, 2020

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

Syntax: atan(x)

Parameters:

• x: Specified values.

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

Example:

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

Output:

0.0
-0.41785313434757676
0.6608077411382699
0.7853981633974483

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

Syntax: atanh(x)

Parameters:

• x: Specified values.

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

Example:

 # Julia program to illustrate # the use of atanh() method  # Getting inverse hyperbolic tangent of the# specified values.println(atanh(0))println(atanh(-0.45))println(atanh(0.5))println(atanh(-0.896))

Output:

0.0
-0.48470027859405174
0.5493061443340548
-1.4515553918367974

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

Syntax: atand(x)

Parameters:

• x: Specified values.

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

Example:

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

Output:

0.0
-23.941221054429125
37.861494636796294
45.0

My Personal Notes arrow_drop_up