Tan Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE


The Tan function returns the tangent of a specified number (angle).
The number argument can be any valid numeric expression that expresses an angle in radians. Tan takes an angle and returns the ratio of two sides of a right triangle. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle. To convert degrees to radians, multiply degrees by pi /180. To convert radians to degrees, multiply radians by 180/pi.


It has One Mandatory Argument :-

  • Number :- Any valid numeric expression that expresses an angle in radians.

The Syntax of the Tan function is :-

Tan(number)

Example#1 :-

Code :-
document.write(Tan(40))
Output :-
-1.1172149309239

Example#2 :-

Code :-
document.write(Tan(40))
Output :-
1.1172149309239

Example#3 :-

Code :-
document.write(Tan(45.0))
Output :-
1.61977519054386

Example#4 :-

Code :-
document.write(Tan(-45.0))
Output :-
-1.61977519054386

Note :- You can also use a negative number (angle).

 

 
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641