summaryrefslogtreecommitdiff
path: root/static/plan9-4e/man2/sin.2
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/plan9-4e/man2/sin.2
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/plan9-4e/man2/sin.2')
-rw-r--r--static/plan9-4e/man2/sin.264
1 files changed, 64 insertions, 0 deletions
diff --git a/static/plan9-4e/man2/sin.2 b/static/plan9-4e/man2/sin.2
new file mode 100644
index 00000000..ac2c2c50
--- /dev/null
+++ b/static/plan9-4e/man2/sin.2
@@ -0,0 +1,64 @@
+.TH SIN 2
+.SH NAME
+sin, cos, tan, asin, acos, atan, atan2 \- trigonometric functions
+.SH SYNOPSIS
+.B #include <u.h>
+.br
+.B #include <libc.h>
+.PP
+.B
+double sin(double x)
+.PP
+.B
+double cos(double x)
+.PP
+.B
+double tan(double x)
+.PP
+.B
+double asin(double x)
+.PP
+.B
+double acos(double x)
+.PP
+.B
+double atan(double x)
+.PP
+.B
+double atan2(double y, double x)
+.SH DESCRIPTION
+.I Sin, cos
+and
+.I tan
+return trigonometric functions of radian arguments.
+The magnitude of the argument should be checked
+by the caller to make sure the result is meaningful.
+.PP
+.I Asin
+returns the arc sine in the range
+\-π/2 to π/2.
+.PP
+.I Acos
+returns the arc cosine in the range
+0 to π.
+.PP
+.I Atan
+returns the arc tangent in the range
+\-π/2 to π/2.
+.PP
+.I Atan2
+returns the arc tangent of
+.I y/x
+in the range
+\-π to π.
+.SH SOURCE
+.B /sys/src/libc/port
+.SH SEE ALSO
+.IR intro (2)
+.SH BUGS
+The value of
+.I tan
+for arguments greater than about
+.if t 2\u\s-231\s+2\d
+.if n 2^31
+is garbage.