Cases prefixed with W are classified as warnings and do not generate an error of type NAG:error_n. See nag_issue_warnings.
On entry, | . |
On entry, | . |
Open in the MATLAB editor: e01bf_example
function e01bf_example fprintf('e01bf example results\n\n'); x = [7.99 8.09 8.19 8.7 9.2 10 12 15 20]; f = [0 2.7643e-05 0.04375 0.16918 0.46943 0.94374 0.99864 0.99992 0.99999]; % Theses are as returned by e01be(x,f) d = [0; 0.00055251; 0.33587; 0.34944; 0.59696; 0.060326; 0.000898335; 2.93954e-05; 0]; m = 11; dx = (x(end)-x(1))/(m-1); px = [x(1):dx:x(end)]; [pf, ifail] = e01bf(x, f, d, px); fprintf('\n Interpolated\n Abscissa Value\n'); fprintf('%13.4f %13.4f\n', [px' pf]')
e01bf example results Interpolated Abscissa Value 7.9900 0.0000 9.1910 0.4640 10.3920 0.9645 11.5930 0.9965 12.7940 0.9992 13.9950 0.9998 15.1960 0.9999 16.3970 1.0000 17.5980 1.0000 18.7990 1.0000 20.0000 1.0000