##############ECHO OF PROBLEM################# ##############temp/add_c_linpostode.ode################# diff ( y , x , 1 ) = 0.3 + ( 0.1 * x + 0.2 ) ; ! /* BEGIN FIRST INPUT BLOCK */ Digits=32; max_terms=30; ! /* END FIRST INPUT BLOCK */ /* BEGIN SECOND INPUT BLOCK */ x_start=c(0.1); x_end=c(1.0); array_y_init[0 + 1] = exact_soln_y(x_start); glob_display_interval=c(0.1); glob_look_poles=true; glob_min_h=c(0.1); glob_type_given_pole=3; /* END SECOND INPUT BLOCK */ /* BEGIN OVERRIDE BLOCK */ glob_desired_digits_correct=8; glob_max_minutes=(20.0); glob_subiter_method=3; glob_max_iter=1000; glob_upper_ratio_limit=c(1.11); glob_lower_ratio_limit=c(0.99); /* END OVERRIDE BLOCK */ ! /* BEGIN USER DEF BLOCK */ double exact_soln_y (double x) { return(c(0.05) * c(x) * c(x) + c(0.5) * c(x)); } /* END USER DEF BLOCK */ #######END OF ECHO OF PROBLEM################# START of Soultion TOP MAIN SOLVE Loop x[1] = 0.1 y[1] (closed_form) = 0.0505 y[1] (numeric) = 0.0505 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 14 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.2 y[1] (closed_form) = 0.102 y[1] (numeric) = 0.102 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.3 y[1] (closed_form) = 0.1545 y[1] (numeric) = 0.1545 absolute error = 2.775557561562891e-17 relative error = 1.796477386124849e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.4 y[1] (closed_form) = 0.208 y[1] (numeric) = 0.208 absolute error = 5.551115123125783e-17 relative error = 2.668805347656626e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.4999999999999999 y[1] (closed_form) = 0.2625 y[1] (numeric) = 0.2625000000000001 absolute error = 1.110223024625157e-16 relative error = 4.229421046191073e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.6 y[1] (closed_form) = 0.318 y[1] (numeric) = 0.3180000000000001 absolute error = 5.551115123125783e-17 relative error = 1.745633686517542e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.7000000000000001 y[1] (closed_form) = 0.3745000000000001 y[1] (numeric) = 0.3745000000000001 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.8000000000000002 y[1] (closed_form) = 0.4320000000000001 y[1] (numeric) = 0.4320000000000001 absolute error = 5.551115123125783e-17 relative error = 1.284980352575412e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 TOP MAIN SOLVE Loop x[1] = 0.9000000000000002 y[1] (closed_form) = 0.4905000000000002 y[1] (numeric) = 0.4905 absolute error = 1.110223024625157e-16 relative error = 2.263451630224579e-14 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 16 h = 0.05 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 NO REAL POLE (three term test) for Equation 1 NO COMPLEX POLE (six term test) for Equation 1 Finished! diff ( y , x , 1 ) = 0.3 + ( 0.1 * x + 0.2 ) ; Iterations = 18 Total Elapsed Time = 0.0 Seconds Elapsed Time(since restart) = 0.0 Seconds Time to Timeout = 20 Minutes 0.0 Seconds Percent Done = 105.6 %