diff options
author | mbkma <[email protected]> | 2020-03-18 10:03:24 +0100 |
---|---|---|
committer | Robert Antoni Buj Gelonch <[email protected]> | 2020-03-18 21:11:17 +0100 |
commit | 197f53efa72f1710b95478f8960f0304a9b8f4cc (patch) | |
tree | 5c99bd90ff256e194360d9155cec4cc4c6436a65 /src/test-mp-equation.c | |
parent | 19711cb06c5bffee50084d3cbbbad48bbb2688bb (diff) | |
download | mate-calc-197f53efa72f1710b95478f8960f0304a9b8f4cc.tar.bz2 mate-calc-197f53efa72f1710b95478f8960f0304a9b8f4cc.tar.xz |
add Riemann zeta function and Gauss error function
Diffstat (limited to 'src/test-mp-equation.c')
-rw-r--r-- | src/test-mp-equation.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test-mp-equation.c b/src/test-mp-equation.c index becf742..861c445 100644 --- a/src/test-mp-equation.c +++ b/src/test-mp-equation.c @@ -590,6 +590,14 @@ test_equations(void) options.angle_units = MP_GRADIANS; test("sin 100", "1", 0); + test("zeta 0", "−0.5", 0); + test("zeta 2", "1.644934067", 0); + test("zeta −2", "0", 0); + + test("erf 0", "0", 0); + test("erf 1", "0.842700793", 0); + test("erf −1", "−0.842700793", 0); + /* Complex numbers */ options.angle_units = MP_DEGREES; test("i", "i", 0); |