03-Feb-2021 09:16:13 test_interp_1d_test MATLAB/Octave version 9.9.0.1467703 (R2020b) Test test_interp_1d. The R8LIB library is needed. TEST_INTERP_1D_TEST01 Print the title of each function. There are 8 functions available: Index Title 1 f(x) = steps -1/2/1 at [0,1/3], [1/3,4/5], [4/5,1]. 2 f(x) = (1-3x), x < 1/3; (6x-2) if 1/3 < x 3 f(x) = x (10*x-1) (5x-2) (5x-2) (4x-3.4) (x-1) 4 f(x) = atan ( 40 * x - 15 ) 5 f(x) = cos(7*x)+5*cos(11.2*x)-2*cos(14*x)+5*cos(31.5*x)+7*cos(63*x). 6 f(x) = exp ( - ( 4*x-1 )^2 ) 7 f(x) = exp ( 2 x ) if x < 0.5, 0 otherwise 8 f(x) = 1 / ( 1 + ( 10 * (x-1/2) )^2 ) TEST_INTERP_1D_TEST02 Use P00_F to sample each function. X, Y for problem 1 1: 0 -1 2: 0.1 -1 3: 0.2 -1 4: 0.3 -1 5: 0.4 2 6: 0.5 2 7: 0.6 2 8: 0.7 2 9: 0.8 1 10: 0.9 1 11: 1 1 X, Y for problem 2 1: 0 1 2: 0.1 0.7 3: 0.2 0.4 4: 0.3 0.1 5: 0.4 0.4 6: 0.5 1 7: 0.6 1.6 8: 0.7 2.2 9: 0.8 2.8 10: 0.9 3.4 11: 1 4 X, Y for problem 3 1: 0 -0 2: 0.1 0 3: 0.2 0.416 4: 0.3 0.231 5: 0.4 0 6: 0.5 0.35 7: 0.6 1.2 8: 0.7 1.701 9: 0.8 0.896 10: 0.9 -0.9 11: 1 0 X, Y for problem 4 1: 0 -1.50423 2: 0.1 -1.48014 3: 0.2 -1.4289 4: 0.3 -1.24905 5: 0.4 0.785398 6: 0.5 1.3734 7: 0.6 1.46014 8: 0.7 1.49402 9: 0.8 1.51204 10: 0.9 1.52321 11: 1 1.53082 X, Y for problem 5 1: 0 16 2: 0.1 4.60251 3: 0.2 10.9479 4: 0.3 -2.41286 5: 0.4 8.33648 6: 0.5 3.41326 7: 0.6 17.0369 8: 0.7 4.07749 9: 0.8 7.82541 10: 0.9 -3.02927 11: 1 13.3791 X, Y for problem 6 1: 0 0.367879 2: 0.1 0.697676 3: 0.2 0.960789 4: 0.3 0.960789 5: 0.4 0.697676 6: 0.5 0.367879 7: 0.6 0.140858 8: 0.7 0.0391639 9: 0.8 0.00790705 10: 0.9 0.00115923 11: 1 0.00012341 X, Y for problem 7 1: 0 1 2: 0.1 1.49182 3: 0.2 2.22554 4: 0.3 3.32012 5: 0.4 4.95303 6: 0.5 0 7: 0.6 0 8: 0.7 0 9: 0.8 0 10: 0.9 0 11: 1 0 X, Y for problem 8 1: 0 0.0384615 2: 0.1 0.0588235 3: 0.2 0.1 4: 0.3 0.2 5: 0.4 0.5 6: 0.5 1 7: 0.6 0.5 8: 0.7 0.2 9: 0.8 0.1 10: 0.9 0.0588235 11: 1 0.0384615 TEST_INTERP_1D_TEST03 Use P00_PLOT to plot each function. Plot saved as "p01_plot.png". Plot saved as "p02_plot.png". Plot saved as "p03_plot.png". Plot saved as "p04_plot.png". Plot saved as "p05_plot.png". Plot saved as "p06_plot.png". Plot saved as "p07_plot.png". Plot saved as "p08_plot.png". test_interp_1d_test Normal end of execution. 03-Feb-2021 09:16:22