Sin Function

Tips >>ASP Functions

WANTS TO MAKE SOFTWARE WITHOUT KNOWLEDGE OF ASP? CLICK HERE

The Sin function returns the sine of a specified number (angle). The number argument can be any valid numeric expression that expresses an angle in radians. The Sin function 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 hypotenuse. The result lies in the range -1 to 1. To convert degrees to radians, multiply degrees by pi /180. To convert radians to degrees, multiply radians by 180/pi

The Syntax of the Sin Function is :-

Sin(number)

Example#1 :-

Code :-
document.write(Sin(47))
Output :-
0.123573122745224

Example#2 :-

Code :-
document.write(Sin(-47))
Output :-
0.123573122745224

Example#3 :-

Code :-
document.write(Sin(45.0))
Output :-

0.850903524534118

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

Example#4 :-

Code :-
document.write(Sin(-45.0))
Output :-
-0.850903524534118


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

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641