1
0
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:
dudaodong
2023-12-19 15:36:07 +08:00
parent 80e48f06ca
commit ddd265de78

View File

@@ -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.