|
|
1.1 ! root 1: .\" @(#)sin.3 6.1 (Berkeley) 5/15/85 ! 2: .\" ! 3: .TH SIN 3M "May 15, 1985" ! 4: .AT 3 ! 5: .SH NAME ! 6: sin, cos, tan, asin, acos, atan, atan2 \- trigonometric functions ! 7: .SH SYNOPSIS ! 8: .nf ! 9: .B #include <math.h> ! 10: .PP ! 11: .B double sin(x) ! 12: .B double x; ! 13: .PP ! 14: .B double cos(x) ! 15: .B double x; ! 16: .PP ! 17: .B double asin(x) ! 18: .B double x; ! 19: .PP ! 20: .B double acos(x) ! 21: .B double x; ! 22: .PP ! 23: .B double atan(x) ! 24: .B double x; ! 25: .PP ! 26: .B double atan2(x, y) ! 27: .B double x, y; ! 28: .fi ! 29: .SH DESCRIPTION ! 30: .I Sin, cos ! 31: and ! 32: .I tan ! 33: return trigonometric functions of radian arguments. ! 34: The magnitude of the argument should be checked ! 35: by the caller to make sure the result is meaningful. ! 36: .PP ! 37: .I Asin ! 38: returns the arc sin in the range \-\(*p/2 to \(*p/2. ! 39: .PP ! 40: .I Acos ! 41: returns the arc cosine in the range 0 to \(*p. ! 42: .PP ! 43: .I Atan ! 44: returns the arc tangent of ! 45: .I x ! 46: in the range \-\(*p/2 to \(*p/2. ! 47: .PP ! 48: .I Atan2 ! 49: returns the arc tangent of ! 50: .I x/y ! 51: in the range \-\(*p to \(*p. ! 52: .SH DIAGNOSTICS ! 53: Arguments of magnitude greater than 1 cause ! 54: .I asin ! 55: and ! 56: .I acos ! 57: to return value 0; ! 58: .I errno ! 59: is set to EDOM. The value of ! 60: .I tan ! 61: at its singular points is a huge number, and ! 62: .I errno ! 63: is set to ERANGE. ! 64: .SH BUGS ! 65: The value of ! 66: .I tan ! 67: for arguments greater than about 2**31 is garbage.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.