|\^/| Maple 12 (IBM INTEL LINUX) ._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2008 \ MAPLE / All rights reserved. Maple is a trademark of <____ ____> Waterloo Maple Inc. | Type ? for help. > #BEGIN OUTFILE1 > > # Begin Function number 3 > display_alot := proc(iter) > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local abserr, analytic_val_y, ind_var, numeric_val, relerr, term_no, good_digits; > > > > > > #TOP DISPLAY ALOT > if (iter >= 0) then # if number 1 > ind_var := array_x[1]; > omniout_float(ALWAYS,"x[1] ",33,ind_var,20," "); > analytic_val_y := exact_soln_y(ind_var); > omniout_float(ALWAYS,"y[1] (analytic) ",33,analytic_val_y,20," "); > term_no := 1; > numeric_val := array_y[term_no]; > abserr := omniabs(numeric_val - analytic_val_y); > omniout_float(ALWAYS,"y[1] (numeric) ",33,numeric_val,20," "); > if (omniabs(analytic_val_y) <> 0.0) then # if number 2 > relerr := abserr*100.0/omniabs(analytic_val_y); > if (relerr <> 0.0) then # if number 3 > good_digits := -trunc(log10(relerr/100.0)); > else > good_digits := -1; > fi;# end if 3 > ; > else > relerr := -1.0 ; > good_digits := -1; > fi;# end if 2 > ; > if (glob_iter = 1) then # if number 2 > array_1st_rel_error[1] := relerr; > else > array_last_rel_error[1] := relerr; > fi;# end if 2 > ; > omniout_float(ALWAYS,"absolute error ",4,abserr,20," "); > omniout_float(ALWAYS,"relative error ",4,relerr,20,"%"); > print("good digits = ",good_digits); > omniout_float(ALWAYS,"h ",4,glob_h,20," "); > #BOTTOM DISPLAY ALOT > fi;# end if 1 > ; > > # End Function number 3 > end; display_alot := proc(iter) local abserr, analytic_val_y, ind_var, numeric_val, relerr, term_no, good_digits; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; if 0 <= iter then ind_var := array_x[1]; omniout_float(ALWAYS, "x[1] ", 33, ind_var, 20, " "); analytic_val_y := exact_soln_y(ind_var); omniout_float(ALWAYS, "y[1] (analytic) ", 33, analytic_val_y, 20, " "); term_no := 1; numeric_val := array_y[term_no]; abserr := omniabs(numeric_val - analytic_val_y); omniout_float(ALWAYS, "y[1] (numeric) ", 33, numeric_val, 20, " "); if omniabs(analytic_val_y) <> 0. then relerr := abserr*100.0/omniabs(analytic_val_y); if relerr <> 0. then good_digits := -trunc(log10(relerr/100.0)) else good_digits := -1 end if else relerr := -1.0; good_digits := -1 end if; if glob_iter = 1 then array_1st_rel_error[1] := relerr else array_last_rel_error[1] := relerr end if; omniout_float(ALWAYS, "absolute error ", 4, abserr, 20, " "); omniout_float(ALWAYS, "relative error ", 4, relerr, 20, "%"); print("good digits = ", good_digits); omniout_float(ALWAYS, "h ", 4, glob_h, 20, " ") end if end proc > # Begin Function number 4 > adjust_for_pole := proc(h_param) > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local hnew, sz2, tmp; > > > > #TOP ADJUST FOR POLE > > hnew := h_param; > glob_normmax := glob_small_float; > if (omniabs(array_y_higher[1,1]) > glob_small_float) then # if number 1 > tmp := omniabs(array_y_higher[1,1]); > if (tmp < glob_normmax) then # if number 2 > glob_normmax := tmp; > fi;# end if 2 > fi;# end if 1 > ; > if (glob_look_poles and (omniabs(array_pole[1]) > glob_small_float) and (array_pole[1] <> glob_large_float)) then # if number 1 > sz2 := array_pole[1]/10.0; > if (sz2 < hnew) then # if number 2 > omniout_float(INFO,"glob_h adjusted to ",20,h_param,12,"due to singularity."); > omniout_str(INFO,"Reached Optimal"); > return(hnew); > fi;# end if 2 > fi;# end if 1 > ; > if ( not glob_reached_optimal_h) then # if number 1 > glob_reached_optimal_h := true; > glob_curr_iter_when_opt := glob_current_iter; > glob_optimal_clock_start_sec := elapsed_time_seconds(); > glob_optimal_start := array_x[1]; > fi;# end if 1 > ; > hnew := sz2; > ;#END block > return(hnew); > #BOTTOM ADJUST FOR POLE > > # End Function number 4 > end; adjust_for_pole := proc(h_param) local hnew, sz2, tmp; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; hnew := h_param; glob_normmax := glob_small_float; if glob_small_float < omniabs(array_y_higher[1, 1]) then tmp := omniabs(array_y_higher[1, 1]); if tmp < glob_normmax then glob_normmax := tmp end if end if; if glob_look_poles and glob_small_float < omniabs(array_pole[1]) and array_pole[1] <> glob_large_float then sz2 := array_pole[1]/10.0; if sz2 < hnew then omniout_float(INFO, "glob_h adjusted to ", 20, h_param, 12, "due to singularity."); omniout_str(INFO, "Reached Optimal"); return hnew end if end if; if not glob_reached_optimal_h then glob_reached_optimal_h := true; glob_curr_iter_when_opt := glob_current_iter; glob_optimal_clock_start_sec := elapsed_time_seconds(); glob_optimal_start := array_x[1] end if; hnew := sz2; return hnew end proc > # Begin Function number 5 > prog_report := proc(x_start,x_end) > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local clock_sec, opt_clock_sec, clock_sec1, expect_sec, left_sec, percent_done, total_clock_sec; > > > > > > #TOP PROGRESS REPORT > clock_sec1 := elapsed_time_seconds(); > total_clock_sec := convfloat(clock_sec1) - convfloat(glob_orig_start_sec); > glob_clock_sec := convfloat(clock_sec1) - convfloat(glob_clock_start_sec); > left_sec := convfloat(glob_max_sec) + convfloat(glob_orig_start_sec) - convfloat(clock_sec1); > expect_sec := comp_expect_sec(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) + convfloat(glob_h) ,convfloat( clock_sec1) - convfloat(glob_orig_start_sec)); > opt_clock_sec := convfloat( clock_sec1) - convfloat(glob_optimal_clock_start_sec); > glob_optimal_expect_sec := comp_expect_sec(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) +convfloat( glob_h) ,convfloat( opt_clock_sec)); > percent_done := comp_percent(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) + convfloat(glob_h)); > glob_percent_done := percent_done; > omniout_str_noeol(INFO,"Total Elapsed Time "); > omniout_timestr(convfloat(total_clock_sec)); > omniout_str_noeol(INFO,"Elapsed Time(since restart) "); > omniout_timestr(convfloat(glob_clock_sec)); > if (convfloat(percent_done) < convfloat(100.0)) then # if number 1 > omniout_str_noeol(INFO,"Expected Time Remaining "); > omniout_timestr(convfloat(expect_sec)); > omniout_str_noeol(INFO,"Optimized Time Remaining "); > omniout_timestr(convfloat(glob_optimal_expect_sec)); > fi;# end if 1 > ; > omniout_str_noeol(INFO,"Time to Timeout "); > omniout_timestr(convfloat(left_sec)); > omniout_float(INFO, "Percent Done ",33,percent_done,4,"%"); > #BOTTOM PROGRESS REPORT > > # End Function number 5 > end; prog_report := proc(x_start, x_end) local clock_sec, opt_clock_sec, clock_sec1, expect_sec, left_sec, percent_done, total_clock_sec; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; clock_sec1 := elapsed_time_seconds(); total_clock_sec := convfloat(clock_sec1) - convfloat(glob_orig_start_sec); glob_clock_sec := convfloat(clock_sec1) - convfloat(glob_clock_start_sec); left_sec := convfloat(glob_max_sec) + convfloat(glob_orig_start_sec) - convfloat(clock_sec1); expect_sec := comp_expect_sec(convfloat(x_end), convfloat(x_start), convfloat(array_x[1]) + convfloat(glob_h), convfloat(clock_sec1) - convfloat(glob_orig_start_sec)); opt_clock_sec := convfloat(clock_sec1) - convfloat(glob_optimal_clock_start_sec); glob_optimal_expect_sec := comp_expect_sec(convfloat(x_end), convfloat(x_start), convfloat(array_x[1]) + convfloat(glob_h), convfloat(opt_clock_sec)); percent_done := comp_percent(convfloat(x_end), convfloat(x_start), convfloat(array_x[1]) + convfloat(glob_h)); glob_percent_done := percent_done; omniout_str_noeol(INFO, "Total Elapsed Time "); omniout_timestr(convfloat(total_clock_sec)); omniout_str_noeol(INFO, "Elapsed Time(since restart) "); omniout_timestr(convfloat(glob_clock_sec)); if convfloat(percent_done) < convfloat(100.0) then omniout_str_noeol(INFO, "Expected Time Remaining "); omniout_timestr(convfloat(expect_sec)); omniout_str_noeol(INFO, "Optimized Time Remaining "); omniout_timestr(convfloat(glob_optimal_expect_sec)) end if; omniout_str_noeol(INFO, "Time to Timeout "); omniout_timestr(convfloat(left_sec)); omniout_float(INFO, "Percent Done ", 33, percent_done, 4, "%") end proc > # Begin Function number 6 > check_for_pole := proc() > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found; > > > > > > #TOP CHECK FOR POLE > #IN RADII REAL EQ = 1 > #Computes radius of convergence and r_order of pole from 3 adjacent Taylor series terms. EQUATUON NUMBER 1 > #Applies to pole of arbitrary r_order on the real axis, > #Due to Prof. George Corliss. > n := glob_max_terms; > m := n - 1 - 1; > while ((m >= 10) and ((omniabs(array_y_higher[1,m]) < glob_small_float) or (omniabs(array_y_higher[1,m-1]) < glob_small_float) or (omniabs(array_y_higher[1,m-2]) < glob_small_float ))) do # do number 2 > m := m - 1; > od;# end do number 2 > ; > if (m > 10) then # if number 1 > rm0 := array_y_higher[1,m]/array_y_higher[1,m-1]; > rm1 := array_y_higher[1,m-1]/array_y_higher[1,m-2]; > hdrc := convfloat(m-1)*rm0-convfloat(m-2)*rm1; > if (omniabs(hdrc) > glob_small_float) then # if number 2 > rcs := glob_h/hdrc; > ord_no := convfloat(m-1)*rm0/hdrc - convfloat(m) + 2.0; > array_real_pole[1,1] := rcs; > array_real_pole[1,2] := ord_no; > else > array_real_pole[1,1] := glob_large_float; > array_real_pole[1,2] := glob_large_float; > fi;# end if 2 > else > array_real_pole[1,1] := glob_large_float; > array_real_pole[1,2] := glob_large_float; > fi;# end if 1 > ; > #BOTTOM RADII REAL EQ = 1 > #TOP RADII COMPLEX EQ = 1 > #Computes radius of convergence for complex conjugate pair of poles. > #from 6 adjacent Taylor series terms > #Also computes r_order of poles. > #Due to Manuel Prieto. > #With a correction by Dennis J. Darland > n := glob_max_terms - 1 - 1; > cnt := 0; > while ((cnt < 5) and (n >= 10)) do # do number 2 > if (omniabs(array_y_higher[1,n]) > glob_small_float) then # if number 1 > cnt := cnt + 1; > else > cnt := 0; > fi;# end if 1 > ; > n := n - 1; > od;# end do number 2 > ; > m := n + cnt; > if (m <= 10) then # if number 1 > array_complex_pole[1,1] := glob_large_float; > array_complex_pole[1,2] := glob_large_float; > elif ((omniabs(array_y_higher[1,m]) >= (glob_large_float)) or (omniabs(array_y_higher[1,m-1]) >=(glob_large_float)) or (omniabs(array_y_higher[1,m-2]) >= (glob_large_float)) or (omniabs(array_y_higher[1,m-3]) >= (glob_large_float)) or (omniabs(array_y_higher[1,m-4]) >= (glob_large_float)) or (omniabs(array_y_higher[1,m-5]) >= (glob_large_float))) then # if number 2 > array_complex_pole[1,1] := glob_large_float; > array_complex_pole[1,2] := glob_large_float; > else > rm0 := (array_y_higher[1,m])/(array_y_higher[1,m-1]); > rm1 := (array_y_higher[1,m-1])/(array_y_higher[1,m-2]); > rm2 := (array_y_higher[1,m-2])/(array_y_higher[1,m-3]); > rm3 := (array_y_higher[1,m-3])/(array_y_higher[1,m-4]); > rm4 := (array_y_higher[1,m-4])/(array_y_higher[1,m-5]); > nr1 := convfloat(m-1)*rm0 - 2.0*convfloat(m-2)*rm1 + convfloat(m-3)*rm2; > nr2 := convfloat(m-2)*rm1 - 2.0*convfloat(m-3)*rm2 + convfloat(m-4)*rm3; > dr1 := (-1.0)/rm1 + 2.0/rm2 - 1.0/rm3; > dr2 := (-1.0)/rm2 + 2.0/rm3 - 1.0/rm4; > ds1 := 3.0/rm1 - 8.0/rm2 + 5.0/rm3; > ds2 := 3.0/rm2 - 8.0/rm3 + 5.0/rm4; > if ((omniabs(nr1 * dr2 - nr2 * dr1) <= glob_small_float) or (omniabs(dr1) <= glob_small_float)) then # if number 3 > array_complex_pole[1,1] := glob_large_float; > array_complex_pole[1,2] := glob_large_float; > else > if (omniabs(nr1*dr2 - nr2 * dr1) > glob_small_float) then # if number 4 > rcs := ((ds1*dr2 - ds2*dr1 +dr1*dr2)/(nr1*dr2 - nr2 * dr1)); > #(Manuels) rcs := (ds1*dr2 - ds2*dr1)/(nr1*dr2 - nr2 * dr1) > ord_no := (rcs*nr1 - ds1)/(2.0*dr1) -convfloat(m)/2.0; > if (omniabs(rcs) > glob_small_float) then # if number 5 > if (rcs > 0.0) then # if number 6 > rad_c := sqrt(rcs) * glob_h; > else > rad_c := glob_large_float; > fi;# end if 6 > else > rad_c := glob_large_float; > ord_no := glob_large_float; > fi;# end if 5 > else > rad_c := glob_large_float; > ord_no := glob_large_float; > fi;# end if 4 > fi;# end if 3 > ; > array_complex_pole[1,1] := rad_c; > array_complex_pole[1,2] := ord_no; > fi;# end if 2 > ; > #BOTTOM RADII COMPLEX EQ = 1 > found := false; > #TOP WHICH RADII EQ = 1 > if ( not found and ((array_real_pole[1,1] = glob_large_float) or (array_real_pole[1,2] = glob_large_float)) and ((array_complex_pole[1,1] <> glob_large_float) and (array_complex_pole[1,2] <> glob_large_float)) and ((array_complex_pole[1,1] > 0.0) and (array_complex_pole[1,2] > 0.0))) then # if number 2 > array_poles[1,1] := array_complex_pole[1,1]; > array_poles[1,2] := array_complex_pole[1,2]; > found := true; > array_type_pole[1] := 2; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"Complex estimate of poles used"); > fi;# end if 3 > ; > fi;# end if 2 > ; > if ( not found and ((array_real_pole[1,1] <> glob_large_float) and (array_real_pole[1,2] <> glob_large_float) and (array_real_pole[1,1] > 0.0) and (array_real_pole[1,2] > 0.0) and ((array_complex_pole[1,1] = glob_large_float) or (array_complex_pole[1,2] = glob_large_float) or (array_complex_pole[1,1] <= 0.0 ) or (array_complex_pole[1,2] <= 0.0)))) then # if number 2 > array_poles[1,1] := array_real_pole[1,1]; > array_poles[1,2] := array_real_pole[1,2]; > found := true; > array_type_pole[1] := 1; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"Real estimate of pole used"); > fi;# end if 3 > ; > fi;# end if 2 > ; > if ( not found and (((array_real_pole[1,1] = glob_large_float) or (array_real_pole[1,2] = glob_large_float)) and ((array_complex_pole[1,1] = glob_large_float) or (array_complex_pole[1,2] = glob_large_float)))) then # if number 2 > array_poles[1,1] := glob_large_float; > array_poles[1,2] := glob_large_float; > found := true; > array_type_pole[1] := 3; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"NO POLE"); > fi;# end if 3 > ; > fi;# end if 2 > ; > if ( not found and ((array_real_pole[1,1] < array_complex_pole[1,1]) and (array_real_pole[1,1] > 0.0) and (array_real_pole[1,2] > 0.0))) then # if number 2 > array_poles[1,1] := array_real_pole[1,1]; > array_poles[1,2] := array_real_pole[1,2]; > found := true; > array_type_pole[1] := 1; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"Real estimate of pole used"); > fi;# end if 3 > ; > fi;# end if 2 > ; > if ( not found and ((array_complex_pole[1,1] <> glob_large_float) and (array_complex_pole[1,2] <> glob_large_float) and (array_complex_pole[1,1] > 0.0) and (array_complex_pole[1,2] > 0.0))) then # if number 2 > array_poles[1,1] := array_complex_pole[1,1]; > array_poles[1,2] := array_complex_pole[1,2]; > array_type_pole[1] := 2; > found := true; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"Complex estimate of poles used"); > fi;# end if 3 > ; > fi;# end if 2 > ; > if ( not found ) then # if number 2 > array_poles[1,1] := glob_large_float; > array_poles[1,2] := glob_large_float; > array_type_pole[1] := 3; > if (glob_display_flag) then # if number 3 > omniout_str(ALWAYS,"NO POLE"); > fi;# end if 3 > ; > fi;# end if 2 > ; > #BOTTOM WHICH RADII EQ = 1 > array_pole[1] := glob_large_float; > array_pole[2] := glob_large_float; > #TOP WHICH RADIUS EQ = 1 > if (array_pole[1] > array_poles[1,1]) then # if number 2 > array_pole[1] := array_poles[1,1]; > array_pole[2] := array_poles[1,2]; > fi;# end if 2 > ; > #BOTTOM WHICH RADIUS EQ = 1 > #BOTTOM CHECK FOR POLE > display_pole(); > > # End Function number 6 > end; check_for_pole := proc() local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; n := glob_max_terms; m := n - 2; while 10 <= m and (omniabs(array_y_higher[1, m]) < glob_small_float or omniabs(array_y_higher[1, m - 1]) < glob_small_float or omniabs(array_y_higher[1, m - 2]) < glob_small_float) do m := m - 1 end do; if 10 < m then rm0 := array_y_higher[1, m]/array_y_higher[1, m - 1]; rm1 := array_y_higher[1, m - 1]/array_y_higher[1, m - 2]; hdrc := convfloat(m - 1)*rm0 - convfloat(m - 2)*rm1; if glob_small_float < omniabs(hdrc) then rcs := glob_h/hdrc; ord_no := convfloat(m - 1)*rm0/hdrc - convfloat(m) + 2.0; array_real_pole[1, 1] := rcs; array_real_pole[1, 2] := ord_no else array_real_pole[1, 1] := glob_large_float; array_real_pole[1, 2] := glob_large_float end if else array_real_pole[1, 1] := glob_large_float; array_real_pole[1, 2] := glob_large_float end if; n := glob_max_terms - 2; cnt := 0; while cnt < 5 and 10 <= n do if glob_small_float < omniabs(array_y_higher[1, n]) then cnt := cnt + 1 else cnt := 0 end if; n := n - 1 end do; m := n + cnt; if m <= 10 then array_complex_pole[1, 1] := glob_large_float; array_complex_pole[1, 2] := glob_large_float elif glob_large_float <= omniabs(array_y_higher[1, m]) or glob_large_float <= omniabs(array_y_higher[1, m - 1]) or glob_large_float <= omniabs(array_y_higher[1, m - 2]) or glob_large_float <= omniabs(array_y_higher[1, m - 3]) or glob_large_float <= omniabs(array_y_higher[1, m - 4]) or glob_large_float <= omniabs(array_y_higher[1, m - 5]) then array_complex_pole[1, 1] := glob_large_float; array_complex_pole[1, 2] := glob_large_float else rm0 := array_y_higher[1, m]/array_y_higher[1, m - 1]; rm1 := array_y_higher[1, m - 1]/array_y_higher[1, m - 2]; rm2 := array_y_higher[1, m - 2]/array_y_higher[1, m - 3]; rm3 := array_y_higher[1, m - 3]/array_y_higher[1, m - 4]; rm4 := array_y_higher[1, m - 4]/array_y_higher[1, m - 5]; nr1 := convfloat(m - 1)*rm0 - 2.0*convfloat(m - 2)*rm1 + convfloat(m - 3)*rm2; nr2 := convfloat(m - 2)*rm1 - 2.0*convfloat(m - 3)*rm2 + convfloat(m - 4)*rm3; dr1 := (-1)*(1.0)/rm1 + 2.0/rm2 - 1.0/rm3; dr2 := (-1)*(1.0)/rm2 + 2.0/rm3 - 1.0/rm4; ds1 := 3.0/rm1 - 8.0/rm2 + 5.0/rm3; ds2 := 3.0/rm2 - 8.0/rm3 + 5.0/rm4; if omniabs(nr1*dr2 - nr2*dr1) <= glob_small_float or omniabs(dr1) <= glob_small_float then array_complex_pole[1, 1] := glob_large_float; array_complex_pole[1, 2] := glob_large_float else if glob_small_float < omniabs(nr1*dr2 - nr2*dr1) then rcs := (ds1*dr2 - ds2*dr1 + dr1*dr2)/(nr1*dr2 - nr2*dr1); ord_no := (rcs*nr1 - ds1)/(2.0*dr1) - convfloat(m)/2.0; if glob_small_float < omniabs(rcs) then if 0. < rcs then rad_c := sqrt(rcs)*glob_h else rad_c := glob_large_float end if else rad_c := glob_large_float; ord_no := glob_large_float end if else rad_c := glob_large_float; ord_no := glob_large_float end if end if; array_complex_pole[1, 1] := rad_c; array_complex_pole[1, 2] := ord_no end if; found := false; if not found and (array_real_pole[1, 1] = glob_large_float or array_real_pole[1, 2] = glob_large_float) and array_complex_pole[1, 1] <> glob_large_float and array_complex_pole[1, 2] <> glob_large_float and 0. < array_complex_pole[1, 1] and 0. < array_complex_pole[1, 2] then array_poles[1, 1] := array_complex_pole[1, 1]; array_poles[1, 2] := array_complex_pole[1, 2]; found := true; array_type_pole[1] := 2; if glob_display_flag then omniout_str(ALWAYS, "Complex estimate of poles used") end if end if; if not found and array_real_pole[1, 1] <> glob_large_float and array_real_pole[1, 2] <> glob_large_float and 0. < array_real_pole[1, 1] and 0. < array_real_pole[1, 2] and ( array_complex_pole[1, 1] = glob_large_float or array_complex_pole[1, 2] = glob_large_float or array_complex_pole[1, 1] <= 0. or array_complex_pole[1, 2] <= 0.) then array_poles[1, 1] := array_real_pole[1, 1]; array_poles[1, 2] := array_real_pole[1, 2]; found := true; array_type_pole[1] := 1; if glob_display_flag then omniout_str(ALWAYS, "Real estimate of pole used") end if end if; if not found and (array_real_pole[1, 1] = glob_large_float or array_real_pole[1, 2] = glob_large_float) and ( array_complex_pole[1, 1] = glob_large_float or array_complex_pole[1, 2] = glob_large_float) then array_poles[1, 1] := glob_large_float; array_poles[1, 2] := glob_large_float; found := true; array_type_pole[1] := 3; if glob_display_flag then omniout_str(ALWAYS, "NO POLE") end if end if; if not found and array_real_pole[1, 1] < array_complex_pole[1, 1] and 0. < array_real_pole[1, 1] and 0. < array_real_pole[1, 2] then array_poles[1, 1] := array_real_pole[1, 1]; array_poles[1, 2] := array_real_pole[1, 2]; found := true; array_type_pole[1] := 1; if glob_display_flag then omniout_str(ALWAYS, "Real estimate of pole used") end if end if; if not found and array_complex_pole[1, 1] <> glob_large_float and array_complex_pole[1, 2] <> glob_large_float and 0. < array_complex_pole[1, 1] and 0. < array_complex_pole[1, 2] then array_poles[1, 1] := array_complex_pole[1, 1]; array_poles[1, 2] := array_complex_pole[1, 2]; array_type_pole[1] := 2; found := true; if glob_display_flag then omniout_str(ALWAYS, "Complex estimate of poles used") end if end if; if not found then array_poles[1, 1] := glob_large_float; array_poles[1, 2] := glob_large_float; array_type_pole[1] := 3; if glob_display_flag then omniout_str(ALWAYS, "NO POLE") end if end if; array_pole[1] := glob_large_float; array_pole[2] := glob_large_float; if array_poles[1, 1] < array_pole[1] then array_pole[1] := array_poles[1, 1]; array_pole[2] := array_poles[1, 2] end if; display_pole() end proc > # Begin Function number 7 > get_norms := proc() > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local iii; > > > > if ( not glob_initial_pass) then # if number 2 > iii := 1; > while (iii <= glob_max_terms) do # do number 2 > array_norms[iii] := 0.0; > iii := iii + 1; > od;# end do number 2 > ; > #TOP GET NORMS > iii := 1; > while (iii <= glob_max_terms) do # do number 2 > if (omniabs(array_y[iii]) > array_norms[iii]) then # if number 3 > array_norms[iii] := omniabs(array_y[iii]); > fi;# end if 3 > ; > iii := iii + 1; > od;# end do number 2 > #BOTTOM GET NORMS > ; > fi;# end if 2 > ; > > # End Function number 7 > end; get_norms := proc() local iii; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; if not glob_initial_pass then iii := 1; while iii <= glob_max_terms do array_norms[iii] := 0.; iii := iii + 1 end do; iii := 1; while iii <= glob_max_terms do if array_norms[iii] < omniabs(array_y[iii]) then array_norms[iii] := omniabs(array_y[iii]) end if; iii := iii + 1 end do end if end proc > # Begin Function number 8 > atomall := proc() > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > > local kkk, order_d, adj2, temporary, term; > > > > > > #TOP ATOMALL > #END OUTFILE1 > #BEGIN ATOMHDR1 > #emit pre mult CONST - LINEAR $eq_no = 1 i = 1 > array_tmp1[1] := array_const_0D1[1] * array_x[1]; > #emit pre add LINEAR - CONST $eq_no = 1 i = 1 > array_tmp2[1] := array_tmp1[1] + array_const_0D2[1]; > #emit pre asin ID_LINEAR iii = 1 $eq_no = 1 > #emit pre asin 1 $eq_no = 1 > array_tmp3[1] := arcsin(array_tmp2[1]); > array_tmp3_a1[1] := cos(array_tmp3[1]); > #emit pre add CONST FULL $eq_no = 1 i = 1 > array_tmp4[1] := array_const_0D0[1] + array_tmp3[1]; > #emit pre assign xxx $eq_no = 1 i = 1 $min_hdrs = 5 > if ( not array_y_set_initial[1,2]) then # if number 1 > if (1 <= glob_max_terms) then # if number 2 > temporary := array_tmp4[1] * expt(glob_h , (1)) * factorial_3(0,1); > array_y[2] := temporary; > array_y_higher[1,2] := temporary; > temporary := temporary / glob_h * (2.0); > array_y_higher[2,1] := temporary > ; > fi;# end if 2 > ; > fi;# end if 1 > ; > kkk := 2; > #END ATOMHDR1 > #BEGIN ATOMHDR2 > #emit pre mult CONST - LINEAR $eq_no = 1 i = 2 > array_tmp1[2] := array_const_0D1[1] * array_x[2]; > #emit pre add LINEAR - CONST $eq_no = 1 i = 2 > array_tmp2[2] := array_tmp1[2]; > #emit pre asin ID_LINEAR iii = 2 $eq_no = 1 > #emit pre asin 1 $eq_no = 1 > array_tmp3[2] := array_tmp2[2] / array_tmp3_a1[1]; > array_tmp3_a1[2] := -array_tmp2[1] * array_tmp3[2]; > #emit pre add CONST FULL $eq_no = 1 i = 2 > array_tmp4[2] := array_tmp3[2]; > #emit pre assign xxx $eq_no = 1 i = 2 $min_hdrs = 5 > if ( not array_y_set_initial[1,3]) then # if number 1 > if (2 <= glob_max_terms) then # if number 2 > temporary := array_tmp4[2] * expt(glob_h , (1)) * factorial_3(1,2); > array_y[3] := temporary; > array_y_higher[1,3] := temporary; > temporary := temporary / glob_h * (2.0); > array_y_higher[2,2] := temporary > ; > fi;# end if 2 > ; > fi;# end if 1 > ; > kkk := 3; > #END ATOMHDR2 > #BEGIN ATOMHDR3 > #emit pre asin ID_LINEAR iii = 3 $eq_no = 1 > array_tmp3[3] := - att(2,array_tmp3_a1,array_tmp3,2) / array_tmp3_a1[1]; > array_tmp3_a1[3] := -array_tmp3[3] * array_tmp2[1] - array_tmp3[2] * array_tmp2[2] * 1 / 2; > #emit pre add CONST FULL $eq_no = 1 i = 3 > array_tmp4[3] := array_tmp3[3]; > #emit pre assign xxx $eq_no = 1 i = 3 $min_hdrs = 5 > if ( not array_y_set_initial[1,4]) then # if number 1 > if (3 <= glob_max_terms) then # if number 2 > temporary := array_tmp4[3] * expt(glob_h , (1)) * factorial_3(2,3); > array_y[4] := temporary; > array_y_higher[1,4] := temporary; > temporary := temporary / glob_h * (2.0); > array_y_higher[2,3] := temporary > ; > fi;# end if 2 > ; > fi;# end if 1 > ; > kkk := 4; > #END ATOMHDR3 > #BEGIN ATOMHDR4 > #emit pre asin ID_LINEAR iii = 4 $eq_no = 1 > array_tmp3[4] := - att(3,array_tmp3_a1,array_tmp3,2) / array_tmp3_a1[1]; > array_tmp3_a1[4] := -array_tmp3[4] * array_tmp2[1] - array_tmp3[3] * array_tmp2[2] * 2 / 3; > #emit pre add CONST FULL $eq_no = 1 i = 4 > array_tmp4[4] := array_tmp3[4]; > #emit pre assign xxx $eq_no = 1 i = 4 $min_hdrs = 5 > if ( not array_y_set_initial[1,5]) then # if number 1 > if (4 <= glob_max_terms) then # if number 2 > temporary := array_tmp4[4] * expt(glob_h , (1)) * factorial_3(3,4); > array_y[5] := temporary; > array_y_higher[1,5] := temporary; > temporary := temporary / glob_h * (2.0); > array_y_higher[2,4] := temporary > ; > fi;# end if 2 > ; > fi;# end if 1 > ; > kkk := 5; > #END ATOMHDR4 > #BEGIN ATOMHDR5 > #emit pre asin ID_LINEAR iii = 5 $eq_no = 1 > array_tmp3[5] := - att(4,array_tmp3_a1,array_tmp3,2) / array_tmp3_a1[1]; > array_tmp3_a1[5] := -array_tmp3[5] * array_tmp2[1] - array_tmp3[4] * array_tmp2[2] * 3 / 4; > #emit pre add CONST FULL $eq_no = 1 i = 5 > array_tmp4[5] := array_tmp3[5]; > #emit pre assign xxx $eq_no = 1 i = 5 $min_hdrs = 5 > if ( not array_y_set_initial[1,6]) then # if number 1 > if (5 <= glob_max_terms) then # if number 2 > temporary := array_tmp4[5] * expt(glob_h , (1)) * factorial_3(4,5); > array_y[6] := temporary; > array_y_higher[1,6] := temporary; > temporary := temporary / glob_h * (2.0); > array_y_higher[2,5] := temporary > ; > fi;# end if 2 > ; > fi;# end if 1 > ; > kkk := 6; > #END ATOMHDR5 > #BEGIN OUTFILE3 > #Top Atomall While Loop-- outfile3 > while (kkk <= glob_max_terms) do # do number 1 > #END OUTFILE3 > #BEGIN OUTFILE4 > #emit asin ID_LINEAR $eq_no = 1 > array_tmp3[kkk] := - att(kkk-1,array_tmp3_a1,array_tmp3,2)/array_tmp3_a1[1]; > array_tmp3_a1[kkk] := -array_tmp3[kkk] * array_tmp2[1] - array_tmp3[kkk-1] * array_tmp2[2] * (kkk - 2) / (kkk - 1); > #emit NOT FULL - FULL add $eq_no = 1 > array_tmp4[kkk] := array_tmp3[kkk]; > #emit assign $eq_no = 1 > order_d := 1; > if (kkk + order_d + 1 <= glob_max_terms) then # if number 1 > if ( not array_y_set_initial[1,kkk + order_d]) then # if number 2 > temporary := array_tmp4[kkk] * expt(glob_h , (order_d)) / factorial_3((kkk - 1),(kkk + order_d - 1)); > array_y[kkk + order_d] := temporary; > array_y_higher[1,kkk + order_d] := temporary; > term := kkk + order_d - 1; > adj2 := 2; > while ((adj2 <= order_d + 1) and (term >= 1)) do # do number 2 > temporary := temporary / glob_h * convfp(adj2); > array_y_higher[adj2,term] := temporary; > adj2 := adj2 + 1; > term := term - 1; > od;# end do number 2 > fi;# end if 2 > fi;# end if 1 > ; > kkk := kkk + 1; > od;# end do number 1 > ; > #BOTTOM ATOMALL > #END OUTFILE4 > #BEGIN OUTFILE5 > > #BOTTOM ATOMALL ??? > # End Function number 8 > end; atomall := proc() local kkk, order_d, adj2, temporary, term; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; array_tmp1[1] := array_const_0D1[1]*array_x[1]; array_tmp2[1] := array_tmp1[1] + array_const_0D2[1]; array_tmp3[1] := arcsin(array_tmp2[1]); array_tmp3_a1[1] := cos(array_tmp3[1]); array_tmp4[1] := array_const_0D0[1] + array_tmp3[1]; if not array_y_set_initial[1, 2] then if 1 <= glob_max_terms then temporary := array_tmp4[1]*expt(glob_h, 1)*factorial_3(0, 1); array_y[2] := temporary; array_y_higher[1, 2] := temporary; temporary := temporary*2.0/glob_h; array_y_higher[2, 1] := temporary end if end if; kkk := 2; array_tmp1[2] := array_const_0D1[1]*array_x[2]; array_tmp2[2] := array_tmp1[2]; array_tmp3[2] := array_tmp2[2]/array_tmp3_a1[1]; array_tmp3_a1[2] := -array_tmp2[1]*array_tmp3[2]; array_tmp4[2] := array_tmp3[2]; if not array_y_set_initial[1, 3] then if 2 <= glob_max_terms then temporary := array_tmp4[2]*expt(glob_h, 1)*factorial_3(1, 2); array_y[3] := temporary; array_y_higher[1, 3] := temporary; temporary := temporary*2.0/glob_h; array_y_higher[2, 2] := temporary end if end if; kkk := 3; array_tmp3[3] := -att(2, array_tmp3_a1, array_tmp3, 2)/array_tmp3_a1[1] ; array_tmp3_a1[3] := -array_tmp3[3]*array_tmp2[1] - 1/2*array_tmp3[2]*array_tmp2[2]; array_tmp4[3] := array_tmp3[3]; if not array_y_set_initial[1, 4] then if 3 <= glob_max_terms then temporary := array_tmp4[3]*expt(glob_h, 1)*factorial_3(2, 3); array_y[4] := temporary; array_y_higher[1, 4] := temporary; temporary := temporary*2.0/glob_h; array_y_higher[2, 3] := temporary end if end if; kkk := 4; array_tmp3[4] := -att(3, array_tmp3_a1, array_tmp3, 2)/array_tmp3_a1[1] ; array_tmp3_a1[4] := -array_tmp3[4]*array_tmp2[1] - 2/3*array_tmp3[3]*array_tmp2[2]; array_tmp4[4] := array_tmp3[4]; if not array_y_set_initial[1, 5] then if 4 <= glob_max_terms then temporary := array_tmp4[4]*expt(glob_h, 1)*factorial_3(3, 4); array_y[5] := temporary; array_y_higher[1, 5] := temporary; temporary := temporary*2.0/glob_h; array_y_higher[2, 4] := temporary end if end if; kkk := 5; array_tmp3[5] := -att(4, array_tmp3_a1, array_tmp3, 2)/array_tmp3_a1[1] ; array_tmp3_a1[5] := -array_tmp3[5]*array_tmp2[1] - 3/4*array_tmp3[4]*array_tmp2[2]; array_tmp4[5] := array_tmp3[5]; if not array_y_set_initial[1, 6] then if 5 <= glob_max_terms then temporary := array_tmp4[5]*expt(glob_h, 1)*factorial_3(4, 5); array_y[6] := temporary; array_y_higher[1, 6] := temporary; temporary := temporary*2.0/glob_h; array_y_higher[2, 5] := temporary end if end if; kkk := 6; while kkk <= glob_max_terms do array_tmp3[kkk] := -att(kkk - 1, array_tmp3_a1, array_tmp3, 2)/array_tmp3_a1[1]; array_tmp3_a1[kkk] := -array_tmp3[kkk]*array_tmp2[1] - array_tmp3[kkk - 1]*array_tmp2[2]*(kkk - 2)/(kkk - 1); array_tmp4[kkk] := array_tmp3[kkk]; order_d := 1; if kkk + order_d + 1 <= glob_max_terms then if not array_y_set_initial[1, kkk + order_d] then temporary := array_tmp4[kkk]*expt(glob_h, order_d)/ factorial_3(kkk - 1, kkk + order_d - 1); array_y[kkk + order_d] := temporary; array_y_higher[1, kkk + order_d] := temporary; term := kkk + order_d - 1; adj2 := 2; while adj2 <= order_d + 1 and 1 <= term do temporary := temporary*convfp(adj2)/glob_h; array_y_higher[adj2, term] := temporary; adj2 := adj2 + 1; term := term - 1 end do end if end if; kkk := kkk + 1 end do end proc > #BEGIN ATS LIBRARY BLOCK > omniout_str := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > printf("%s\n",str); > fi; > # End Function number 1 > end; omniout_str := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s\n", str) end if end proc > omniout_str_noeol := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > printf("%s",str); > fi; > # End Function number 1 > end; omniout_str_noeol := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s", str) end if end proc > omniout_labstr := proc(iolevel,label,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > print(label,str); > fi; > # End Function number 1 > end; omniout_labstr := proc(iolevel, label, str) global glob_iolevel; if iolevel <= glob_iolevel then print(label, str) end if end proc > omniout_float := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > if vallen = 4 then > printf("%-30s = %-42.4g %s \n",prelabel,value, postlabel); > else > printf("%-30s = %-42.32g %s \n",prelabel,value, postlabel); > fi; > fi; > # End Function number 1 > end; omniout_float := proc(iolevel, prelabel, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then if vallen = 4 then printf("%-30s = %-42.4g %s \n", prelabel, value, postlabel) else printf("%-30s = %-42.32g %s \n", prelabel, value, postlabel) end if end if end proc > omniout_int := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > if vallen = 5 then > printf("%-30s = %-32d %s\n",prelabel,value, postlabel); > else > printf("%-30s = %-32d %s \n",prelabel,value, postlabel); > fi; > fi; > # End Function number 1 > end; omniout_int := proc(iolevel, prelabel, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then if vallen = 5 then printf("%-30s = %-32d %s\n", prelabel, value, postlabel) else printf("%-30s = %-32d %s \n", prelabel, value, postlabel) end if end if end proc > omniout_float_arr := proc(iolevel,prelabel,elemnt,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then > print(prelabel,"[",elemnt,"]",value, postlabel); > fi; > # End Function number 1 > end; omniout_float_arr := proc( iolevel, prelabel, elemnt, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then print(prelabel, "[", elemnt, "]", value, postlabel) end if end proc > dump_series := proc(iolevel,dump_label,series_name, > array_series,numb) > global glob_iolevel; > local i; > if (glob_iolevel >= iolevel) then > i := 1; > while (i <= numb) do > print(dump_label,series_name > ,i,array_series[i]); > i := i + 1; > od; > fi; > # End Function number 1 > end; dump_series := proc(iolevel, dump_label, series_name, array_series, numb) local i; global glob_iolevel; if iolevel <= glob_iolevel then i := 1; while i <= numb do print(dump_label, series_name, i, array_series[i]); i := i + 1 end do end if end proc > dump_series_2 := proc(iolevel,dump_label,series_name2, > array_series2,numb,subnum,array_x) > global glob_iolevel; > local i,sub,ts_term; > if (glob_iolevel >= iolevel) then > sub := 1; > while (sub <= subnum) do > i := 1; > while (i <= numb) do > print(dump_label,series_name2,sub,i,array_series2[sub,i]); > od; > sub := sub + 1; > od; > fi; > # End Function number 1 > end; dump_series_2 := proc( iolevel, dump_label, series_name2, array_series2, numb, subnum, array_x) local i, sub, ts_term; global glob_iolevel; if iolevel <= glob_iolevel then sub := 1; while sub <= subnum do i := 1; while i <= numb do print(dump_label, series_name2, sub, i, array_series2[sub, i]) end do; sub := sub + 1 end do end if end proc > cs_info := proc(iolevel,str) > global glob_iolevel,glob_correct_start_flag,glob_h,glob_reached_optimal_h; > if (glob_iolevel >= iolevel) then > print("cs_info " , str , " glob_correct_start_flag = " , glob_correct_start_flag , "glob_h := " , glob_h , "glob_reached_optimal_h := " , glob_reached_optimal_h) > fi; > # End Function number 1 > end; cs_info := proc(iolevel, str) global glob_iolevel, glob_correct_start_flag, glob_h, glob_reached_optimal_h; if iolevel <= glob_iolevel then print("cs_info ", str, " glob_correct_start_flag = ", glob_correct_start_flag, "glob_h := ", glob_h, "glob_reached_optimal_h := ", glob_reached_optimal_h) end if end proc > # Begin Function number 2 > logitem_time := proc(fd,secs_in) > global centuries_in_millinium, days_in_year, hours_in_day, min_in_hour, sec_in_minute, years_in_century; > local cent_int, centuries, days, days_int, hours, hours_int, millinium_int, milliniums, minutes, minutes_int, sec_in_millinium, sec_int, seconds, secs, years, years_int; > secs := (secs_in); > if (secs >= 0.0) then # if number 1 > sec_in_millinium := convfloat(sec_in_minute * min_in_hour * hours_in_day * days_in_year * years_in_century * centuries_in_millinium); > milliniums := convfloat(secs / sec_in_millinium); > millinium_int := floor(milliniums); > centuries := (milliniums - millinium_int)*centuries_in_millinium; > cent_int := floor(centuries); > years := (centuries - cent_int) * years_in_century; > years_int := floor(years); > days := (years - years_int) * days_in_year; > days_int := floor(days); > hours := (days - days_int) * hours_in_day; > hours_int := floor(hours); > minutes := (hours - hours_int) * min_in_hour; > minutes_int := floor(minutes); > seconds := (minutes - minutes_int) * sec_in_minute; > sec_int := floor(seconds); > fprintf(fd,""); > if (millinium_int > 0) then # if number 2 > fprintf(fd,"%d Millinia %d Centuries %d Years %d Days %d Hours %d Minutes %d Seconds",millinium_int,cent_int,years_int,days_int,hours_int,minutes_int,sec_int); > elif (cent_int > 0) then # if number 3 > fprintf(fd,"%d Centuries %d Years %d Days %d Hours %d Minutes %d Seconds",cent_int,years_int,days_int,hours_int,minutes_int,sec_int); > elif (years_int > 0) then # if number 4 > fprintf(fd,"%d Years %d Days %d Hours %d Minutes %d Seconds",years_int,days_int,hours_int,minutes_int,sec_int); > elif (days_int > 0) then # if number 5 > fprintf(fd,"%d Days %d Hours %d Minutes %d Seconds",days_int,hours_int,minutes_int,sec_int); > elif (hours_int > 0) then # if number 6 > fprintf(fd,"%d Hours %d Minutes %d Seconds",hours_int,minutes_int,sec_int); > elif (minutes_int > 0) then # if number 7 > fprintf(fd,"%d Minutes %d Seconds",minutes_int,sec_int); > else > fprintf(fd,"%d Seconds",sec_int); > fi;# end if 7 > else > fprintf(fd,"Unknown"); > fi;# end if 6 > fprintf(fd,""); > # End Function number 2 > end; logitem_time := proc(fd, secs_in) local cent_int, centuries, days, days_int, hours, hours_int, millinium_int, milliniums, minutes, minutes_int, sec_in_millinium, sec_int, seconds, secs, years, years_int; global centuries_in_millinium, days_in_year, hours_in_day, min_in_hour, sec_in_minute, years_in_century; secs := secs_in; if 0. <= secs then sec_in_millinium := convfloat(sec_in_minute*min_in_hour* hours_in_day*days_in_year*years_in_century* centuries_in_millinium); milliniums := convfloat(secs/sec_in_millinium); millinium_int := floor(milliniums); centuries := (milliniums - millinium_int)*centuries_in_millinium; cent_int := floor(centuries); years := (centuries - cent_int)*years_in_century; years_int := floor(years); days := (years - years_int)*days_in_year; days_int := floor(days); hours := (days - days_int)*hours_in_day; hours_int := floor(hours); minutes := (hours - hours_int)*min_in_hour; minutes_int := floor(minutes); seconds := (minutes - minutes_int)*sec_in_minute; sec_int := floor(seconds); fprintf(fd, ""); if 0 < millinium_int then fprintf(fd, "%d Millinia %d Centuries %\ d Years %d Days %d Hours %d Minutes %d Seconds", millinium_int, cent_int, years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < cent_int then fprintf(fd, "%d Centuries %d Years %d Days %d Hours %d Minutes %d Seconds", cent_int, years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < years_int then fprintf(fd, "%d Years %d Days %d Hours %d Minutes %d Seconds", years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < days_int then fprintf(fd, "%d Days %d Hours %d Minutes %d Seconds", days_int, hours_int, minutes_int, sec_int) elif 0 < hours_int then fprintf(fd, "%d Hours %d Minutes %d Seconds", hours_int, minutes_int, sec_int) elif 0 < minutes_int then fprintf(fd, "%d Minutes %d Seconds", minutes_int, sec_int) else fprintf(fd, "%d Seconds", sec_int) end if else fprintf(fd, "Unknown") end if; fprintf(fd, "") end proc > omniout_timestr := proc (secs_in) > global centuries_in_millinium, days_in_year, hours_in_day, min_in_hour, sec_in_minute, years_in_century; > local cent_int, centuries, days, days_int, hours, hours_int, millinium_int, milliniums, minutes, minutes_int, sec_in_millinium, sec_int, seconds, secs, years, years_int; > secs := convfloat(secs_in); > if (secs >= 0.0) then # if number 6 > sec_in_millinium := convfloat(sec_in_minute * min_in_hour * hours_in_day * days_in_year * years_in_century * centuries_in_millinium); > milliniums := convfloat(secs / sec_in_millinium); > millinium_int := floor(milliniums); > centuries := (milliniums - millinium_int)*centuries_in_millinium; > cent_int := floor(centuries); > years := (centuries - cent_int) * years_in_century; > years_int := floor(years); > days := (years - years_int) * days_in_year; > days_int := floor(days); > hours := (days - days_int) * hours_in_day; > hours_int := floor(hours); > minutes := (hours - hours_int) * min_in_hour; > minutes_int := floor(minutes); > seconds := (minutes - minutes_int) * sec_in_minute; > sec_int := floor(seconds); > > if (millinium_int > 0) then # if number 7 > printf(" = %d Millinia %d Centuries %d Years %d Days %d Hours %d Minutes %d Seconds\n",millinium_int,cent_int,years_int,days_int,hours_int,minutes_int,sec_int); > elif (cent_int > 0) then # if number 8 > printf(" = %d Centuries %d Years %d Days %d Hours %d Minutes %d Seconds\n",cent_int,years_int,days_int,hours_int,minutes_int,sec_int); > elif (years_int > 0) then # if number 9 > printf(" = %d Years %d Days %d Hours %d Minutes %d Seconds\n",years_int,days_int,hours_int,minutes_int,sec_int); > elif (days_int > 0) then # if number 10 > printf(" = %d Days %d Hours %d Minutes %d Seconds\n",days_int,hours_int,minutes_int,sec_int); > elif (hours_int > 0) then # if number 11 > printf(" = %d Hours %d Minutes %d Seconds\n",hours_int,minutes_int,sec_int); > elif (minutes_int > 0) then # if number 12 > printf(" = %d Minutes %d Seconds\n",minutes_int,sec_int); > else > printf(" = %d Seconds\n",sec_int); > fi;# end if 12 > else > printf(" Unknown\n"); > fi;# end if 11 > # End Function number 2 > end; omniout_timestr := proc(secs_in) local cent_int, centuries, days, days_int, hours, hours_int, millinium_int, milliniums, minutes, minutes_int, sec_in_millinium, sec_int, seconds, secs, years, years_int; global centuries_in_millinium, days_in_year, hours_in_day, min_in_hour, sec_in_minute, years_in_century; secs := convfloat(secs_in); if 0. <= secs then sec_in_millinium := convfloat(sec_in_minute*min_in_hour* hours_in_day*days_in_year*years_in_century* centuries_in_millinium); milliniums := convfloat(secs/sec_in_millinium); millinium_int := floor(milliniums); centuries := (milliniums - millinium_int)*centuries_in_millinium; cent_int := floor(centuries); years := (centuries - cent_int)*years_in_century; years_int := floor(years); days := (years - years_int)*days_in_year; days_int := floor(days); hours := (days - days_int)*hours_in_day; hours_int := floor(hours); minutes := (hours - hours_int)*min_in_hour; minutes_int := floor(minutes); seconds := (minutes - minutes_int)*sec_in_minute; sec_int := floor(seconds); if 0 < millinium_int then printf(" = %d Millinia %d Centuries %d\ Years %d Days %d Hours %d Minutes %d Seconds\n", millinium_int, cent_int, years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < cent_int then printf(" = %d Centuries %d Years %d Days \ %d Hours %d Minutes %d Seconds\n", cent_int, years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < years_int then printf( " = %d Years %d Days %d Hours %d Minutes %d Seconds\n", years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < days_int then printf( " = %d Days %d Hours %d Minutes %d Seconds\n", days_int, hours_int, minutes_int, sec_int) elif 0 < hours_int then printf( " = %d Hours %d Minutes %d Seconds\n", hours_int, minutes_int, sec_int) elif 0 < minutes_int then printf(" = %d Minutes %d Seconds\n", minutes_int, sec_int) else printf(" = %d Seconds\n", sec_int) end if else printf(" Unknown\n") end if end proc > # Begin Function number 3 > ats := proc( > mmm_ats,array_a,array_b,jjj_ats) > local iii_ats, lll_ats,ma_ats, ret_ats; > > > > > > ret_ats := 0.0; > if (jjj_ats <= mmm_ats) then # if number 11 > ma_ats := mmm_ats + 1; > iii_ats := jjj_ats; > while (iii_ats <= mmm_ats) do # do number 1 > lll_ats := ma_ats - iii_ats; > ret_ats := ret_ats + array_a[iii_ats]*array_b[lll_ats]; > iii_ats := iii_ats + 1; > od;# end do number 1 > fi;# end if 11 > ; > ret_ats; > > # End Function number 3 > end; ats := proc(mmm_ats, array_a, array_b, jjj_ats) local iii_ats, lll_ats, ma_ats, ret_ats; ret_ats := 0.; if jjj_ats <= mmm_ats then ma_ats := mmm_ats + 1; iii_ats := jjj_ats; while iii_ats <= mmm_ats do lll_ats := ma_ats - iii_ats; ret_ats := ret_ats + array_a[iii_ats]*array_b[lll_ats]; iii_ats := iii_ats + 1 end do end if; ret_ats end proc > # Begin Function number 4 > att := proc( > mmm_att,array_aa,array_bb,jjj_att) > global glob_max_terms; > local al_att, iii_att,lll_att, ma_att, ret_att; > > > > > > ret_att := 0.0; > if (jjj_att <= mmm_att) then # if number 11 > ma_att := mmm_att + 2; > iii_att := jjj_att; > while (iii_att <= mmm_att) do # do number 1 > lll_att := ma_att - iii_att; > al_att := (lll_att - 1); > if (lll_att <= glob_max_terms) then # if number 12 > ret_att := ret_att + array_aa[iii_att]*array_bb[lll_att]* convfp(al_att); > fi;# end if 12 > ; > iii_att := iii_att + 1; > od;# end do number 1 > ; > ret_att := ret_att / convfp(mmm_att) ; > fi;# end if 11 > ; > ret_att; > > # End Function number 4 > end; att := proc(mmm_att, array_aa, array_bb, jjj_att) local al_att, iii_att, lll_att, ma_att, ret_att; global glob_max_terms; ret_att := 0.; if jjj_att <= mmm_att then ma_att := mmm_att + 2; iii_att := jjj_att; while iii_att <= mmm_att do lll_att := ma_att - iii_att; al_att := lll_att - 1; if lll_att <= glob_max_terms then ret_att := ret_att + array_aa[iii_att]*array_bb[lll_att]*convfp(al_att) end if; iii_att := iii_att + 1 end do; ret_att := ret_att/convfp(mmm_att) end if; ret_att end proc > # Begin Function number 5 > display_pole := proc() > global ALWAYS,glob_display_flag, glob_large_float, array_pole; > if ((array_pole[1] <> glob_large_float) and (array_pole[1] > 0.0) and (array_pole[2] <> glob_large_float) and (array_pole[2]> 0.0) and glob_display_flag) then # if number 11 > omniout_float(ALWAYS,"Radius of convergence ",4, array_pole[1],4," "); > omniout_float(ALWAYS,"Order of pole ",4, array_pole[2],4," "); > fi;# end if 11 > # End Function number 5 > end; display_pole := proc() global ALWAYS, glob_display_flag, glob_large_float, array_pole; if array_pole[1] <> glob_large_float and 0. < array_pole[1] and array_pole[2] <> glob_large_float and 0. < array_pole[2] and glob_display_flag then omniout_float(ALWAYS, "Radius of convergence ", 4, array_pole[1], 4, " "); omniout_float(ALWAYS, "Order of pole ", 4, array_pole[2], 4, " ") end if end proc > # Begin Function number 6 > logditto := proc(file) > fprintf(file,""); > fprintf(file,"ditto"); > fprintf(file,""); > # End Function number 6 > end; logditto := proc(file) fprintf(file, ""); fprintf(file, "ditto"); fprintf(file, "") end proc > # Begin Function number 7 > logitem_integer := proc(file,n) > fprintf(file,""); > fprintf(file,"%d",n); > fprintf(file,""); > # End Function number 7 > end; logitem_integer := proc(file, n) fprintf(file, ""); fprintf(file, "%d", n); fprintf(file, "") end proc > # Begin Function number 8 > logitem_str := proc(file,str) > fprintf(file,""); > fprintf(file,str); > fprintf(file,""); > # End Function number 8 > end; logitem_str := proc(file, str) fprintf(file, ""); fprintf(file, str); fprintf(file, "") end proc > # Begin Function number 9 > log_revs := proc(file,revs) > fprintf(file,revs); > # End Function number 9 > end; log_revs := proc(file, revs) fprintf(file, revs) end proc > # Begin Function number 10 > logitem_float := proc(file,x) > fprintf(file,""); > fprintf(file,"%g",x); > fprintf(file,""); > # End Function number 10 > end; logitem_float := proc(file, x) fprintf(file, ""); fprintf(file, "%g", x); fprintf(file, "") end proc > # Begin Function number 11 > logitem_pole := proc(file,pole) > fprintf(file,""); > if (pole = 0) then # if number 11 > fprintf(file,"NA"); > elif (pole = 1) then # if number 12 > fprintf(file,"Real"); > elif (pole = 2) then # if number 13 > fprintf(file,"Complex"); > else > fprintf(file,"No Pole"); > fi;# end if 13 > fprintf(file,""); > # End Function number 11 > end; logitem_pole := proc(file, pole) fprintf(file, ""); if pole = 0 then fprintf(file, "NA") elif pole = 1 then fprintf(file, "Real") elif pole = 2 then fprintf(file, "Complex") else fprintf(file, "No Pole") end if; fprintf(file, "") end proc > # Begin Function number 12 > logstart := proc(file) > fprintf(file,""); > # End Function number 12 > end; logstart := proc(file) fprintf(file, "") end proc > # Begin Function number 13 > logend := proc(file) > fprintf(file,"\n"); > # End Function number 13 > end; logend := proc(file) fprintf(file, "\n") end proc > # Begin Function number 14 > chk_data := proc() > global glob_max_iter,ALWAYS, glob_max_terms; > local errflag; > > > > errflag := false; > > if ((glob_max_terms < 15) or (glob_max_terms > 512)) then # if number 13 > omniout_str(ALWAYS,"Illegal max_terms = -- Using 30"); > glob_max_terms := 30; > fi;# end if 13 > ; > if (glob_max_iter < 2) then # if number 13 > omniout_str(ALWAYS,"Illegal max_iter"); > errflag := true; > fi;# end if 13 > ; > if (errflag) then # if number 13 > > quit; > fi;# end if 13 > > # End Function number 14 > end; chk_data := proc() local errflag; global glob_max_iter, ALWAYS, glob_max_terms; errflag := false; if glob_max_terms < 15 or 512 < glob_max_terms then omniout_str(ALWAYS, "Illegal max_terms = -- Using 30"); glob_max_terms := 30 end if; if glob_max_iter < 2 then omniout_str(ALWAYS, "Illegal max_iter"); errflag := true end if; if errflag then quit end if end proc > # Begin Function number 15 > comp_expect_sec := proc(t_end2,t_start2,t2,clock_sec2) > global glob_small_float; > local ms2, rrr, sec_left, sub1, sub2; > > > > ; > ms2 := clock_sec2; > sub1 := (t_end2-t_start2); > sub2 := (t2-t_start2); > if (sub1 = 0.0) then # if number 13 > sec_left := 0.0; > else > if (sub2 > 0.0) then # if number 14 > rrr := (sub1/sub2); > sec_left := rrr * ms2 - ms2; > else > sec_left := 0.0; > fi;# end if 14 > fi;# end if 13 > ; > sec_left; > > # End Function number 15 > end; comp_expect_sec := proc(t_end2, t_start2, t2, clock_sec2) local ms2, rrr, sec_left, sub1, sub2; global glob_small_float; ms2 := clock_sec2; sub1 := t_end2 - t_start2; sub2 := t2 - t_start2; if sub1 = 0. then sec_left := 0. else if 0. < sub2 then rrr := sub1/sub2; sec_left := rrr*ms2 - ms2 else sec_left := 0. end if end if; sec_left end proc > # Begin Function number 16 > comp_percent := proc(t_end2,t_start2, t2) > global glob_small_float; > local rrr, sub1, sub2; > > > > sub1 := (t_end2-t_start2); > sub2 := (t2-t_start2); > if (sub2 > glob_small_float) then # if number 13 > rrr := (100.0*sub2)/sub1; > else > rrr := 0.0; > fi;# end if 13 > ; > rrr; > > # End Function number 16 > end; comp_percent := proc(t_end2, t_start2, t2) local rrr, sub1, sub2; global glob_small_float; sub1 := t_end2 - t_start2; sub2 := t2 - t_start2; if glob_small_float < sub2 then rrr := 100.0*sub2/sub1 else rrr := 0. end if; rrr end proc > # Begin Function number 17 > factorial_2 := proc(nnn) > local ret; > > > > ret := nnn!; > > # End Function number 17 > end; factorial_2 := proc(nnn) local ret; ret := nnn! end proc > # Begin Function number 18 > factorial_1 := proc(nnn) > global glob_max_terms,array_fact_1; > local ret; > > > > if (nnn <= glob_max_terms) then # if number 13 > if (array_fact_1[nnn] = 0) then # if number 14 > ret := factorial_2(nnn); > array_fact_1[nnn] := ret; > else > ret := array_fact_1[nnn]; > fi;# end if 14 > ; > else > ret := factorial_2(nnn); > fi;# end if 13 > ; > ret; > > # End Function number 18 > end; factorial_1 := proc(nnn) local ret; global glob_max_terms, array_fact_1; if nnn <= glob_max_terms then if array_fact_1[nnn] = 0 then ret := factorial_2(nnn); array_fact_1[nnn] := ret else ret := array_fact_1[nnn] end if else ret := factorial_2(nnn) end if; ret end proc > # Begin Function number 19 > factorial_3 := proc(mmm,nnn) > global glob_max_terms,array_fact_2; > local ret; > > > > if ((nnn <= glob_max_terms) and (mmm <= glob_max_terms)) then # if number 13 > if (array_fact_2[mmm,nnn] = 0) then # if number 14 > ret := factorial_1(mmm)/factorial_1(nnn); > array_fact_2[mmm,nnn] := ret; > else > ret := array_fact_2[mmm,nnn]; > fi;# end if 14 > ; > else > ret := factorial_2(mmm)/factorial_2(nnn); > fi;# end if 13 > ; > ret; > > # End Function number 19 > end; factorial_3 := proc(mmm, nnn) local ret; global glob_max_terms, array_fact_2; if nnn <= glob_max_terms and mmm <= glob_max_terms then if array_fact_2[mmm, nnn] = 0 then ret := factorial_1(mmm)/factorial_1(nnn); array_fact_2[mmm, nnn] := ret else ret := array_fact_2[mmm, nnn] end if else ret := factorial_2(mmm)/factorial_2(nnn) end if; ret end proc > # Begin Function number 20 > convfp := proc(mmm) > (mmm); > > # End Function number 20 > end; convfp := proc(mmm) mmm end proc > # Begin Function number 21 > convfloat := proc(mmm) > (mmm); > > # End Function number 21 > end; convfloat := proc(mmm) mmm end proc > elapsed_time_seconds := proc() > time(); > end; elapsed_time_seconds := proc() time() end proc > > > > > > > > > > > > > > > > > > omniabs := proc(x) > abs(x); > end; omniabs := proc(x) abs(x) end proc > expt := proc(x,y) > (x^y); > end; expt := proc(x, y) x^y end proc > #END ATS LIBRARY BLOCK > #BEGIN USER DEF BLOCK > #BEGIN USER DEF BLOCK > exact_soln_y := proc(x) > return(10.0 * (0.1 * x + 0.2) * arcsin(0.1 * x + 0.2 ) + 10.0 * sqrt(1.0 - > expt((0.1 * x + 0.2) , 2 ))); > end; exact_soln_y := proc(x) return 10.0*(0.1*x + 0.2)*arcsin(0.1*x + 0.2) + 10.0*sqrt(1.0 - expt(0.1*x + 0.2, 2)) end proc > > #END USER DEF BLOCK > #END USER DEF BLOCK > #END OUTFILE5 > # Begin Function number 2 > main := proc() > #BEGIN OUTFIEMAIN > local d1,d2,d3,d4,est_err_2,niii,done_once, > term,ord,order_diff,term_no,html_log_file,iiif,jjjf, > rows,r_order,sub_iter,calc_term,iii,temp_sum,current_iter, > x_start,x_end > ,it, log10norm, max_terms, opt_iter, tmp,subiter; > global > glob_iolevel, > ALWAYS, > DEBUGL, > glob_max_terms, > DEBUGMASSIVE, > INFO, > #Top Generate Globals Decl > glob_max_minutes, > glob_max_iter, > glob_relerr, > glob_normmax, > days_in_year, > djd_debug2, > glob_small_float, > glob_log10_relerr, > glob_last_good_h, > glob_h, > glob_log10relerr, > glob_unchanged_h_cnt, > glob_abserr, > glob_reached_optimal_h, > centuries_in_millinium, > glob_max_opt_iter, > glob_log10normmin, > glob_iter, > glob_max_rel_trunc_err, > glob_hmin, > glob_optimal_done, > glob_clock_start_sec, > years_in_century, > hours_in_day, > glob_dump, > glob_html_log, > glob_optimal_expect_sec, > glob_optimal_clock_start_sec, > sec_in_minute, > glob_display_flag, > glob_subiter_method, > glob_curr_iter_when_opt, > glob_start, > glob_orig_start_sec, > glob_max_trunc_err, > glob_max_hours, > glob_log10_abserr, > glob_large_float, > min_in_hour, > glob_percent_done, > glob_log10abserr, > glob_max_sec, > glob_initial_pass, > glob_not_yet_finished, > glob_clock_sec, > glob_almost_1, > djd_debug, > MAX_UNCHANGED, > glob_current_iter, > glob_warned, > glob_smallish_float, > glob_optimal_start, > glob_hmax, > glob_disp_incr, > glob_warned2, > glob_no_eqs, > glob_dump_analytic, > glob_look_poles, > glob_hmin_init, > glob_not_yet_start_msg, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D2, > array_const_0D1, > array_const_0D0, > #END CONST > array_y_init, > array_last_rel_error, > array_m1, > array_pole, > array_type_pole, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_norms, > array_y, > array_x, > array_tmp3_a1, > array_1st_rel_error, > array_fact_1, > array_y_higher, > array_real_pole, > array_poles, > array_y_higher_work2, > array_complex_pole, > array_y_set_initial, > array_y_higher_work, > array_fact_2, > glob_last; > glob_last; > ALWAYS := 1; > INFO := 2; > DEBUGL := 3; > DEBUGMASSIVE := 4; > glob_iolevel := INFO; > glob_iolevel := 5; > ALWAYS := 1; > DEBUGL := 3; > glob_max_terms := 30; > DEBUGMASSIVE := 4; > INFO := 2; > glob_max_minutes := 0.0; > glob_max_iter := 1000; > glob_relerr := 0.1e-10; > glob_normmax := 0.0; > days_in_year := 365; > djd_debug2 := true; > glob_small_float := 0.1e-50; > glob_log10_relerr := 0.1e-10; > glob_last_good_h := 0.1; > glob_h := 0.1; > glob_log10relerr := 0.0; > glob_unchanged_h_cnt := 0; > glob_abserr := 0.1e-10; > glob_reached_optimal_h := false; > centuries_in_millinium := 10; > glob_max_opt_iter := 10; > glob_log10normmin := 0.1; > glob_iter := 0; > glob_max_rel_trunc_err := 0.1e-10; > glob_hmin := 0.00000000001; > glob_optimal_done := false; > glob_clock_start_sec := 0.0; > years_in_century := 100; > hours_in_day := 24; > glob_dump := false; > glob_html_log := true; > glob_optimal_expect_sec := 0.1; > glob_optimal_clock_start_sec := 0.0; > sec_in_minute := 60; > glob_display_flag := true; > glob_subiter_method := 3; > glob_curr_iter_when_opt := 0; > glob_start := 0; > glob_orig_start_sec := 0.0; > glob_max_trunc_err := 0.1e-10; > glob_max_hours := 0.0; > glob_log10_abserr := 0.1e-10; > glob_large_float := 9.0e100; > min_in_hour := 60; > glob_percent_done := 0.0; > glob_log10abserr := 0.0; > glob_max_sec := 10000.0; > glob_initial_pass := true; > glob_not_yet_finished := true; > glob_clock_sec := 0.0; > glob_almost_1 := 0.9990; > djd_debug := true; > MAX_UNCHANGED := 10; > glob_current_iter := 0; > glob_warned := false; > glob_smallish_float := 0.1e-100; > glob_optimal_start := 0.0; > glob_hmax := 1.0; > glob_disp_incr := 0.1; > glob_warned2 := false; > glob_no_eqs := 0; > glob_dump_analytic := false; > glob_look_poles := false; > glob_hmin_init := 0.001; > glob_not_yet_start_msg := true; > #Write Set Defaults > glob_orig_start_sec := elapsed_time_seconds(); > MAX_UNCHANGED := 10; > glob_curr_iter_when_opt := 0; > glob_display_flag := true; > glob_no_eqs := 1; > glob_iter := -1; > opt_iter := -1; > glob_max_iter := 50000; > glob_max_hours := 0.0; > glob_max_minutes := 15.0; > omniout_str(ALWAYS,"##############ECHO OF PROBLEM#################"); > omniout_str(ALWAYS,"##############temp/lin_arcsinpostode.ode#################"); > omniout_str(ALWAYS,"diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#BEGIN FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"max_terms := 30;"); > omniout_str(ALWAYS,"Digits := 32;"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#END FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"x_start := -0.8;"); > omniout_str(ALWAYS,"x_end := 0.8 ;"); > omniout_str(ALWAYS,"array_y_init[0 + 1] := exact_soln_y(x_start);"); > omniout_str(ALWAYS,"glob_h := 0.00001 ;"); > omniout_str(ALWAYS,"glob_look_poles := true;"); > omniout_str(ALWAYS,"glob_max_iter := 100;"); > omniout_str(ALWAYS,"#END SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN OVERRIDE BLOCK"); > omniout_str(ALWAYS,"glob_h := 0.00001 ;"); > omniout_str(ALWAYS,"glob_look_poles := true;"); > omniout_str(ALWAYS,"glob_max_iter := 100;"); > omniout_str(ALWAYS,"glob_max_minutes := 1;"); > omniout_str(ALWAYS,"#END OVERRIDE BLOCK"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#BEGIN USER DEF BLOCK"); > omniout_str(ALWAYS,"exact_soln_y := proc(x)"); > omniout_str(ALWAYS,"return(10.0 * (0.1 * x + 0.2) * arcsin(0.1 * x + 0.2 ) + 10.0 * sqrt(1.0 -"); > omniout_str(ALWAYS,"expt((0.1 * x + 0.2) , 2 )));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,"#END USER DEF BLOCK"); > omniout_str(ALWAYS,"#######END OF ECHO OF PROBLEM#################"); > glob_unchanged_h_cnt := 0; > glob_warned := false; > glob_warned2 := false; > glob_small_float := 1.0e-200; > glob_smallish_float := 1.0e-64; > glob_large_float := 1.0e100; > glob_almost_1 := 0.99; > glob_log10_abserr := -8.0; > glob_log10_relerr := -8.0; > glob_hmax := 0.01; > #BEGIN FIRST INPUT BLOCK > #BEGIN FIRST INPUT BLOCK > max_terms := 30; > Digits := 32; > #END FIRST INPUT BLOCK > #START OF INITS AFTER INPUT BLOCK > glob_max_terms := max_terms; > glob_html_log := true; > #END OF INITS AFTER INPUT BLOCK > array_y_init:= Array(0..(max_terms + 1),[]); > array_last_rel_error:= Array(0..(max_terms + 1),[]); > array_m1:= Array(0..(max_terms + 1),[]); > array_pole:= Array(0..(max_terms + 1),[]); > array_type_pole:= Array(0..(max_terms + 1),[]); > array_tmp0:= Array(0..(max_terms + 1),[]); > array_tmp1:= Array(0..(max_terms + 1),[]); > array_tmp2:= Array(0..(max_terms + 1),[]); > array_tmp3:= Array(0..(max_terms + 1),[]); > array_tmp4:= Array(0..(max_terms + 1),[]); > array_norms:= Array(0..(max_terms + 1),[]); > array_y:= Array(0..(max_terms + 1),[]); > array_x:= Array(0..(max_terms + 1),[]); > array_tmp3_a1:= Array(0..(max_terms + 1),[]); > array_1st_rel_error:= Array(0..(max_terms + 1),[]); > array_fact_1:= Array(0..(max_terms + 1),[]); > array_y_higher := Array(0..(2+ 1) ,(0..max_terms+ 1),[]); > array_real_pole := Array(0..(1+ 1) ,(0..3+ 1),[]); > array_poles := Array(0..(1+ 1) ,(0..3+ 1),[]); > array_y_higher_work2 := Array(0..(2+ 1) ,(0..max_terms+ 1),[]); > array_complex_pole := Array(0..(1+ 1) ,(0..3+ 1),[]); > array_y_set_initial := Array(0..(2+ 1) ,(0..max_terms+ 1),[]); > array_y_higher_work := Array(0..(2+ 1) ,(0..max_terms+ 1),[]); > array_fact_2 := Array(0..(max_terms+ 1) ,(0..max_terms+ 1),[]); > term := 1; > while (term <= max_terms) do # do number 2 > array_y_init[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_last_rel_error[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_m1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_pole[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_type_pole[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp0[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp2[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp3[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp4[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_norms[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_y[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_x[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp3_a1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_1st_rel_error[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > term := 1; > while (term <= max_terms) do # do number 2 > array_fact_1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=2) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_y_higher[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=1) do # do number 2 > term := 1; > while (term <= 3) do # do number 3 > array_real_pole[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=1) do # do number 2 > term := 1; > while (term <= 3) do # do number 3 > array_poles[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=2) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_y_higher_work2[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=1) do # do number 2 > term := 1; > while (term <= 3) do # do number 3 > array_complex_pole[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=2) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_y_set_initial[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=2) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_y_higher_work[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > ord := 1; > while (ord <=max_terms) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_fact_2[ord,term] := 0.0; > term := term + 1; > od;# end do number 3 > ; > ord := ord + 1; > od;# end do number 2 > ; > #BEGIN ARRAYS DEFINED AND INITIALIZATED > array_tmp4 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp4[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_tmp3 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp3[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_tmp2 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp2[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_tmp1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_tmp0 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp0[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_tmp3_a1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp3_a1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_x := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_x[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_y := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_y[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_const_1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_const_1[1] := 1; > array_const_0D2 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_0D2[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_const_0D2[1] := 0.2; > array_const_0D1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_0D1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_const_0D1[1] := 0.1; > array_const_0D0 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_0D0[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_const_0D0[1] := 0.0; > array_m1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms) do # do number 2 > array_m1[term] := 0.0; > term := term + 1; > od;# end do number 2 > ; > array_m1[1] := -1.0; > #END ARRAYS DEFINED AND INITIALIZATED > #Initing Factorial Tables > iiif := 0; > while (iiif <= glob_max_terms) do # do number 2 > jjjf := 0; > while (jjjf <= glob_max_terms) do # do number 3 > array_fact_1[iiif] := 0; > array_fact_2[iiif,jjjf] := 0; > jjjf := jjjf + 1; > od;# end do number 3 > ; > iiif := iiif + 1; > od;# end do number 2 > ; > #Done Initing Factorial Tables > #TOP SECOND INPUT BLOCK > #BEGIN SECOND INPUT BLOCK > #END FIRST INPUT BLOCK > #BEGIN SECOND INPUT BLOCK > x_start := -0.8; > x_end := 0.8 ; > array_y_init[0 + 1] := exact_soln_y(x_start); > glob_h := 0.00001 ; > glob_look_poles := true; > glob_max_iter := 100; > #END SECOND INPUT BLOCK > #BEGIN OVERRIDE BLOCK > glob_h := 0.00001 ; > glob_look_poles := true; > glob_max_iter := 100; > glob_max_minutes := 1; > #END OVERRIDE BLOCK > #END SECOND INPUT BLOCK > #BEGIN INITS AFTER SECOND INPUT BLOCK > glob_last_good_h := glob_h; > glob_max_terms := max_terms; > glob_max_sec := convfloat(60.0) * convfloat(glob_max_minutes) + convfloat(3600.0) * convfloat(glob_max_hours); > glob_abserr := expt(10.0 , (glob_log10_abserr)); > glob_relerr := expt(10.0 , (glob_log10_relerr)); > chk_data(); > #AFTER INITS AFTER SECOND INPUT BLOCK > array_y_set_initial[1,1] := true; > array_y_set_initial[1,2] := false; > array_y_set_initial[1,3] := false; > array_y_set_initial[1,4] := false; > array_y_set_initial[1,5] := false; > array_y_set_initial[1,6] := false; > array_y_set_initial[1,7] := false; > array_y_set_initial[1,8] := false; > array_y_set_initial[1,9] := false; > array_y_set_initial[1,10] := false; > array_y_set_initial[1,11] := false; > array_y_set_initial[1,12] := false; > array_y_set_initial[1,13] := false; > array_y_set_initial[1,14] := false; > array_y_set_initial[1,15] := false; > array_y_set_initial[1,16] := false; > array_y_set_initial[1,17] := false; > array_y_set_initial[1,18] := false; > array_y_set_initial[1,19] := false; > array_y_set_initial[1,20] := false; > array_y_set_initial[1,21] := false; > array_y_set_initial[1,22] := false; > array_y_set_initial[1,23] := false; > array_y_set_initial[1,24] := false; > array_y_set_initial[1,25] := false; > array_y_set_initial[1,26] := false; > array_y_set_initial[1,27] := false; > array_y_set_initial[1,28] := false; > array_y_set_initial[1,29] := false; > array_y_set_initial[1,30] := false; > if (glob_html_log) then # if number 2 > html_log_file := fopen("html/entry.html",WRITE,TEXT); > fi;# end if 2 > ; > #BEGIN SOLUTION CODE > omniout_str(ALWAYS,"START of Soultion"); > #Start Series -- INITIALIZE FOR SOLUTION > array_x[1] := x_start; > array_x[2] := glob_h; > order_diff := 1; > #Start Series array_y > term_no := 1; > while (term_no <= order_diff) do # do number 2 > array_y[term_no] := array_y_init[term_no] * expt(glob_h , (term_no - 1)) / factorial_1(term_no - 1); > term_no := term_no + 1; > od;# end do number 2 > ; > rows := order_diff; > r_order := 1; > while (r_order <= rows) do # do number 2 > term_no := 1; > while (term_no <= (rows - r_order + 1)) do # do number 3 > it := term_no + r_order - 1; > array_y_higher[r_order,term_no] := array_y_init[it]* expt(glob_h , (term_no - 1)) / ((factorial_1(term_no - 1))); > term_no := term_no + 1; > od;# end do number 3 > ; > r_order := r_order + 1; > od;# end do number 2 > ; > current_iter := 1; > glob_clock_start_sec := elapsed_time_seconds(); > if (omniabs(array_y_higher[1,1]) > glob_small_float) then # if number 2 > tmp := omniabs(array_y_higher[1,1]); > log10norm := (log10(tmp)); > if (log10norm < glob_log10normmin) then # if number 3 > glob_log10normmin := log10norm; > fi;# end if 3 > fi;# end if 2 > ; > display_alot(current_iter) > ; > glob_clock_sec := elapsed_time_seconds(); > glob_current_iter := 0; > glob_iter := 0; > omniout_str(DEBUGL," "); > glob_reached_optimal_h := true; > glob_optimal_clock_start_sec := elapsed_time_seconds(); > while ((glob_current_iter < glob_max_iter) and (array_x[1] <= x_end ) and ((convfloat(glob_clock_sec) - convfloat(glob_orig_start_sec)) < convfloat(glob_max_sec))) do # do number 2 > #left paren 0001C > omniout_str(INFO," "); > omniout_str(INFO,"TOP MAIN SOLVE Loop"); > glob_iter := glob_iter + 1; > glob_clock_sec := elapsed_time_seconds(); > glob_current_iter := glob_current_iter + 1; > atomall(); > if (glob_look_poles) then # if number 2 > #left paren 0004C > check_for_pole(); > fi;# end if 2 > ;#was right paren 0004C > array_x[1] := array_x[1] + glob_h; > array_x[2] := glob_h; > #Jump Series array_y > order_diff := 1; > #START PART 1 SUM AND ADJUST > #START SUM AND ADJUST EQ =1 > #sum_and_adjust array_y > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 1; > #adjust_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_y_higher_work[2,iii] := array_y_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1); > iii := iii - 1; > od;# end do number 3 > ; > #AFTER ADJUST SUBSERIES EQ =1 > #BEFORE SUM SUBSERIES EQ =1 > temp_sum := 0.0; > ord := 2; > calc_term := 1; > #sum_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_y_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3 > ; > array_y_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 2; > #adjust_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_y_higher_work[1,iii] := array_y_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1); > iii := iii - 1; > od;# end do number 3 > ; > #AFTER ADJUST SUBSERIES EQ =1 > #BEFORE SUM SUBSERIES EQ =1 > temp_sum := 0.0; > ord := 1; > calc_term := 2; > #sum_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_y_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3 > ; > array_y_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 1; > #adjust_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_y_higher_work[1,iii] := array_y_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1); > iii := iii - 1; > od;# end do number 3 > ; > #AFTER ADJUST SUBSERIES EQ =1 > #BEFORE SUM SUBSERIES EQ =1 > temp_sum := 0.0; > ord := 1; > calc_term := 1; > #sum_subseriesarray_y > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_y_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3 > ; > array_y_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #END SUM AND ADJUST EQ =1 > #END PART 1 > #START PART 2 MOVE TERMS to REGULAR Array > term_no := glob_max_terms; > while (term_no >= 1) do # do number 3 > array_y[term_no] := array_y_higher_work2[1,term_no]; > ord := 1; > while (ord <= order_diff) do # do number 4 > array_y_higher[ord,term_no] := array_y_higher_work2[ord,term_no]; > ord := ord + 1; > od;# end do number 4 > ; > term_no := term_no - 1; > od;# end do number 3 > ; > #END PART 2 HEVE MOVED TERMS to REGULAR Array > display_alot(current_iter) > ; > od;# end do number 2 > ;#right paren 0001C > omniout_str(ALWAYS,"Finished!"); > if (glob_iter >= glob_max_iter) then # if number 2 > omniout_str(ALWAYS,"Maximum Iterations Reached before Solution Completed!"); > fi;# end if 2 > ; > if (elapsed_time_seconds() - convfloat(glob_orig_start_sec) >= convfloat(glob_max_sec )) then # if number 2 > omniout_str(ALWAYS,"Maximum Time Reached before Solution Completed!"); > fi;# end if 2 > ; > glob_clock_sec := elapsed_time_seconds(); > omniout_str(INFO,"diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;"); > omniout_int(INFO,"Iterations ",32,glob_iter,4," ") > ; > prog_report(x_start,x_end); > if (glob_html_log) then # if number 2 > logstart(html_log_file); > logitem_str(html_log_file,"2012-08-12T23:10:53-05:00") > ; > logitem_str(html_log_file,"Maple") > ; > logitem_str(html_log_file,"lin_arcsin") > ; > logitem_str(html_log_file,"diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;") > ; > logitem_float(html_log_file,x_start) > ; > logitem_float(html_log_file,x_end) > ; > logitem_float(html_log_file,array_x[1]) > ; > logitem_float(html_log_file,glob_h) > ; > logitem_integer(html_log_file,Digits) > ; > ; > logitem_integer(html_log_file,glob_max_terms) > ; > logitem_float(html_log_file,array_1st_rel_error[1]) > ; > logitem_float(html_log_file,array_last_rel_error[1]) > ; > logitem_integer(html_log_file,glob_iter) > ; > logitem_pole(html_log_file,array_type_pole[1]) > ; > if (array_type_pole[1] = 1 or array_type_pole[1] = 2) then # if number 3 > logitem_float(html_log_file,array_pole[1]) > ; > logitem_float(html_log_file,array_pole[2]) > ; > 0; > else > logitem_str(html_log_file,"NA") > ; > logitem_str(html_log_file,"NA") > ; > 0; > fi;# end if 3 > ; > logitem_time(html_log_file,convfloat(glob_clock_sec)) > ; > if (glob_percent_done < 100.0) then # if number 3 > logitem_time(html_log_file,convfloat(glob_optimal_expect_sec)) > ; > 0; > else > logitem_str(html_log_file,"Done") > ; > 0; > fi;# end if 3 > ; > log_revs(html_log_file," 119 ") > ; > logitem_str(html_log_file,"lin_arcsin diffeq.mxt") > ; > logitem_str(html_log_file,"lin_arcsin maple results") > ; > logitem_str(html_log_file,"1st test with c++") > ; > logend(html_log_file) > ; > ; > fi;# end if 2 > ; > if (glob_html_log) then # if number 2 > fclose(html_log_file); > fi;# end if 2 > ; > ;; > #END OUTFILEMAIN > > # End Function number 8 > end; main := proc() local d1, d2, d3, d4, est_err_2, niii, done_once, term, ord, order_diff, term_no, html_log_file, iiif, jjjf, rows, r_order, sub_iter, calc_term, iii, temp_sum, current_iter, x_start, x_end, it, log10norm, max_terms, opt_iter, tmp, subiter; global glob_iolevel, ALWAYS, DEBUGL, glob_max_terms, DEBUGMASSIVE, INFO, glob_max_minutes, glob_max_iter, glob_relerr, glob_normmax, days_in_year, djd_debug2, glob_small_float, glob_log10_relerr, glob_last_good_h, glob_h, glob_log10relerr, glob_unchanged_h_cnt, glob_abserr, glob_reached_optimal_h, centuries_in_millinium, glob_max_opt_iter, glob_log10normmin, glob_iter, glob_max_rel_trunc_err, glob_hmin, glob_optimal_done, glob_clock_start_sec, years_in_century, hours_in_day, glob_dump, glob_html_log, glob_optimal_expect_sec, glob_optimal_clock_start_sec, sec_in_minute, glob_display_flag, glob_subiter_method, glob_curr_iter_when_opt, glob_start, glob_orig_start_sec, glob_max_trunc_err, glob_max_hours, glob_log10_abserr, glob_large_float, min_in_hour, glob_percent_done, glob_log10abserr, glob_max_sec, glob_initial_pass, glob_not_yet_finished, glob_clock_sec, glob_almost_1, djd_debug, MAX_UNCHANGED, glob_current_iter, glob_warned, glob_smallish_float, glob_optimal_start, glob_hmax, glob_disp_incr, glob_warned2, glob_no_eqs, glob_dump_analytic, glob_look_poles, glob_hmin_init, glob_not_yet_start_msg, array_const_1, array_const_0D2, array_const_0D1, array_const_0D0, array_y_init, array_last_rel_error, array_m1, array_pole, array_type_pole, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_norms, array_y, array_x, array_tmp3_a1, array_1st_rel_error, array_fact_1, array_y_higher, array_real_pole, array_poles, array_y_higher_work2, array_complex_pole, array_y_set_initial, array_y_higher_work, array_fact_2, glob_last; glob_last; ALWAYS := 1; INFO := 2; DEBUGL := 3; DEBUGMASSIVE := 4; glob_iolevel := INFO; glob_iolevel := 5; ALWAYS := 1; DEBUGL := 3; glob_max_terms := 30; DEBUGMASSIVE := 4; INFO := 2; glob_max_minutes := 0.; glob_max_iter := 1000; glob_relerr := 0.1*10^(-10); glob_normmax := 0.; days_in_year := 365; djd_debug2 := true; glob_small_float := 0.1*10^(-50); glob_log10_relerr := 0.1*10^(-10); glob_last_good_h := 0.1; glob_h := 0.1; glob_log10relerr := 0.; glob_unchanged_h_cnt := 0; glob_abserr := 0.1*10^(-10); glob_reached_optimal_h := false; centuries_in_millinium := 10; glob_max_opt_iter := 10; glob_log10normmin := 0.1; glob_iter := 0; glob_max_rel_trunc_err := 0.1*10^(-10); glob_hmin := 0.1*10^(-10); glob_optimal_done := false; glob_clock_start_sec := 0.; years_in_century := 100; hours_in_day := 24; glob_dump := false; glob_html_log := true; glob_optimal_expect_sec := 0.1; glob_optimal_clock_start_sec := 0.; sec_in_minute := 60; glob_display_flag := true; glob_subiter_method := 3; glob_curr_iter_when_opt := 0; glob_start := 0; glob_orig_start_sec := 0.; glob_max_trunc_err := 0.1*10^(-10); glob_max_hours := 0.; glob_log10_abserr := 0.1*10^(-10); glob_large_float := 0.90*10^101; min_in_hour := 60; glob_percent_done := 0.; glob_log10abserr := 0.; glob_max_sec := 10000.0; glob_initial_pass := true; glob_not_yet_finished := true; glob_clock_sec := 0.; glob_almost_1 := 0.9990; djd_debug := true; MAX_UNCHANGED := 10; glob_current_iter := 0; glob_warned := false; glob_smallish_float := 0.1*10^(-100); glob_optimal_start := 0.; glob_hmax := 1.0; glob_disp_incr := 0.1; glob_warned2 := false; glob_no_eqs := 0; glob_dump_analytic := false; glob_look_poles := false; glob_hmin_init := 0.001; glob_not_yet_start_msg := true; glob_orig_start_sec := elapsed_time_seconds(); MAX_UNCHANGED := 10; glob_curr_iter_when_opt := 0; glob_display_flag := true; glob_no_eqs := 1; glob_iter := -1; opt_iter := -1; glob_max_iter := 50000; glob_max_hours := 0.; glob_max_minutes := 15.0; omniout_str(ALWAYS, "##############ECHO OF PROBLEM#################"); omniout_str(ALWAYS, "##############temp/lin_arcsinpostode.ode#################"); omniout_str(ALWAYS, "diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#BEGIN FIRST INPUT BLOCK"); omniout_str(ALWAYS, "max_terms := 30;"); omniout_str(ALWAYS, "Digits := 32;"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#END FIRST INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN SECOND INPUT BLOCK"); omniout_str(ALWAYS, "x_start := -0.8;"); omniout_str(ALWAYS, "x_end := 0.8 ;"); omniout_str(ALWAYS, "array_y_init[0 + 1] := exact_soln_y(x_start);"); omniout_str(ALWAYS, "glob_h := 0.00001 ;"); omniout_str(ALWAYS, "glob_look_poles := true;"); omniout_str(ALWAYS, "glob_max_iter := 100;"); omniout_str(ALWAYS, "#END SECOND INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN OVERRIDE BLOCK"); omniout_str(ALWAYS, "glob_h := 0.00001 ;"); omniout_str(ALWAYS, "glob_look_poles := true;"); omniout_str(ALWAYS, "glob_max_iter := 100;"); omniout_str(ALWAYS, "glob_max_minutes := 1;"); omniout_str(ALWAYS, "#END OVERRIDE BLOCK"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#BEGIN USER DEF BLOCK"); omniout_str(ALWAYS, "exact_soln_y := proc(x)"); omniout_str(ALWAYS, "return(10.0 * (0.1 * x + 0.2) * arcsin(0.1 * x \ + 0.2 ) + 10.0 * sqrt(1.0 -"); omniout_str(ALWAYS, "expt((0.1 * x + 0.2) , 2 )));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, "#END USER DEF BLOCK"); omniout_str(ALWAYS, "#######END OF ECHO OF PROBLEM#################"); glob_unchanged_h_cnt := 0; glob_warned := false; glob_warned2 := false; glob_small_float := 0.10*10^(-199); glob_smallish_float := 0.10*10^(-63); glob_large_float := 0.10*10^101; glob_almost_1 := 0.99; glob_log10_abserr := -8.0; glob_log10_relerr := -8.0; glob_hmax := 0.01; max_terms := 30; Digits := 32; glob_max_terms := max_terms; glob_html_log := true; array_y_init := Array(0 .. max_terms + 1, []); array_last_rel_error := Array(0 .. max_terms + 1, []); array_m1 := Array(0 .. max_terms + 1, []); array_pole := Array(0 .. max_terms + 1, []); array_type_pole := Array(0 .. max_terms + 1, []); array_tmp0 := Array(0 .. max_terms + 1, []); array_tmp1 := Array(0 .. max_terms + 1, []); array_tmp2 := Array(0 .. max_terms + 1, []); array_tmp3 := Array(0 .. max_terms + 1, []); array_tmp4 := Array(0 .. max_terms + 1, []); array_norms := Array(0 .. max_terms + 1, []); array_y := Array(0 .. max_terms + 1, []); array_x := Array(0 .. max_terms + 1, []); array_tmp3_a1 := Array(0 .. max_terms + 1, []); array_1st_rel_error := Array(0 .. max_terms + 1, []); array_fact_1 := Array(0 .. max_terms + 1, []); array_y_higher := Array(0 .. 3, 0 .. max_terms + 1, []); array_real_pole := Array(0 .. 2, 0 .. 4, []); array_poles := Array(0 .. 2, 0 .. 4, []); array_y_higher_work2 := Array(0 .. 3, 0 .. max_terms + 1, []); array_complex_pole := Array(0 .. 2, 0 .. 4, []); array_y_set_initial := Array(0 .. 3, 0 .. max_terms + 1, []); array_y_higher_work := Array(0 .. 3, 0 .. max_terms + 1, []); array_fact_2 := Array(0 .. max_terms + 1, 0 .. max_terms + 1, []); term := 1; while term <= max_terms do array_y_init[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_last_rel_error[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_m1[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_pole[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_type_pole[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp0[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp1[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp2[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp3[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp4[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_norms[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_y[term] := 0.; term := term + 1 end do ; term := 1; while term <= max_terms do array_x[term] := 0.; term := term + 1 end do ; term := 1; while term <= max_terms do array_tmp3_a1[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_1st_rel_error[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_fact_1[term] := 0.; term := term + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= max_terms do array_y_higher[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 1 do term := 1; while term <= 3 do array_real_pole[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 1 do term := 1; while term <= 3 do array_poles[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= max_terms do array_y_higher_work2[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 1 do term := 1; while term <= 3 do array_complex_pole[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= max_terms do array_y_set_initial[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= max_terms do array_y_higher_work[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= max_terms do term := 1; while term <= max_terms do array_fact_2[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; array_tmp4 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp4[term] := 0.; term := term + 1 end do; array_tmp3 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp3[term] := 0.; term := term + 1 end do; array_tmp2 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp2[term] := 0.; term := term + 1 end do; array_tmp1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp1[term] := 0.; term := term + 1 end do; array_tmp0 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp0[term] := 0.; term := term + 1 end do; array_tmp3_a1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp3_a1[term] := 0.; term := term + 1 end do; array_x := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_x[term] := 0.; term := term + 1 end do; array_y := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_y[term] := 0.; term := term + 1 end do; array_const_1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_1[term] := 0.; term := term + 1 end do; array_const_1[1] := 1; array_const_0D2 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_0D2[term] := 0.; term := term + 1 end do; array_const_0D2[1] := 0.2; array_const_0D1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_0D1[term] := 0.; term := term + 1 end do; array_const_0D1[1] := 0.1; array_const_0D0 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_0D0[term] := 0.; term := term + 1 end do; array_const_0D0[1] := 0.; array_m1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms do array_m1[term] := 0.; term := term + 1 end do; array_m1[1] := -1.0; iiif := 0; while iiif <= glob_max_terms do jjjf := 0; while jjjf <= glob_max_terms do array_fact_1[iiif] := 0; array_fact_2[iiif, jjjf] := 0; jjjf := jjjf + 1 end do; iiif := iiif + 1 end do; x_start := -0.8; x_end := 0.8; array_y_init[1] := exact_soln_y(x_start); glob_h := 0.00001; glob_look_poles := true; glob_max_iter := 100; glob_h := 0.00001; glob_look_poles := true; glob_max_iter := 100; glob_max_minutes := 1; glob_last_good_h := glob_h; glob_max_terms := max_terms; glob_max_sec := convfloat(60.0)*convfloat(glob_max_minutes) + convfloat(3600.0)*convfloat(glob_max_hours); glob_abserr := expt(10.0, glob_log10_abserr); glob_relerr := expt(10.0, glob_log10_relerr); chk_data(); array_y_set_initial[1, 1] := true; array_y_set_initial[1, 2] := false; array_y_set_initial[1, 3] := false; array_y_set_initial[1, 4] := false; array_y_set_initial[1, 5] := false; array_y_set_initial[1, 6] := false; array_y_set_initial[1, 7] := false; array_y_set_initial[1, 8] := false; array_y_set_initial[1, 9] := false; array_y_set_initial[1, 10] := false; array_y_set_initial[1, 11] := false; array_y_set_initial[1, 12] := false; array_y_set_initial[1, 13] := false; array_y_set_initial[1, 14] := false; array_y_set_initial[1, 15] := false; array_y_set_initial[1, 16] := false; array_y_set_initial[1, 17] := false; array_y_set_initial[1, 18] := false; array_y_set_initial[1, 19] := false; array_y_set_initial[1, 20] := false; array_y_set_initial[1, 21] := false; array_y_set_initial[1, 22] := false; array_y_set_initial[1, 23] := false; array_y_set_initial[1, 24] := false; array_y_set_initial[1, 25] := false; array_y_set_initial[1, 26] := false; array_y_set_initial[1, 27] := false; array_y_set_initial[1, 28] := false; array_y_set_initial[1, 29] := false; array_y_set_initial[1, 30] := false; if glob_html_log then html_log_file := fopen("html/entry.html", WRITE, TEXT) end if; omniout_str(ALWAYS, "START of Soultion"); array_x[1] := x_start; array_x[2] := glob_h; order_diff := 1; term_no := 1; while term_no <= order_diff do array_y[term_no] := array_y_init[term_no]*expt(glob_h, term_no - 1) /factorial_1(term_no - 1); term_no := term_no + 1 end do; rows := order_diff; r_order := 1; while r_order <= rows do term_no := 1; while term_no <= rows - r_order + 1 do it := term_no + r_order - 1; array_y_higher[r_order, term_no] := array_y_init[it]* expt(glob_h, term_no - 1)/factorial_1(term_no - 1); term_no := term_no + 1 end do; r_order := r_order + 1 end do; current_iter := 1; glob_clock_start_sec := elapsed_time_seconds(); if glob_small_float < omniabs(array_y_higher[1, 1]) then tmp := omniabs(array_y_higher[1, 1]); log10norm := log10(tmp); if log10norm < glob_log10normmin then glob_log10normmin := log10norm end if end if; display_alot(current_iter); glob_clock_sec := elapsed_time_seconds(); glob_current_iter := 0; glob_iter := 0; omniout_str(DEBUGL, " "); glob_reached_optimal_h := true; glob_optimal_clock_start_sec := elapsed_time_seconds(); while glob_current_iter < glob_max_iter and array_x[1] <= x_end and convfloat(glob_clock_sec) - convfloat(glob_orig_start_sec) < convfloat(glob_max_sec) do omniout_str(INFO, " "); omniout_str(INFO, "TOP MAIN SOLVE Loop"); glob_iter := glob_iter + 1; glob_clock_sec := elapsed_time_seconds(); glob_current_iter := glob_current_iter + 1; atomall(); if glob_look_poles then check_for_pole() end if; array_x[1] := array_x[1] + glob_h; array_x[2] := glob_h; order_diff := 1; ord := 2; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do array_y_higher_work[2, iii] := array_y_higher[2, iii]/( expt(glob_h, calc_term - 1)* factorial_3(iii - calc_term, iii - 1)); iii := iii - 1 end do; temp_sum := 0.; ord := 2; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_y_higher_work[ord, iii]; iii := iii - 1 end do; array_y_higher_work2[ord, calc_term] := temp_sum*expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1) ; ord := 1; calc_term := 2; iii := glob_max_terms; while calc_term <= iii do array_y_higher_work[1, iii] := array_y_higher[1, iii]/( expt(glob_h, calc_term - 1)* factorial_3(iii - calc_term, iii - 1)); iii := iii - 1 end do; temp_sum := 0.; ord := 1; calc_term := 2; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_y_higher_work[ord, iii]; iii := iii - 1 end do; array_y_higher_work2[ord, calc_term] := temp_sum*expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1) ; ord := 1; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do array_y_higher_work[1, iii] := array_y_higher[1, iii]/( expt(glob_h, calc_term - 1)* factorial_3(iii - calc_term, iii - 1)); iii := iii - 1 end do; temp_sum := 0.; ord := 1; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_y_higher_work[ord, iii]; iii := iii - 1 end do; array_y_higher_work2[ord, calc_term] := temp_sum*expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1) ; term_no := glob_max_terms; while 1 <= term_no do array_y[term_no] := array_y_higher_work2[1, term_no]; ord := 1; while ord <= order_diff do array_y_higher[ord, term_no] := array_y_higher_work2[ord, term_no]; ord := ord + 1 end do; term_no := term_no - 1 end do; display_alot(current_iter) end do; omniout_str(ALWAYS, "Finished!"); if glob_max_iter <= glob_iter then omniout_str(ALWAYS, "Maximum Iterations Reached before Solution Completed!") end if; if convfloat(glob_max_sec) <= elapsed_time_seconds() - convfloat(glob_orig_start_sec) then omniout_str(ALWAYS, "Maximum Time Reached before Solution Completed!") end if; glob_clock_sec := elapsed_time_seconds(); omniout_str(INFO, "diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;"); omniout_int(INFO, "Iterations ", 32, glob_iter, 4, " "); prog_report(x_start, x_end); if glob_html_log then logstart(html_log_file); logitem_str(html_log_file, "2012-08-12T23:10:53-05:00"); logitem_str(html_log_file, "Maple"); logitem_str(html_log_file, "lin_arcsin"); logitem_str(html_log_file, "diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ;"); logitem_float(html_log_file, x_start); logitem_float(html_log_file, x_end); logitem_float(html_log_file, array_x[1]); logitem_float(html_log_file, glob_h); logitem_integer(html_log_file, Digits); logitem_integer(html_log_file, glob_max_terms); logitem_float(html_log_file, array_1st_rel_error[1]); logitem_float(html_log_file, array_last_rel_error[1]); logitem_integer(html_log_file, glob_iter); logitem_pole(html_log_file, array_type_pole[1]); if array_type_pole[1] = 1 or array_type_pole[1] = 2 then logitem_float(html_log_file, array_pole[1]); logitem_float(html_log_file, array_pole[2]); 0 else logitem_str(html_log_file, "NA"); logitem_str(html_log_file, "NA"); 0 end if; logitem_time(html_log_file, convfloat(glob_clock_sec)); if glob_percent_done < 100.0 then logitem_time(html_log_file, convfloat(glob_optimal_expect_sec)) ; 0 else logitem_str(html_log_file, "Done"); 0 end if; log_revs(html_log_file, " 119 "); logitem_str(html_log_file, "lin_arcsin diffeq.mxt"); logitem_str(html_log_file, "lin_arcsin maple results"); logitem_str(html_log_file, "1st test with c++"); logend(html_log_file) end if; if glob_html_log then fclose(html_log_file) end if end proc > main(); ##############ECHO OF PROBLEM################# ##############temp/lin_arcsinpostode.ode################# diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ; ! #BEGIN FIRST INPUT BLOCK max_terms := 30; Digits := 32; ! #END FIRST INPUT BLOCK #BEGIN SECOND INPUT BLOCK x_start := -0.8; x_end := 0.8 ; array_y_init[0 + 1] := exact_soln_y(x_start); glob_h := 0.00001 ; glob_look_poles := true; glob_max_iter := 100; #END SECOND INPUT BLOCK #BEGIN OVERRIDE BLOCK glob_h := 0.00001 ; glob_look_poles := true; glob_max_iter := 100; glob_max_minutes := 1; #END OVERRIDE BLOCK ! #BEGIN USER DEF BLOCK exact_soln_y := proc(x) return(10.0 * (0.1 * x + 0.2) * arcsin(0.1 * x + 0.2 ) + 10.0 * sqrt(1.0 - expt((0.1 * x + 0.2) , 2 ))); end; #END USER DEF BLOCK #######END OF ECHO OF PROBLEM################# START of Soultion x[1] = -0.8 y[1] (analytic) = 10.072086775666430962491010918823 y[1] (numeric) = 10.072086775666430962491010918823 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.26 Order of pole = 10.62 x[1] = -0.79999 y[1] (analytic) = 10.072087978570291304101282281534 y[1] (numeric) = 10.072087978570291304101282281534 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79998 y[1] (analytic) = 10.072089181484224433988271648154 y[1] (numeric) = 10.072089181484224433988271648155 absolute error = 1e-30 relative error = 9.9284267839717426306749146659752e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79997 y[1] (analytic) = 10.072090384408230353378389547789 y[1] (numeric) = 10.07209038440823035337838954779 absolute error = 1e-30 relative error = 9.9284255982056837854477939987972e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79996 y[1] (analytic) = 10.072091587342309063498057177473 y[1] (numeric) = 10.072091587342309063498057177474 absolute error = 1e-30 relative error = 9.9284244124299790620410534273822e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79995 y[1] (analytic) = 10.072092790286460565573706402183 y[1] (numeric) = 10.072092790286460565573706402183 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79994 y[1] (analytic) = 10.072093993240684860831779754846 y[1] (numeric) = 10.072093993240684860831779754847 memory used=3.8MB, alloc=2.9MB, time=0.35 absolute error = 1e-30 relative error = 9.9284220408496320039076636513019e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79993 y[1] (analytic) = 10.072095196204981950498730436358 y[1] (numeric) = 10.072095196204981950498730436358 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79992 y[1] (analytic) = 10.072096399179351835801022315586 y[1] (numeric) = 10.072096399179351835801022315586 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79991 y[1] (analytic) = 10.072097602163794517965129929387 y[1] (numeric) = 10.072097602163794517965129929387 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.7999 y[1] (analytic) = 10.072098805158309998217538482616 y[1] (numeric) = 10.072098805158309998217538482616 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79989 y[1] (analytic) = 10.072100008162898277784743848138 y[1] (numeric) = 10.072100008162898277784743848138 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79988 y[1] (analytic) = 10.072101211177559357893252566841 y[1] (numeric) = 10.07210121117755935789325256684 absolute error = 1e-30 relative error = 9.9284149258770903568974748915474e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.62 x[1] = -0.79987 y[1] (analytic) = 10.072102414202293239769581847643 y[1] (numeric) = 10.072102414202293239769581847643 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79986 y[1] (analytic) = 10.07210361723709992464025956751 y[1] (numeric) = 10.07210361723709992464025956751 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79985 y[1] (analytic) = 10.072104820281979413731824271463 y[1] (numeric) = 10.072104820281979413731824271463 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79984 y[1] (analytic) = 10.07210602333693170827082517259 y[1] (numeric) = 10.072106023336931708270825172589 absolute error = 1e-30 relative error = 9.9284101823691459961154649128184e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 memory used=7.6MB, alloc=3.9MB, time=0.75 x[1] = -0.79983 y[1] (analytic) = 10.072107226401956809483822152057 y[1] (numeric) = 10.072107226401956809483822152056 absolute error = 1e-30 relative error = 9.9284089964680453846202161151970e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79982 y[1] (analytic) = 10.072108429477054718597385759123 y[1] (numeric) = 10.072108429477054718597385759122 absolute error = 1e-30 relative error = 9.9284078105572989762156283551331e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79981 y[1] (analytic) = 10.072109632562225436838097211148 y[1] (numeric) = 10.072109632562225436838097211147 absolute error = 1e-30 relative error = 9.9284066246369067767070604541373e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.7998 y[1] (analytic) = 10.072110835657468965432548393604 y[1] (numeric) = 10.072110835657468965432548393603 absolute error = 1e-30 relative error = 9.9284054387068687918999164005364e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79979 y[1] (analytic) = 10.07211203876278530560734186009 y[1] (numeric) = 10.072112038762785305607341860089 absolute error = 1e-30 relative error = 9.9284042527671850275996453493908e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79978 y[1] (analytic) = 10.072113241878174458589090832341 y[1] (numeric) = 10.072113241878174458589090832339 absolute error = 2e-30 relative error = 1.9856806133635710979223483244838e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79977 y[1] (analytic) = 10.072114445003636425604419200238 y[1] (numeric) = 10.072114445003636425604419200236 absolute error = 2e-30 relative error = 1.9856803761717760367483489415843e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79976 y[1] (analytic) = 10.072115648139171207879961521823 y[1] (numeric) = 10.072115648139171207879961521821 absolute error = 2e-30 relative error = 1.9856801389780518231590478521394e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79975 y[1] (analytic) = 10.072116851284778806642363023309 y[1] (numeric) = 10.072116851284778806642363023307 absolute error = 2e-30 relative error = 1.9856799017823984583155710203934e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79974 y[1] (analytic) = 10.072118054440459223118279599091 y[1] (numeric) = 10.072118054440459223118279599089 absolute error = 2e-30 relative error = 1.9856796645848159433790534438598e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.61 x[1] = -0.79973 y[1] (analytic) = 10.072119257606212458534377811757 y[1] (numeric) = 10.072119257606212458534377811755 absolute error = 2e-30 relative error = 1.9856794273853042795106391533051e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79972 y[1] (analytic) = 10.072120460782038514117334892101 y[1] (numeric) = 10.072120460782038514117334892099 absolute error = 2e-30 relative error = 1.9856791901838634678714812127336e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop memory used=11.4MB, alloc=4.1MB, time=1.17 Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79971 y[1] (analytic) = 10.072121663967937391093838739134 y[1] (numeric) = 10.072121663967937391093838739132 absolute error = 2e-30 relative error = 1.9856789529804935096227417193710e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.7997 y[1] (analytic) = 10.072122867163909090690587920093 y[1] (numeric) = 10.072122867163909090690587920092 absolute error = 1e-30 relative error = 9.9283935788759720296279590182503e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79969 y[1] (analytic) = 10.072124070369953614134291670459 y[1] (numeric) = 10.072124070369953614134291670457 absolute error = 2e-30 relative error = 1.9856784785679661579412116291930e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79968 y[1] (analytic) = 10.072125273586070962651669893959 y[1] (numeric) = 10.072125273586070962651669893957 absolute error = 2e-30 relative error = 1.9856782413588087668307903927980e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79967 y[1] (analytic) = 10.072126476812261137469453162586 y[1] (numeric) = 10.072126476812261137469453162584 absolute error = 2e-30 relative error = 1.9856780041477222337555263244219e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79966 y[1] (analytic) = 10.072127680048524139814382716607 y[1] (numeric) = 10.072127680048524139814382716605 absolute error = 2e-30 relative error = 1.9856777669347065598766266871651e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79965 y[1] (analytic) = 10.072128883294859970913210464573 y[1] (numeric) = 10.072128883294859970913210464571 absolute error = 2e-30 relative error = 1.9856775297197617463553077772560e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79964 y[1] (analytic) = 10.072130086551268631992698983333 y[1] (numeric) = 10.072130086551268631992698983331 absolute error = 2e-30 relative error = 1.9856772925028877943527949240354e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79963 y[1] (analytic) = 10.072131289817750124279621518043 y[1] (numeric) = 10.072131289817750124279621518042 absolute error = 1e-30 relative error = 9.9283852764204235251516124497041e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79962 y[1] (analytic) = 10.072132493094304449000761982183 y[1] (numeric) = 10.072132493094304449000761982181 absolute error = 2e-30 relative error = 1.9856768180633524795491338704898e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79961 y[1] (analytic) = 10.072133696380931607382914957559 y[1] (numeric) = 10.072133696380931607382914957557 absolute error = 2e-30 relative error = 1.9856765808406911190704814942662e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop memory used=15.2MB, alloc=4.2MB, time=1.58 Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.7996 y[1] (analytic) = 10.072134899677631600652885694324 y[1] (numeric) = 10.072134899677631600652885694322 absolute error = 2e-30 relative error = 1.9856763436161006247556268229030e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.25 Order of pole = 10.6 x[1] = -0.79959 y[1] (analytic) = 10.072136102984404430037490110983 y[1] (numeric) = 10.072136102984404430037490110982 absolute error = 1e-30 relative error = 9.9283805319479049888292017553352e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79958 y[1] (analytic) = 10.07213730630125009676355479441 y[1] (numeric) = 10.072137306301250096763554794408 absolute error = 2e-30 relative error = 1.9856758691611322392624016064432e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79957 y[1] (analytic) = 10.072138509628168602057916999852 y[1] (numeric) = 10.072138509628168602057916999851 absolute error = 1e-30 relative error = 9.9283781596537717520329957485988e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79956 y[1] (analytic) = 10.072139712965159947147424650949 y[1] (numeric) = 10.072139712965159947147424650948 absolute error = 1e-30 relative error = 9.9283769734922366617986528728544e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79955 y[1] (analytic) = 10.072140916312224133258936339738 y[1] (numeric) = 10.072140916312224133258936339737 absolute error = 1e-30 relative error = 9.9283757873210559314155125382141e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79954 y[1] (analytic) = 10.072142119669361161619321326671 y[1] (numeric) = 10.072142119669361161619321326669 absolute error = 2e-30 relative error = 1.9856749202280459133380306085367e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79953 y[1] (analytic) = 10.07214332303657103345545954062 y[1] (numeric) = 10.072143323036571033455459540618 absolute error = 2e-30 relative error = 1.9856746829899515146858395697943e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79952 y[1] (analytic) = 10.072144526413853749994241578893 y[1] (numeric) = 10.072144526413853749994241578892 absolute error = 1e-30 relative error = 9.9283722287496399574393155844063e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79951 y[1] (analytic) = 10.072145729801209312462568707246 y[1] (numeric) = 10.072145729801209312462568707245 absolute error = 1e-30 relative error = 9.9283710425398767245272200408579e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.7995 y[1] (analytic) = 10.07214693319863772208735285989 y[1] (numeric) = 10.072146933198637722087352859889 absolute error = 1e-30 relative error = 9.9283698563204678804996701746635e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79949 y[1] (analytic) = 10.072148136606138980095516639507 y[1] (numeric) = 10.072148136606138980095516639506 absolute error = 1e-30 memory used=19.0MB, alloc=4.3MB, time=2.00 relative error = 9.9283686700914134311634701065444e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79948 y[1] (analytic) = 10.072149340023713087713993317259 y[1] (numeric) = 10.072149340023713087713993317258 absolute error = 1e-30 relative error = 9.9283674838527133823254691215308e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79947 y[1] (analytic) = 10.072150543451360046169726832799 y[1] (numeric) = 10.072150543451360046169726832799 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79946 y[1] (analytic) = 10.072151746889079856689671794287 y[1] (numeric) = 10.072151746889079856689671794286 absolute error = 1e-30 relative error = 9.9283651113463765093716873620112e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.59 x[1] = -0.79945 y[1] (analytic) = 10.072152950336872520500793478393 y[1] (numeric) = 10.072152950336872520500793478393 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79944 y[1] (analytic) = 10.072154153794738038830067830319 y[1] (numeric) = 10.072154153794738038830067830318 absolute error = 1e-30 relative error = 9.9283627388014573080940224595277e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79943 y[1] (analytic) = 10.0721553572626764129044814638 y[1] (numeric) = 10.0721553572626764129044814638 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79942 y[1] (analytic) = 10.072156560740687643951031661125 y[1] (numeric) = 10.072156560740687643951031661125 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79941 y[1] (analytic) = 10.072157764228771733196726373141 y[1] (numeric) = 10.072157764228771733196726373141 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.7994 y[1] (analytic) = 10.072158967726928681868584219269 y[1] (numeric) = 10.072158967726928681868584219268 absolute error = 1e-30 relative error = 9.9283579935958721063934465964197e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79939 y[1] (analytic) = 10.072160171235158491193634487512 y[1] (numeric) = 10.072160171235158491193634487511 absolute error = 1e-30 relative error = 9.9283568072703619233549072577460e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79938 y[1] (analytic) = 10.07216137475346116239891713447 y[1] (numeric) = 10.07216137475346116239891713447 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop memory used=22.8MB, alloc=4.3MB, time=2.43 Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79937 y[1] (analytic) = 10.072162578281836696711482785351 y[1] (numeric) = 10.072162578281836696711482785351 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79936 y[1] (analytic) = 10.072163781820285095358392733979 y[1] (numeric) = 10.072163781820285095358392733979 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79935 y[1] (analytic) = 10.07216498536880635956671894281 y[1] (numeric) = 10.072164985368806359566718942809 absolute error = 1e-30 relative error = 9.9283520618718658349661961233770e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79934 y[1] (analytic) = 10.072166188927400490563544042938 y[1] (numeric) = 10.072166188927400490563544042938 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79933 y[1] (analytic) = 10.072167392496067489575961334114 y[1] (numeric) = 10.072167392496067489575961334114 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79932 y[1] (analytic) = 10.072168596074807357831074784751 y[1] (numeric) = 10.072168596074807357831074784751 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.58 x[1] = -0.79931 y[1] (analytic) = 10.072169799663620096555999031937 y[1] (numeric) = 10.072169799663620096555999031937 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.7993 y[1] (analytic) = 10.072171003262505706977859381449 y[1] (numeric) = 10.07217100326250570697785938145 absolute error = 1e-30 relative error = 9.9283461299067216085119858567804e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79929 y[1] (analytic) = 10.072172206871464190323791807763 y[1] (numeric) = 10.072172206871464190323791807764 absolute error = 1e-30 relative error = 9.9283449434847562725011995630182e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79928 y[1] (analytic) = 10.072173410490495547820942954064 y[1] (numeric) = 10.072173410490495547820942954064 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79927 y[1] (analytic) = 10.072174614119599780696470132257 y[1] (numeric) = 10.072174614119599780696470132258 absolute error = 1e-30 relative error = 9.9283425706118891562214321961004e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79926 y[1] (analytic) = 10.072175817758776890177541322985 y[1] (numeric) = 10.072175817758776890177541322986 absolute error = 1e-30 relative error = 9.9283413841609873875680917203295e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop memory used=26.7MB, alloc=4.3MB, time=2.85 Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79925 y[1] (analytic) = 10.072177021408026877491335175631 y[1] (numeric) = 10.072177021408026877491335175632 absolute error = 1e-30 relative error = 9.9283401977004401529829490521711e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79924 y[1] (analytic) = 10.072178225067349743865041008337 y[1] (numeric) = 10.072178225067349743865041008337 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79923 y[1] (analytic) = 10.07217942873674549052585880801 y[1] (numeric) = 10.07217942873674549052585880801 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79922 y[1] (analytic) = 10.072180632416214118700999230339 y[1] (numeric) = 10.072180632416214118700999230339 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.79921 y[1] (analytic) = 10.072181836105755629617683599802 y[1] (numeric) = 10.072181836105755629617683599802 absolute error = 0 relative error = 0 % "good digits = ", -1 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.24 Order of pole = 10.57 x[1] = -0.7992 y[1] (analytic) = 10.072183039805370024503143909678 y[1] (numeric) = 10.072183039805370024503143909679 absolute error = 1e-30 relative error = 9.9283342652530221943594456783031e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.57 x[1] = -0.79919 y[1] (analytic) = 10.072184243515057304584622822062 y[1] (numeric) = 10.072184243515057304584622822063 absolute error = 1e-30 relative error = 9.9283330787346022861516678386004e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.57 x[1] = -0.79918 y[1] (analytic) = 10.072185447234817471089373667873 y[1] (numeric) = 10.072185447234817471089373667874 absolute error = 1e-30 relative error = 9.9283318922065369526685686475367e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.57 x[1] = -0.79917 y[1] (analytic) = 10.072186650964650525244660446865 y[1] (numeric) = 10.072186650964650525244660446866 absolute error = 1e-30 relative error = 9.9283307056688261997183974448324e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79916 y[1] (analytic) = 10.072187854704556468277757827642 y[1] (numeric) = 10.072187854704556468277757827643 absolute error = 1e-30 relative error = 9.9283295191214700331094487320073e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79915 y[1] (analytic) = 10.072189058454535301415951147667 y[1] (numeric) = 10.072189058454535301415951147668 absolute error = 1e-30 relative error = 9.9283283325644684586500621723037e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 memory used=30.5MB, alloc=4.3MB, time=3.28 x[1] = -0.79914 y[1] (analytic) = 10.072190262214587025886536413273 y[1] (numeric) = 10.072190262214587025886536413274 absolute error = 1e-30 relative error = 9.9283271459978214821486225906096e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79913 y[1] (analytic) = 10.072191465984711642916820299676 y[1] (numeric) = 10.072191465984711642916820299677 absolute error = 1e-30 relative error = 9.9283259594215291094135599733777e-30 % "good digits = ", 31 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79912 y[1] (analytic) = 10.072192669764909153734120150985 y[1] (numeric) = 10.072192669764909153734120150987 absolute error = 2e-30 relative error = 1.9856649545671182692506698937099e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79911 y[1] (analytic) = 10.072193873555179559565763980217 y[1] (numeric) = 10.072193873555179559565763980219 absolute error = 2e-30 relative error = 1.9856647172480016396953022770947e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.7991 y[1] (analytic) = 10.072195077355522861639090469303 y[1] (numeric) = 10.072195077355522861639090469305 absolute error = 2e-30 relative error = 1.9856644799269559343783222389661e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79909 y[1] (analytic) = 10.072196281165939061181448969104 y[1] (numeric) = 10.072196281165939061181448969106 absolute error = 2e-30 relative error = 1.9856642426039811544614519057107e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79908 y[1] (analytic) = 10.072197484986428159420199499419 y[1] (numeric) = 10.072197484986428159420199499421 absolute error = 2e-30 relative error = 1.9856640052790773011064224359502e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79907 y[1] (analytic) = 10.072198688816990157582712749001 y[1] (numeric) = 10.072198688816990157582712749003 absolute error = 2e-30 relative error = 1.9856637679522443754749740205247e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79906 y[1] (analytic) = 10.072199892657625056896370075563 y[1] (numeric) = 10.072199892657625056896370075565 absolute error = 2e-30 relative error = 1.9856635306234823787288558824787e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79905 y[1] (analytic) = 10.072201096508332858588563505794 y[1] (numeric) = 10.072201096508332858588563505796 absolute error = 2e-30 relative error = 1.9856632932927913120298262770439e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79904 y[1] (analytic) = 10.072202300369113563886695735369 y[1] (numeric) = 10.072202300369113563886695735371 absolute error = 2e-30 relative error = 1.9856630559601711765396524916242e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.56 x[1] = -0.79903 y[1] (analytic) = 10.072203504239967174018180128959 y[1] (numeric) = 10.072203504239967174018180128961 absolute error = 2e-30 relative error = 1.9856628186256219734201108457801e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop memory used=34.3MB, alloc=4.3MB, time=3.70 Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.55 x[1] = -0.79902 y[1] (analytic) = 10.072204708120893690210440720244 y[1] (numeric) = 10.072204708120893690210440720246 absolute error = 2e-30 relative error = 1.9856625812891437038329866912128e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.55 x[1] = -0.79901 y[1] (analytic) = 10.072205912011893113690912211924 y[1] (numeric) = 10.072205912011893113690912211926 absolute error = 2e-30 relative error = 1.9856623439507363689400744117490e-29 % "good digits = ", 30 h = 1e-05 TOP MAIN SOLVE Loop Real estimate of pole used Radius of convergence = 12.23 Order of pole = 10.55 x[1] = -0.799 y[1] (analytic) = 10.072207115912965445687039975732 y[1] (numeric) = 10.072207115912965445687039975734 absolute error = 2e-30 relative error = 1.9856621066103999699031774233240e-29 % "good digits = ", 30 h = 1e-05 Finished! Maximum Iterations Reached before Solution Completed! diff ( y , x , 1 ) = arcsin (0.1 * x + 0.2) ; Iterations = 100 Total Elapsed Time = 3 Seconds Elapsed Time(since restart) = 3 Seconds Expected Time Remaining = 1 Hours 37 Minutes 40 Seconds Optimized Time Remaining = 1 Hours 36 Minutes 47 Seconds Time to Timeout = 56 Seconds Percent Done = 0.06312 % > quit memory used=35.2MB, alloc=4.3MB, time=3.79