Complex.st
changeset 23643 22176167f5b8
parent 23167 3d8ef4a8970d
child 23644 a1ff1b6e80dd
equal deleted inserted replaced
23642:1ab778abeb7c 23643:22176167f5b8
   966     "Answer the square of receiver's norm."
   966     "Answer the square of receiver's norm."
   967 
   967 
   968     ^real * real + (imaginary * imaginary)
   968     ^real * real + (imaginary * imaginary)
   969 ! !
   969 ! !
   970 
   970 
   971 !Complex methodsFor:'printing'!
   971 !Complex methodsFor:'printing & storing'!
   972 
   972 
   973 displayOn: aGCOrStream
   973 displayOn: aGCOrStream
   974     "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
   974     "/ what a kludge - Dolphin and Squeak mean: printOn: a stream;
   975     "/ old ST80 means: draw-yourself on a GC.
   975     "/ old ST80 means: draw-yourself on a GC.
   976     (aGCOrStream isStream) ifFalse:[
   976     (aGCOrStream isStream) ifFalse:[