Closed harrysarson closed 6 years ago
Improves the parse function so that now parse{r: Infinity, phi: x}) where x is any finite Number will return ComplexInfinity rather than ComplexNaN.
parse{r: Infinity, phi: x})
x
If x is infinite or NaN then parse will return ComplexNaN.
Also adds tests for these cases and duplicates any tests using {r, phi} to also run using {abs, arg}
{r, phi}
{abs, arg}
Improves the parse function so that now
parse{r: Infinity, phi: x})
wherex
is any finite Number will return ComplexInfinity rather than ComplexNaN.If
x
is infinite or NaN then parse will return ComplexNaN.Also adds tests for these cases and duplicates any tests using
{r, phi}
to also run using{abs, arg}