Atan related procedures in class WorksheetFunction (Excel VBA)
This page presents procedures from class WorksheetFunction related to the theme Atan: Atan2 and Atanh
Atan2
Returns the arctangent, or inverse tangent, of the specified x- and y-coordinates. The arctangent is the angle from the x-axis to a line containing the origin (0, 0) and a point with coordinates (x_num, y_num). The angle is given in radians between -pi and pi, excluding -pi.
A positive result represents a counterclockwise angle from the x-axis; a negative result represents a clockwise angle. The following conditions apply:
Dim dblArg1 As Double: dblArg1 =
Dim dblArg2 As Double: dblArg2 =
Dim dblAtan2 As Double
dblAtan2 = WorksheetFunction.Atan2(Arg1:=dblArg1, Arg2:=dblArg2)
Arguments
Atanh
Returns the inverse hyperbolic tangent of a number. Number must be between -1 and 1 (excluding -1 and 1).
The inverse hyperbolic tangent is the value whose hyperbolic tangent is Arg1, so Atanh(Tanh(number)) equals Arg1.
Atanh (Arg1)
Arg1: Any real number between 1 and -1.
Dim dblArg1 As Double: dblArg1 =
Dim dblAtanh As Double
dblAtanh = WorksheetFunction.Atanh(Arg1:=dblArg1)