From 197f53efa72f1710b95478f8960f0304a9b8f4cc Mon Sep 17 00:00:00 2001 From: mbkma Date: Wed, 18 Mar 2020 10:03:24 +0100 Subject: add Riemann zeta function and Gauss error function --- src/test-mp-equation.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test-mp-equation.c') 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); -- cgit v1.2.1