Complex.js icon indicating copy to clipboard operation
Complex.js copied to clipboard

Modifies exp() and pow() and specs behaviour of z^inf and inf^z.

Open harrysarson opened this issue 7 years ago • 3 comments

Previous behaviour was inconsistant and was not tested for. This commit ensures that z^inf and inf^z return reasonable and consistant values.

See #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

harrysarson avatar Mar 15 '18 16:03 harrysarson

@infusion could you take a look?

harrysarson avatar Apr 03 '18 18:04 harrysarson

@infusion I have solved the merge conflicts, would it be possible to review this?

harrysarson avatar Apr 29 '18 18:04 harrysarson

@infusion any updates?

harrysarson avatar Mar 07 '19 21:03 harrysarson