Skip to content

Commit

Permalink
test: changed the test data to cos(pi/3) + i sin(pi/3).
Browse files Browse the repository at this point in the history
  • Loading branch information
hemalvarambhia committed Jan 15, 2024
1 parent 7abf584 commit d64a1bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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' }
Expand Down

0 comments on commit d64a1bd

Please sign in to comment.