From d64a1bdad1f7cc2e8af60a2453f7b0211ff256a9 Mon Sep 17 00:00:00 2001 From: hemalvarambhia Date: Mon, 15 Jan 2024 19:58:56 +0000 Subject: [PATCH] test: changed the test data to cos(pi/3) + i sin(pi/3). --- src/Math-Tests-Complex/PMComplexNumberTest.class.st | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Math-Tests-Complex/PMComplexNumberTest.class.st b/src/Math-Tests-Complex/PMComplexNumberTest.class.st index 4874e0fb..e36ef500 100644 --- a/src/Math-Tests-Complex/PMComplexNumberTest.class.st +++ b/src/Math-Tests-Complex/PMComplexNumberTest.class.st @@ -658,8 +658,8 @@ PMComplexNumberTest >> testRaisedToInteger [ { #category : #'testing - mathematical functions' } PMComplexNumberTest >> testRaisedToNegativeInteger [ | z | - z := (3 sqrt / 2) + (1 / 2) i. - self assert: (z raisedTo: -3) closeTo: (0 - 1 i). + z := (1 / 2) + (3 sqrt / 2) i. + self assert: (z raisedTo: -3) closeTo: (-1 + 0 i). ] { #category : #'testing - mathematical functions' }