* functions. */
/*
- * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
#include "checks.h"
/* Some tests on the sine trigonometric function. */
-static unsigned inifcns_check_sin(void)
+static unsigned inifcns_check_sin()
{
unsigned result = 0;
bool errorflag = false;
}
/* Simple tests on the cosine trigonometric function. */
-static unsigned inifcns_check_cos(void)
+static unsigned inifcns_check_cos()
{
unsigned result = 0;
bool errorflag;
}
/* Simple tests on the tangent trigonometric function. */
-static unsigned inifcns_check_tan(void)
+static unsigned inifcns_check_tan()
{
unsigned result = 0;
bool errorflag;
}
/* Simple tests on the dilogarithm function. */
-static unsigned inifcns_check_Li2(void)
+static unsigned inifcns_check_Li2()
{
// NOTE: this can safely be removed once CLN supports dilogarithms and
// checks them itself.
argument = numeric(20.0*rand()/(RAND_MAX+1.0)-10.0)
+ numeric(20.0*rand()/(RAND_MAX+1.0)-10.0)*I;
if (abs(Li2(pow(argument,2))-2*Li2(argument)-2*Li2(-argument)) > epsilon) {
- cout << "Li2(z) at z==" << argument
+ clog << "Li2(z) at z==" << argument
<< " failed to satisfy Li2(z^2)==2*(Li2(z)+Li2(-z))" << endl;
errorflag = true;
}
return result;
}
-unsigned check_inifcns(void)
+unsigned check_inifcns()
{
unsigned result = 0;