Skip to content

Latest commit

 

History

History
71 lines (59 loc) · 1.78 KB

File metadata and controls

71 lines (59 loc) · 1.78 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Math.acos Function (JavaScript) | Microsoft Docs
01/18/2017
windows-client-threshold
devlang-javascript
language-reference
acos
JavaScript
TypeScript
DHTML
acos method
arcosine method
828cb3c3-bdf7-4bb7-97ae-3617ce4b2d62
13
mikejo5000
mikejo
ghogen

Math.acos Function (JavaScript)

Returns the arc cosine (or inverse cosine) of a number.

Syntax

Math.acos(number)  

Parameters

The required number argument is a numeric expression.

Return Value

The arc cosine of the number argument, in radians.

Example

The following code shows how to use the acos function.

var v1 = Math.acos(-1.0);  
var v2 = Math.cos(-1.0);  
  
document.write(v1);  
document.write("<br/>");  
document.write(v2);  
  
// Output:  
// 3.141592653589793  
// 0.5403023058681398  
  

Remarks

Applies To: Math Object

Requirements

[!INCLUDEjsv1]

See Also

Math.asin Function
Math.atan Function
Math.cos Function
Math.sin Function
Math.tan Function
Math Object