josdejong/mathjs

cot reports wrong value for (0, 0)

Open

#1,427 opened on 2019年3月2日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,298 forks)batch import
dependencieshelp wanted

Repository metrics

Stars
 (13,832 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド