summaryrefslogtreecommitdiff
path: root/libgo/go/math/sincos.go
blob: 4c1576bead1fbc1a17004f98299732e4506e96d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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) }