【正文】
onArcCos(x) 函數(shù)功能:返回一個指定數(shù)的反余弦值,以弧度表示,返回類型為Double。語法:ArcCos(x)。說明:其中,x的取值范圍為[1,1],x的數(shù)據(jù)類型為Double。程序代碼:Function ArcCos(x As Double) As DoubleIf x = 1 And x Then ArcCos = Atn(Sqr(1 x * x) / x) + 4 * Atn(1)If x = And x = Then ArcCos = Atn(x / Sqr(1 x * x)) + 2 * Atn(1)If x And x = 1 Then ArcCos = Atn(Sqr(1 x * x) / x)End Function