josdejong/mathjs

cot reports wrong value for (0, 0)

Aperta

#1427 aperta il 2 mar 2019

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (1314 fork)batch import
dependencieshelp wanted

Metriche repository

Star
 (15.065 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor