#include #include #include using namespace std; /* This program, "ideal.cc", calculates the velocity, for frictionless sliding of the dominoes, of the fully developed domino effect. It is faster and more accurate than "friction.cc" with mu=0.0. */ enum {Nt = 40};//total number of separations double sep, dth, H, I, J, H0, I0, J0, P, oma; const double d = 0.17863; //aspect ratio of the dominoes int Ni, Nc; //Ni=# if points in theta integration, Nc=# of steps in recursion void coefficients(double x); //computes H,I,J for x=sin(theta) double iomega(double x); //yields invers omega(x=sin(theta)) double time(); //integrates over theta int main() { double alpha, beta; cout << setprecision(10); cout << setiosflags(ios :: showpoint); cout << setiosflags(ios :: fixed); for(int i=1; i