tan

Summary

Get the tangent of a number.

Usage

public static double tan(double x)

Returns

The tangent of the number.

Parameters

x

The number to get the tangent of (expressed in radians).

Description

Returns the tangent for a number (expressed in radians).

Examples

Basic Usage
1
2
3
4
5
import System;
 
Console.log(Math.tan(0));       // 0
Console.log(Math.tan(Math.PI)); // -1.2246467991473532e-16
Console.log(Math.tan(0.5));     // 0.5463024898437905

Share

HTML | BBCode | Direct Link