-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,9 +149,23 @@ | |
# equivalent to exp(y*log(x)) | ||
# except for 0^0? | ||
# conj(x)^conj(y) = conj(x^y) | ||
@test isequal(complex(0.0,0.0)^complex(0.0,0.0), complex(1.0,0.0)) | ||
@test isequal(complex(0.0,0.0)^complex(0.0,0.0), complex(1.0,-0.0)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
erg
|
||
@test isequal(complex(0.0,-0.0)^complex(0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(0.0,0.0)^complex(0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(0.0,-0.0)^complex(0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(-0.0,0.0)^complex(0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(-0.0,-0.0)^complex(0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(-0.0,0.0)^complex(0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(-0.0,-0.0)^complex(0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(0.0,0.0)^complex(-0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(0.0,-0.0)^complex(-0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(0.0,0.0)^complex(-0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(0.0,-0.0)^complex(-0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(-0.0,0.0)^complex(-0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(-0.0,-0.0)^complex(-0.0,0.0), complex(1.0,-0.0)) | ||
@test isequal(complex(-0.0,0.0)^complex(-0.0,-0.0), complex(1.0,0.0)) | ||
@test isequal(complex(-0.0,-0.0)^complex(-0.0,-0.0), complex(1.0,0.0)) | ||
|
||
@test isequal(complex(0.0,-0.0)^complex(0.0,-0.0), complex(1.0,-0.0)) | ||
|
||
|
||
|
||
|
1 comment
on commit 3ef1d4d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why would complex
0.0^0.0
equal1.0 - 0.0im
?