1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-14 01:35:36 +00:00
This commit is contained in:
Peter Boyle 2015-06-08 12:03:36 +01:00
parent 5bdf89e3f0
commit 690397e7c6

View File

@ -35,7 +35,7 @@ void MultiShiftFunction::csv(std::ostream &out)
{ {
for (double x=lo; x<hi; x*=1.05) { for (double x=lo; x<hi; x*=1.05) {
double f = approx(x); double f = approx(x);
double r = sqrt(x); double r = std::sqrt(x);
out<< x<<","<<r<<","<<f<<","<<r-f<<std::endl; out<< x<<","<<r<<","<<f<<","<<r-f<<std::endl;
} }
return; return;
@ -80,8 +80,8 @@ int main (int argc, char ** argv)
InvSqrt.gnuplot(gnuplot); InvSqrt.gnuplot(gnuplot);
double x=0.6789; double x=0.6789;
double sx=sqrt(x); double sx=std::sqrt(x);
double ssx=sqrt(sx); double ssx=std::sqrt(sx);
double isx=1.0/sx; double isx=1.0/sx;
double issx=1.0/ssx; double issx=1.0/ssx;