Arithmetic/Complex: Difference between revisions
Content added Content deleted
(→{{header|Smalltalk}}: formatting) |
(→{{header|Smalltalk}}: me stupid) |
||
Line 4,508: | Line 4,508: | ||
Transcript show:'a imaginary => '; showCR:a imaginary. |
Transcript show:'a imaginary => '; showCR:a imaginary. |
||
Transcript show:'a negated => '; showCR:a negated. |
Transcript show:'a negated => '; showCR:a negated. |
||
Transcript show:'a sqrt => '; showCR:a sqrt. |
Transcript show:'a sqrt => '; showCR:a sqrt. |
||
a2 := (1/2) + 1i. |
a2 := (1/2) + 1i. |
||
b2 := (2/3) + 2i. |
b2 := (2/3) + 2i. |
||
Line 4,515: | Line 4,515: | ||
Transcript show:'a2*b2 => '; showCR:(a2 * b2). |
Transcript show:'a2*b2 => '; showCR:(a2 * b2). |
||
Transcript show:'a2/b2 => '; showCR:(a2 / b2). |
Transcript show:'a2/b2 => '; showCR:(a2 / b2). |
||
Transcript show:'a2 reciprocal => '; showCR:a2 reciprocal. |
Transcript show:'a2 reciprocal => '; showCR:a2 reciprocal.</lang> |
||
{{out}} |
{{out}} |
||
<pre>a => (1+1i) |
<pre>a => (1+1i) |