josdejong / josdejong/mathjs

is there a bug with zeta(n) ?

Open
#3,532 17 comments 0 reactions 0 assignees View on GitHub
bug category:numerical
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

hello,

**Describe the bug**
when you use zeta(n) into math.evaluate(...)

**To Reproduce**
math.config({
number: "BigNumber",
precision: 998,
relTol: 1e-320,
absTol: 1e-323
});
math.evaluate("zeta(3)")
=> gamma.js:89 Uncaught Error: Integer BigNumber expected
at BigNumber (gamma.js:89:13)
at gamma (typed-function.js:1465:22)
at BigNumber (factorial.js:44:14)
at factorial (typed-function.js:1462:22)
at b (zeta.js:118:18)
at zeta.js:135:34
at x (zeta.js:98:14)
at y (zeta.js:64:12)
at BigNumber (zeta.js:36:23)
at zeta (typed-function.js:1465:22)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.