#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sat, 26 Jan 2019 10:58:05 +0100
changeset 23644 a1ff1b6e80dd
parent 23643 22176167f5b8
child 23645 c1d740fc821d
#BUGFIX by cg class: Complex added: #raisedFromFloat:
Complex.st
--- a/Complex.st	Thu Jan 24 17:05:06 2019 +0100
+++ b/Complex.st	Sat Jan 26 10:58:05 2019 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  This is a Manchester Goodie.  It is distributed freely on condition
  that you observe these conditions in respect of the whole Goodie, and on
@@ -797,6 +799,20 @@
     ^ anInteger asComplex / self
 !
 
+raisedFromFloat:aNumber
+    ^ self raisedFromNumber:aNumber
+    
+    "
+     2 raisedTo:(2 + 2i)
+     2 ** (2 + 2i)
+
+     2.0 raisedTo:(2 + 2i)
+     2.0 ** (2 + 2i)
+    "
+
+    "Created: / 26-01-2019 / 10:56:06 / Claus Gittinger"
+!
+
 raisedFromNumber:aNumber
     "see http://www.math.toronto.edu/mathnet/questionCorner/complexexp.html"
 
@@ -1356,5 +1372,9 @@
 
 version
     ^ '$Header$'
+!
+
+version_CVS
+    ^ '$Header$'
 ! !