FEozF‖Sin Function

Contents
oLLRy‖

# 8Q7Jm‖Sin Function

fEasV‖Returns the sine of an angle. The angle is specified in radians. The result lies between -1 and 1.

AG6UD‖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.

k3iCL‖Sin(Alpha) = side opposite the angle/hypotenuse

### FVEx2‖Syntax:

    EYMBG‖Sin (Number As Double) As Double

### bBBqF‖Return type:

Double

### WADQ4‖Parameters:

WEp8x‖ Number: Numeric expression that defines the angle in radians that you want to calculate the sine for.

EJTy3‖To convert degrees to radians, multiply degrees by Pi/180, and to convert radians to degrees, multiply radians by 180/Pi.

yescR‖degrees=(radians*180)/Pi

PZTcG‖radians=(degrees*Pi)/180

EFgfE‖Pi is approximately 3.141593.

### SEjHR‖Error codes:

5 Invalid procedure call

### EFSA4‖Example:

    qDQRe‖' In this example, the following entry is possible for a right-angled triangle:
    7Qpns‖' The side opposite the angle and the angle (in degrees) to calculate the length of the hypotenuse:
    Sub ExampleSine
    C6oyE‖' Pi = 3.1415926 is a predefined variable
    Dim d1 As Double
    Dim dAlpha As Double
    BeFe9‖    d1 = InputBox("Enter the length of the opposite side: ","Opposite Side")
    MfnFH‖    dAlpha = InputBox("Enter the angle Alpha (in degrees): ","Alpha")
    iPorD‖    Print "The length of the hypotenuse is"; (d1 / sin (dAlpha * Pi / 180))
    End Sub

Related Topics

Atn Function

Cos Function

Tan Function

Please support us!