Sin Function [Runtime]/text/sbasic/shared/03080103.xhpSun Microsystems, Inc.converted from old format - fpeSin functionSin Function [Runtime]Returns the sine of an angle. The angle is specified in radians. The result lies between -1 and 1.Using the angle Alpha, the Sin Function returns the ratio of the length of the opposite side of an angle to the length of the hypotenuse in a right-angled triangle.Sin(Alpha) = side opposite the angle/hypotenuseSyntax:Sin (Number)Return value:DoubleParameters:Number: Numeric expression that defines the angle in radians that you want to calculate the sine for.To convert degrees to radians, multiply degrees by Pi/180, and to convert radians to degrees, multiply radians by 180/Pi.grad=(radiant*180)/piradiant=(grad*pi)/180Pi is approximately 3.141593.Example:REM In this example, the following entry is possible for a right-angled triangle:REM The side opposite the angle and the angle (in degrees) to calculate the length of the hypotenuse:Sub ExampleSineREM Pi = 3.1415926 is a predefined variableDim d1 as DoubleDim dAlpha as Doubled1 = InputBox$ ("Enter the length of the opposite side: ","Opposite Side")dAlpha = InputBox$ ("Enter the angle Alpha (in degrees): ","Alpha")Print "The length of the hypotenuse is"; (d1 / sin (dAlpha * Pi / 180))End Sub