josdejong/mathjs

cot reports wrong value for (0, 0)

オープン

#1,427 opened on 2019/03/02

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (1,314 件のフォーク)batch import
dependencieshelp wanted

Repository metrics

Stars
 (15,065 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

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