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