//Forward Difference Table
#include
#include
using namespace std;
int main()
{
cout.precision(2); //set precision
cout.setf(ios::fixed);
int i=0,j=0,n,k;
cout<<"\nEnter the number of values to be entered.\n";
cin>>n;
double x[n], y[n][n]; //make an array for x values and an nxn matrix for y and successive difference values, where y[n][0] is for the the y values
cout<<"\nEnter the values of x\n";
for (i=0;i>x[i];
cout<<"\nEnter the values of y\n";
for (i=0;i>y[i][0];
for (j=1;jSample Output
Ph.D. researcher at Friedrich-Schiller University Jena, Germany. I’m a physicist specializing in computational material science. I write efficient codes for simulating light-matter interactions at atomic scales. I like to develop Physics, DFT, and Machine Learning related apps and software from time to time. Can code in most of the popular languages. I like to share my knowledge in Physics and applications using this Blog and a YouTube channel.