Sincos in Go

Posted by GoDoc
Public (Editable by Users)

Sincos returns Sin(x), Cos(x).

Go
Edit
package main

import (
	"fmt"
	"math"
)

func main() {
	sin, cos := math.Sincos(0)
	fmt.Printf("%.2f, %.2f", sin, cos)
}