Page 372 - MATLAB an introduction with applications
P. 372
Direct Numerical Integration Methods ——— 357
The output of the program is as follows:
time displacement velocity
0.000000 0.000000 0.000000
0.020000 0.007375 0.725000
0.040000 0.028041 1.307417
0.060000 0.057936 1.632787
0.080000 0.091181 1.637183
0.100000 0.121242 1.319778
0.120000 0.141711 0.669243
0.140000 0.146114 –0.260185
0.160000 0.130641 –1.285790
0.180000 0.095386 –2.205969
0.200000 0.044333 –2.839867
0.220000 –0.014931 –2.989164
0.240000 –0.071253 –2.550901
0.260000 –0.113564 –1.611284
0.280000 –0.133548 –0.355057
0.300000 –0.127280 0.970822
0.320000 –0.095995 2.105735
0.340000 –0.045845 2.826625
0.360000 0.013311 2.991841
0.380000 0.069845 2.568967
0.400000 0.112643 1.641187
0.420000 0.133296 0.390919
0.440000 0.127747 –0.936053
0.460000 0.097088 –2.078891
0.480000 0.047349 –2.812982
0.500000 –0.011691 –2.994079
0.520000 –0.068427 –2.586645
0.540000 –0.111707 –1.670828
0.560000 –0.133025 –0.426696
0.580000 –0.128194 0.901173
0.600000 –0.098165 2.051764
0.620000 –0.048845 2.798940
0.640000 0.010071 2.995880

