13 lines
137 B
Go
13 lines
137 B
Go
package main
|
|
|
|
import (
|
|
"math/cmplx"
|
|
)
|
|
|
|
func main() {
|
|
re := 3.0
|
|
im := 4.0
|
|
c := complex(re, im)
|
|
println("abs(3+4i):", cmplx.Abs(c))
|
|
}
|