Created
April 29, 2020 13:17
-
-
Save john-nash-rs/ea61a1e87658f0e613465a4614b68717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main(){ | |
var x complex128 = complex(1, 2) | |
var y complex128 = complex(3, 4) | |
fmt.Println(x*y) | |
fmt.Println(real(x*y)) | |
fmt.Println(imag(x*y)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment