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