33 of 318
ZBasic System Library 23 ZX Microcontroller Family Asin Type Function returning Single Invocation Asin(arg) Parameter Method Type Description arg ByVal Single The value from which the arc sine will be computed. Discussion The arc sine function is the inverse of the sine function. The return value will be the angle, expressed in radians, whose sine corresponds to the passed value. The type of the return value will be Single and the value will range from -p/2 to p/2. If the argument is greater than 1.0 or less than –1.0, the result will be undefined. Example Dim val as Single, theta as Single val = 0.5 theta = Asin(val) ' result is approximately 0.5236 See Also Sin, DegToRad, RadToDeg