forked from rawify/Complex.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modifies exp() and pow() and specs behaviour of z^inf and inf^z.
Previous behaviour was inconsistant and was not tested for. This commit ensures that z^inf and inf^z return reasonable and consistant values. See rawify#24 for the dicussion on the behaviour which can be summaried as: z ^ Infinity === NaN Infinity ^ z === Infinity if Im(z) === 0 and Re(z) > 0 Infinity ^ z === 0 if Re(z) < 0 Infinity ^ 0 === 1 Infinity ^ z === NaN otherwise
- Loading branch information
1 parent
bcbf479
commit 027d097
Showing
2 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters