[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Math/acos [Back]  [Original]

Math.acos() - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Math.acos()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

Math.acos() ( ),

x[-1;1],Math.acos(x)=arccos(x)= y[0;], cos(y)=x\forall x \in [{-1};1],;\mathtt{\operatorname{Math.acos}(x)} = \arccos(x) = \text{ } ; y \in [0; \pi] , \text{, } ; \cos(y) = x

In this article

Math.acos(x)

x

.

Math.acos() 0 x, -1 1. NaN, x .

acos() Math, Math.acos(), Math ( Math ).

: Math.acos()

js
Math.acos(-2); // NaN
Math.acos(-1); // 3.141592653589793
Math.acos(0); // 1.5707963267948966
Math.acos(0.5); // 1.0471975511965979
Math.acos(1); // 0
Math.acos(2); // NaN

, -1 1, Math.acos() NaN.

Specification
ECMAScript 2027 LanguageSpecification
# sec-math.acos


Web Proxy Viewer  |  New URL  |  Original Page