Purpose |
Return the sine of its argument. |
Syntax |
y = SIN(numeric_expression) |
Remarks |
numeric_expression is an angle specified in radians. SIN returns an Extended-precision value between -1 and +1. To convert radians to degrees, multiply by 57.29577951308232##. To convert degrees to radians, multiply by 0.0174532925199433##. For more information on radians, see the ATN function. The Inverse Sine (ARCSIN) of a value can be calculated as follows: ArcSin = ATN(Value / SQR(1 - Value * Value)) The Hyperbolic Sine (SINH) of a value can also be calculated: SinH = (EXP(Value) - EXP(-Value)) / 2 The Inverse Hyperbolic Sine (ARCSINH) of a value can also be calculated: ArcSinH = LOG(Value + SQR(Value * Value + 1))
' Useful Macro functions MACRO Pi =
3.141592653589793## |
See also |
|
Example |
pi## = 3.141592653589793## FOR I& = 0 TO 360 STEP 45 x$ = "The Sine of " + FORMAT$(I&,"* 0") + _ " degrees =" + FORMAT$(SIN(pi## / 180 * _ I&),"* 0.00") NEXT I& |
Result |
The Sine of 0 degrees = 0.00 The Sine of 45 degrees = 0.71 The Sine of 90 degrees = 1.00 The Sine of 135 degrees = 0.71 The Sine of 180 degrees = 0.00 The Sine of 225 degrees = -0.71 The Sine of 270 degrees = -1.00 The Sine of 315 degrees = -0.71 The Sine of 360 degrees = 0.00 |