* functions. */
/*
- * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2011 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
int digitsbuf = Digits;
// precision of data
Digits = 22;
- ex prec = 5 * pow(10, -(int)Digits);
+ ex prec = 5 * pow(10, -(ex)Digits);
unsigned result = 0;
static unsigned inifcns_test_HLi()
{
+ using GiNaC::log;
int digitsbuf = Digits;
Digits = 17;
- ex prec = 5 * pow(10, -(int)Digits);
+ ex prec = 5 * pow(10, -(ex)Digits);
numeric almostone("0.999999999999999999");
unsigned result = 0;
for (lst::const_iterator it = res.begin(); it != res.end(); it++) {
Digits = 17;
- ex prec = 5 * pow(10, -(int)Digits);
+ ex prec = 5 * pow(10, -(ex)Digits);
ex diff = abs((*it).evalf());
if (diff > prec) {
clog << *it << " seems to be wrong: " << diff << endl;
}
cout << "." << flush;
Digits = 40;
- prec = 5 * pow(10, -(int)Digits);
+ prec = 5 * pow(10, -(ex)Digits);
diff = abs((*it).evalf());
if (diff > prec) {
clog << *it << " seems to be wrong: " << diff << endl;
{
int digitsbuf = Digits;
Digits = 17;
- ex prec = 5 * pow(10, -(int)Digits);
+ ex prec = 5 * pow(10, -(ex)Digits);
numeric almostone("0.99999999999999999999");
unsigned result = 0;
static unsigned inifcns_test_legacy()
{
Digits = 17;
- ex prec = 5 * pow(10, -(int)Digits);
+ ex prec = 5 * pow(10, -(ex)Digits);
unsigned result = 0;
}
Digits = 100;
- prec = 5 * pow(10, -(int)Digits);
+ prec = 5 * pow(10, -(ex)Digits);
ex x0 = 1.;
x1 = exp(Pi*I/3).evalf();
x2 = exp(2*Pi*I/3).evalf();