Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

傳回指定數位反正切值的 Double

語法

atn ( number )

必要 數位引數 為 Double 或任何有效的 數值運算式。

註解

Atn 函數採用右三角形的兩邊比例 (數位) ,並以弧度傳回對應的角度。 此比例為角度對面的一側長度,除以與角度相鄰的一側的長度。

結果的範圍是 pi/2 到 pi/2 弧度。

若要將度數轉換成弧度,請將角度乘以pi/180。 若要將弧度轉換成度數,請將弧度乘以 180/pi。

附註:  AtnTan 的反三角函數,採用某個角度做為自變數,並傳回右三角形的兩邊比例。 請勿將 Atn 與余切值混淆,這是一個簡單的反正切 (1/正切) 。

查詢範例

Expression

結果​​

SELECT Atn (90) AS ArcTangent FROM ProductSales GROUP BY Atn (90) ;

傳回 number 自變數 (以弧度表示角度) 並顯示在 ArcTangent 欄中的任何數值表達式的 “ArcTangent”。

VBA 範例

附註: 下列範例示範如何在 Visual Basic for Applications (VBA) 模組中使用此函數。 如需使用 VBA 的詳細資訊,請在 [搜尋] 旁的下拉式清單中選取 [開發人員參考],並在 [搜尋] 方塊中輸入一個或多個字詞。

此範例使用 Atn 函數來計算 pi 的值。

Dim pi pi = 4 * Atn(1) ' Calculate the value of pi.

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×