Returns the arccosine of a number.
ฟังก์ชันนี้ทำงานใน Google Sheets เหมือนกับใน Excel — ไวยากรณ์และอาร์กิวเมนต์เดียวกัน
ACOS(number)The ACOS function calculates the angle whose cosine is the specified number. The returned angle is given in radians in the range 0 to pi.
=ACOS(0.5)ผลลัพธ์: 1.047197551
Returns the arccosine of 0.5 in radians, which is pi/3.
=ACOS(-1)ผลลัพธ์: 3.141592654
Returns the arccosine of -1, which is equal to pi.
Excel will return the #NUM! error because the cosine of an angle cannot be outside this range.
You can use the formula =DEGREES(ACOS(number)).