Atn Function

この三角関数は、与えられた数値表式の Atn(アークタンジェント、逆正接)値を計算します。戻り値は、-π/2 から +π/2 の範囲を取ります。

The arctangent is the inverse of the tangent function. The Atn Function returns the angle "Alpha", expressed in radians, using the tangent of this angle. The function can also return the angle "Alpha" by comparing the ratio of the length of the side that is opposite of the angle to the length of the side that is adjacent to the angle in a right-angled triangle.

Atn(side opposite the angle/side adjacent to angle)= Alpha

Syntax:


        Atn (Number As Double) As Double
    

Return value:

Double

Parameters:

Number: Any numerical expression that represents the ratio of two sides of a right triangle. The Atn function returns the corresponding angle in radians (arctangent).

ラジアン値を通常の角度に変換するには、ラジアン値×180/π と計算します。

通常の角度の値 = (ラジアン値*180)/pi

ラジアン値 = (通常の角度の値*pi)/180

Pi is here the fixed circle constant with the rounded value 3.14159. Pi is a Basic mathematical constant.

Error codes:

5 無効なプロシージャー呼び出しです

Example:


        REM この例では、頂角の 1 つをαとする直角三角形を想定して、
        REM この頂点に隣接する辺と対辺の長さから、頂角αの値を計算します。
        Sub ExampleAtn
        REM Pi = 3.1415926 は事前定義されている定数で、円周率の近似値
        Dim d1 As Double
        Dim d2 As Double
            d1 = InputBox("Enter the length of the side adjacent to the angle:","Adjacent")
            d2 = InputBox("Enter the length of the side opposite the angle:","Opposite")
            Print "The Alpha angle is"; (atn (d2/d1) * 180 / Pi); " degrees"
        End Sub
    

ご支援をお願いします!