//Mass of ball(in kg): m=0.2; //Height fom which ball is dropped(in m): y0=500; //Value of k: k=2*10^-4; //Accleration due to gravity(in m/sec^2): g=9.81;