Skip to content

Commit

Permalink
refactor: renamed some local variables and performed a simpler comput…
Browse files Browse the repository at this point in the history
…ation.
  • Loading branch information
hemalvarambhia committed Jan 6, 2024
1 parent 0bf9dfc commit 6f5698a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Math-Tests-Complex/PMComplexNumberTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -630,11 +630,12 @@ PMComplexNumberTest >> testQuotientsOfComplexNumbersCannotBeWritten [
{ #category : #'testing - mathematical functions' }
PMComplexNumberTest >> testRaisedTo [

| c c3 |
| c squareRootOfZSquared z |
c := 5 - 6 i.
c3 := (c raisedTo: 0.2) raisedTo: 5.
self assert: c3 real closeTo: c real.
self assert: c3 imaginary closeTo: c imaginary
z := 5 - 6 i.
squareRootOfZSquared := (c raisedTo: 1 / 2) raisedTo: 2.
self assert: squareRootOfZSquared real closeTo: c real.
self assert: squareRootOfZSquared imaginary closeTo: c imaginary
]

{ #category : #'testing - mathematical functions' }
Expand Down

0 comments on commit 6f5698a

Please sign in to comment.