JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Math.cos() Function

Name

Math.cos() Function---compute a cosine

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

Math.cos(x)

Arguments

x

A numeric value or expression, in radians.

Returns

The cosine of the specified value x.

Description

Math.cos() computes and returns the cosine of the specified argument. The argument should be an angle be specified in radians, and the return value will be between -1.0 and 1.0.

See Also

"Math"


Previous Home Next
Math.ceil() Book Index Math.E

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
This HTML Help has been published using the chm2web software.