Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
Math.acos() は静的メソッドで、引数として与えた数値の逆余弦(アークコサイン)をラジアン単位で返します。すなわち次の通りです。
∀x∊[−1,1],𝙼𝚊𝚝𝚑.𝚊𝚌𝚘𝚜(𝚡)=arccos(x)=the unique y∊[0,π] such that cos(y)=x\forall x \in [{-1}, 1],\;\mathtt{\operatorname{Math.acos}(x)} = \arccos(x) = \text{the unique } y \in [0, \pi] \text{ such that } \cos(y) = xコサインを表す数値で、 x は -1 と 1 の間です。
与えられた数値が -1 から 1 までの場合、その逆余弦(アークコサイン)をラジアン単位で返します。それ以外の場合は NaN を返します。
acos() は Math の静的メソッドであるため、生成した Math オブジェクトのメソッドとしてではなく、常に Math.acos() として使用するようにしてください (Math はコンストラクターではありません)。
| ECMAScript® 2027 Language Specification # sec-math.acos |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年10月2日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.