We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c8e01 commit af69a66Copy full SHA for af69a66
1 file changed
src/Math-Tests-Complex/PMComplexNumberTest.class.st
@@ -646,6 +646,14 @@ PMComplexNumberTest >> testRaisedToInteger [
646
self assert: c3 reciprocal equals: (c raisedToInteger: -3)
647
]
648
649
+{ #category : #'testing - mathematical functions' }
650
+PMComplexNumberTest >> testRaisedToPositiveInteger [
651
+ | z zCubed |
652
+ z := (3 sqrt / 2) + (1 / 2) i.
653
+ zCubed := (z raisedTo: 3) .
654
+ self assert: zCubed closeTo: (0 + 1 i).
655
+]
656
+
657
{ #category : #tests }
658
PMComplexNumberTest >> testRandom [
659
| random c r |
0 commit comments