summaryrefslogtreecommitdiff
path: root/libgo/go/math/sincos.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/math/sincos.go')
-rw-r--r--libgo/go/math/sincos.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/go/math/sincos.go b/libgo/go/math/sincos.go
new file mode 100644
index 00000000000..4c1576bead1
--- /dev/null
+++ b/libgo/go/math/sincos.go
@@ -0,0 +1,13 @@
+// Copyright 2010 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package math
+
+// Sincos(x) returns Sin(x), Cos(x).
+//
+// Special conditions are:
+// Sincos(+Inf) = NaN, NaN
+// Sincos(-Inf) = NaN, NaN
+// Sincos(NaN) = NaN, NaN
+func Sincos(x float64) (sin, cos float64) { return Sin(x), Cos(x) }