go package demo: math

This commit is contained in:
xushiwei
2024-06-15 15:58:22 +08:00
parent 5011c394d7
commit b668175c62
2 changed files with 12 additions and 0 deletions

View File

@@ -207,6 +207,7 @@ Here are the Go packages that can be imported correctly:
* [unicode/utf8](https://pkg.go.dev/unicode/utf8)
* [unicode/utf16](https://pkg.go.dev/unicode/utf16)
* [math/bits](https://pkg.go.dev/math/bits)
* [math](https://pkg.go.dev/math)
## How to install

11
_demo/math/math.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"math"
)
func main() {
println(math.Sqrt(2))
println(math.Abs(-1.2))
println(math.Ldexp(1.2, 3))
}