1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

doc: add doc for Log function

This commit is contained in:
dudaodong
2023-06-07 11:37:12 +08:00
parent a6a8fd88bc
commit e08a62b0ba
3 changed files with 75 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ func Sin(radian float64, precision ...int) float64 {
return Cos((math.Pi / 2) - radian)
}
// Log retur the logarithm of base n.
// Log returns the logarithm of base n.
// Play: todo
func Log(n, base float64) float64 {
return math.Log(n) / math.Log(base)