numeric icon indicating copy to clipboard operation
numeric copied to clipboard

Fix reciprocal of a complex number with zero imaginary part.

Open gagern opened this issue 11 years ago • 0 comments

The reciprocal function is broken when applied to a complex number with zero imaginary part. The code path forgot to use a namespace for the result, and also forgot to include the imaginary part of the result. I added a suitable test case to the documentation to check for this. The missing namespace was found by jshint, the missing imaginary part then exposed by the unit test I had added.

gagern avatar Nov 18 '14 10:11 gagern