libc complex64 support

This commit is contained in:
xushiwei
2024-06-20 10:22:35 +08:00
parent 94f61b0a0c
commit 5d957a6b7c
5 changed files with 152 additions and 10 deletions

View File

@@ -5,5 +5,8 @@ import (
)
func main() {
println("abs(3+4i):", cmplx.Abs(3+4i))
re := 3.0
im := 4.0
c := complex(re, im)
println("abs(3+4i):", cmplx.Abs(c))
}