josdejong/mathjs

cot reports wrong value for (0, 0)

Open

#1 427 ouverte le 2 mars 2019

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (1 298 forks)batch import
dependencieshelp wanted

Métriques du dépôt

Stars
 (13 832 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur