josdejong/mathjs

cot reports wrong value for (0, 0)

开放

#1,427 创建于 2019年3月2日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (1,314 个派生)batch import
dependencieshelp wanted

仓库指标

星标
 (15,065 个星标)
PR 合并指标
 (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.

贡献者指南