mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-17 11:12:28 +08:00
fix: fix comment error
This commit is contained in:
@@ -330,10 +330,10 @@ func Cos(radian float64, precision ...int) float64 {
|
|||||||
return TruncRound(radian, 3)
|
return TruncRound(radian, 3)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cos returns the sine of the radian argument.
|
// Sin returns the sine of the radian argument.
|
||||||
// Play: https://go.dev/play/p/TWMQlMywDsP
|
// Play: https://go.dev/play/p/TWMQlMywDsP
|
||||||
func Sin(radian float64, precision ...int) float64 {
|
func Sin(radian float64, precision ...int) float64 {
|
||||||
return Cos((math.Pi / 2) - radian)
|
return Cos((math.Pi/2)-radian, precision...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log returns the logarithm of base n.
|
// Log returns the logarithm of base n.
|
||||||
|
|||||||
Reference in New Issue
Block a user