/* File: Richardson.cpp Christer Karlsson This code implements Richardson Extrapolation. Allowed inputs are real numbers (long double). Define f in the function procedure. x equals the point where the derivative is evaluated. h is the step values. n is the amount of itterations. NOTE! All arrays have an upper limit of n = 10. */ #include #include #include // Needed too manipulate the display using namespace std; // the function long double f(long double x) { long double f; f=sin(x); return f; } // The Derivative function void Derivative(long double x, int n, long double h, long double D[10][10]) { int i, j; for (i=0; i