Skip to content

Instantly share code, notes, and snippets.

@john-nash-rs
Created April 29, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-nash-rs/ea61a1e87658f0e613465a4614b68717 to your computer and use it in GitHub Desktop.
Save john-nash-rs/ea61a1e87658f0e613465a4614b68717 to your computer and use it in GitHub Desktop.
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