josdejong / josdejong/mathjs

cot reports wrong value for (0, 0)

Open
#1,427 2 comments 0 reactions 0 assignees View on GitHub
dependencies help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

`b = math.complex(0,0)` then `b.cot()` reports (**NaN**, **NaN**) as compared to _Mathematica's_ **ComplexInfinity**. Not that the correct answere is always useful, but it (the **NaN** answer) did cause a problem in testing extended precision complex functions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.