JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Math.tan() Function

Name

Math.tan() Function---compute a tangent

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

Math.tan(x)

Arguments

x

An angle, measured in radians.

Returns

The tangent of the specified angle x.

Description

Math.tan() computes and returns the tangent of its numeric argument, which must be an angle specified in radians.

Usage

To convert degrees to radians, multiply by 0.017453293 (2pi/360).

See Also

"Math", "Math.atan()", "Math.cos()", "Math.sin()"


Previous Home Next
Math.SQRT2 Book Index MimeType

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.