Files
llgo/cl/_testlibc/complex/in.go

13 lines
181 B
Go
Raw Normal View History

2024-06-20 10:22:35 +08:00
package main
import (
"github.com/goplus/llgo/c/math/cmplx"
)
func main() {
re := float32(3.0)
im := float32(4.0)
c := complex(re, im)
println("abs(3+4i):", cmplx.Absf(c))
}