We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8351794 commit 31e0027Copy full SHA for 31e0027
1 file changed
109-Complex-Numbers/complex-3.gop
@@ -7,9 +7,9 @@ c11 := complex(10, 11) // constructor init
7
c22 := 10 + 11i // complex number init syntax
8
9
ccc := complex(2, 3)
10
-cc2 := 4 + 5i // complex initializer syntax a + ib
11
-cc3 := c11 + c22 // addition just like other variables
12
-println "Add: ", cc3 // prints "Add: (6+8i)"
13
-re := real(cc3) // get real part
14
-im := imag(cc3) // get imaginary part
15
-println ccc, re, im // prints 6 8
+cc2 := 4 + 5i // complex initializer syntax a + ib
+cc3 := c11 + c22 // addition just like other variables
+println "Add: ", cc3 // prints "Add: (6+8i)"
+re := real(cc3) // get real part
+im := imag(cc3) // get imaginary part
+println ccc, cc2, re, im // prints 6 8
0 commit comments