Sin in Go

Posted by GoDoc
Public (Editable by Users)

Sin returns the sine of the radian argument x.

Go
Edit
package main

import (
	"fmt"
	"math"
)

func main() {
	fmt.Printf("%.2f", math.Sin(math.Pi))
}