|\^/| 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 > check_sign := proc( x0 ,xf) > local ret; > if (xf > x0) then # if number 1 > ret := 1.0; > else > ret := -1.0; > fi;# end if 1; > ret;; > end; check_sign := proc(x0, xf) local ret; if x0 < xf then ret := 1.0 else ret := -1.0 end if; ret end proc > # End Function number 3 > # Begin Function number 4 > est_size_answer := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local min_size; > min_size := glob_large_float; > if (omniabs(array_x1[1]) < min_size) then # if number 1 > min_size := omniabs(array_x1[1]); > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 1; > if (omniabs(array_x2[1]) < min_size) then # if number 1 > min_size := omniabs(array_x2[1]); > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 1; > if (min_size < 1.0) then # if number 1 > min_size := 1.0; > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 1; > min_size; > end; est_size_answer := proc() local min_size; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; min_size := glob_large_float; if omniabs(array_x1[1]) < min_size then min_size := omniabs(array_x1[1]); omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; if omniabs(array_x2[1]) < min_size then min_size := omniabs(array_x2[1]); omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; if min_size < 1.0 then min_size := 1.0; omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; min_size end proc > # End Function number 4 > # Begin Function number 5 > test_suggested_h := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local max_value3,hn_div_ho,hn_div_ho_2,hn_div_ho_3,value3,no_terms; > max_value3 := 0.0; > no_terms := glob_max_terms; > hn_div_ho := 0.5; > hn_div_ho_2 := 0.25; > hn_div_ho_3 := 0.125; > omniout_float(ALWAYS,"hn_div_ho",32,hn_div_ho,32,""); > omniout_float(ALWAYS,"hn_div_ho_2",32,hn_div_ho_2,32,""); > omniout_float(ALWAYS,"hn_div_ho_3",32,hn_div_ho_3,32,""); > value3 := omniabs(array_x1[no_terms-3] + array_x1[no_terms - 2] * hn_div_ho + array_x1[no_terms - 1] * hn_div_ho_2 + array_x1[no_terms] * hn_div_ho_3); > if (value3 > max_value3) then # if number 1 > max_value3 := value3; > omniout_float(ALWAYS,"value3",32,value3,32,""); > fi;# end if 1; > value3 := omniabs(array_x2[no_terms-3] + array_x2[no_terms - 2] * hn_div_ho + array_x2[no_terms - 1] * hn_div_ho_2 + array_x2[no_terms] * hn_div_ho_3); > if (value3 > max_value3) then # if number 1 > max_value3 := value3; > omniout_float(ALWAYS,"value3",32,value3,32,""); > fi;# end if 1; > omniout_float(ALWAYS,"max_value3",32,max_value3,32,""); > max_value3; > end; test_suggested_h := proc() local max_value3, hn_div_ho, hn_div_ho_2, hn_div_ho_3, value3, no_terms; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; max_value3 := 0.; no_terms := glob_max_terms; hn_div_ho := 0.5; hn_div_ho_2 := 0.25; hn_div_ho_3 := 0.125; omniout_float(ALWAYS, "hn_div_ho", 32, hn_div_ho, 32, ""); omniout_float(ALWAYS, "hn_div_ho_2", 32, hn_div_ho_2, 32, ""); omniout_float(ALWAYS, "hn_div_ho_3", 32, hn_div_ho_3, 32, ""); value3 := omniabs(array_x1[no_terms - 3] + array_x1[no_terms - 2]*hn_div_ho + array_x1[no_terms - 1]*hn_div_ho_2 + array_x1[no_terms]*hn_div_ho_3); if max_value3 < value3 then max_value3 := value3; omniout_float(ALWAYS, "value3", 32, value3, 32, "") end if; value3 := omniabs(array_x2[no_terms - 3] + array_x2[no_terms - 2]*hn_div_ho + array_x2[no_terms - 1]*hn_div_ho_2 + array_x2[no_terms]*hn_div_ho_3); if max_value3 < value3 then max_value3 := value3; omniout_float(ALWAYS, "value3", 32, value3, 32, "") end if; omniout_float(ALWAYS, "max_value3", 32, max_value3, 32, ""); max_value3 end proc > # End Function number 5 > # Begin Function number 6 > reached_interval := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local ret; > if (glob_check_sign * (array_t[1]) >= glob_check_sign * glob_next_display) then # if number 1 > ret := true; > else > ret := false; > fi;# end if 1; > return(ret); > end; reached_interval := proc() local ret; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; if glob_check_sign*glob_next_display <= glob_check_sign*array_t[1] then ret := true else ret := false end if; return ret end proc > # End Function number 6 > # Begin Function number 7 > display_alot := proc(iter) > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local abserr, analytic_val_y, ind_var, numeric_val, relerr, term_no; > #TOP DISPLAY ALOT > if (reached_interval()) then # if number 1 > if (iter >= 0) then # if number 2 > ind_var := array_t[1]; > omniout_float(ALWAYS,"t[1] ",33,ind_var,20," "); > analytic_val_y := exact_soln_x1(ind_var); > omniout_float(ALWAYS,"x1[1] (analytic) ",33,analytic_val_y,20," "); > term_no := 1; > numeric_val := array_x1[term_no]; > abserr := omniabs(numeric_val - analytic_val_y); > omniout_float(ALWAYS,"x1[1] (numeric) ",33,numeric_val,20," "); > if (omniabs(analytic_val_y) <> 0.0) then # if number 3 > relerr := abserr*100.0/omniabs(analytic_val_y); > if (relerr > 0.0000000000000000000000000000000001) then # if number 4 > glob_good_digits := -trunc(log10(relerr)) + 2; > else > glob_good_digits := Digits; > fi;# end if 4; > else > relerr := -1.0 ; > glob_good_digits := -1; > fi;# end if 3; > if (glob_iter = 1) then # if number 3 > array_1st_rel_error[1] := relerr; > else > array_last_rel_error[1] := relerr; > fi;# end if 3; > omniout_float(ALWAYS,"absolute error ",4,abserr,20," "); > omniout_float(ALWAYS,"relative error ",4,relerr,20,"%"); > omniout_int(INFO,"Correct digits ",32,glob_good_digits,4," ") > ; > omniout_float(ALWAYS,"h ",4,glob_h,20," "); > ; > analytic_val_y := exact_soln_x2(ind_var); > omniout_float(ALWAYS,"x2[1] (analytic) ",33,analytic_val_y,20," "); > term_no := 1; > numeric_val := array_x2[term_no]; > abserr := omniabs(numeric_val - analytic_val_y); > omniout_float(ALWAYS,"x2[1] (numeric) ",33,numeric_val,20," "); > if (omniabs(analytic_val_y) <> 0.0) then # if number 3 > relerr := abserr*100.0/omniabs(analytic_val_y); > if (relerr > 0.0000000000000000000000000000000001) then # if number 4 > glob_good_digits := -trunc(log10(relerr)) + 2; > else > glob_good_digits := Digits; > fi;# end if 4; > else > relerr := -1.0 ; > glob_good_digits := -1; > fi;# end if 3; > if (glob_iter = 1) then # if number 3 > array_1st_rel_error[2] := relerr; > else > array_last_rel_error[2] := relerr; > fi;# end if 3; > omniout_float(ALWAYS,"absolute error ",4,abserr,20," "); > omniout_float(ALWAYS,"relative error ",4,relerr,20,"%"); > omniout_int(INFO,"Correct digits ",32,glob_good_digits,4," ") > ; > omniout_float(ALWAYS,"h ",4,glob_h,20," "); > fi;# end if 2; > #BOTTOM DISPLAY ALOT > fi;# end if 1; > end; display_alot := proc(iter) local abserr, analytic_val_y, ind_var, numeric_val, relerr, term_no; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; if reached_interval() then if 0 <= iter then ind_var := array_t[1]; omniout_float(ALWAYS, "t[1] ", 33, ind_var, 20, " "); analytic_val_y := exact_soln_x1(ind_var); omniout_float(ALWAYS, "x1[1] (analytic) ", 33, analytic_val_y, 20, " "); term_no := 1; numeric_val := array_x1[term_no]; abserr := omniabs(numeric_val - analytic_val_y); omniout_float(ALWAYS, "x1[1] (numeric) ", 33, numeric_val, 20, " "); if omniabs(analytic_val_y) <> 0. then relerr := abserr*100.0/omniabs(analytic_val_y); if 0.1*10^(-33) < relerr then glob_good_digits := -trunc(log10(relerr)) + 2 else glob_good_digits := Digits end if else relerr := -1.0; glob_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, "%"); omniout_int(INFO, "Correct digits ", 32, glob_good_digits, 4, " "); omniout_float(ALWAYS, "h ", 4, glob_h, 20, " "); analytic_val_y := exact_soln_x2(ind_var); omniout_float(ALWAYS, "x2[1] (analytic) ", 33, analytic_val_y, 20, " "); term_no := 1; numeric_val := array_x2[term_no]; abserr := omniabs(numeric_val - analytic_val_y); omniout_float(ALWAYS, "x2[1] (numeric) ", 33, numeric_val, 20, " "); if omniabs(analytic_val_y) <> 0. then relerr := abserr*100.0/omniabs(analytic_val_y); if 0.1*10^(-33) < relerr then glob_good_digits := -trunc(log10(relerr)) + 2 else glob_good_digits := Digits end if else relerr := -1.0; glob_good_digits := -1 end if; if glob_iter = 1 then array_1st_rel_error[2] := relerr else array_last_rel_error[2] := relerr end if; omniout_float(ALWAYS, "absolute error ", 4, abserr, 20, " "); omniout_float(ALWAYS, "relative error ", 4, relerr, 20, "%"); omniout_int(INFO, "Correct digits ", 32, glob_good_digits, 4, " "); omniout_float(ALWAYS, "h ", 4, glob_h, 20, " ") end if end if end proc > # End Function number 7 > # Begin Function number 8 > adjust_for_pole := proc(h_param) > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local hnew, sz2, tmp; > #TOP ADJUST FOR POLE > hnew := h_param; > glob_normmax := glob_small_float; > if (omniabs(array_x1_higher[1,1]) > glob_small_float) then # if number 1 > tmp := omniabs(array_x1_higher[1,1]); > if (tmp < glob_normmax) then # if number 2 > glob_normmax := tmp; > fi;# end if 2 > fi;# end if 1; > if (omniabs(array_x2_higher[1,1]) > glob_small_float) then # if number 1 > tmp := omniabs(array_x2_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_t[1]; > fi;# end if 1; > hnew := sz2; > ;#END block > return(hnew); > #BOTTOM ADJUST FOR POLE > end; adjust_for_pole := proc(h_param) local hnew, sz2, tmp; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; hnew := h_param; glob_normmax := glob_small_float; if glob_small_float < omniabs(array_x1_higher[1, 1]) then tmp := omniabs(array_x1_higher[1, 1]); if tmp < glob_normmax then glob_normmax := tmp end if end if; if glob_small_float < omniabs(array_x2_higher[1, 1]) then tmp := omniabs(array_x2_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_t[1] end if; hnew := sz2; return hnew end proc > # End Function number 8 > # Begin Function number 9 > prog_report := proc(t_start,t_end) > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > 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(t_end),convfloat(t_start),convfloat(array_t[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(t_end),convfloat(t_start),convfloat(array_t[1]) +convfloat( glob_h) ,convfloat( opt_clock_sec)); > glob_total_exp_sec := glob_optimal_expect_sec + total_clock_sec; > percent_done := comp_percent(convfloat(t_end),convfloat(t_start),convfloat(array_t[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)); > omniout_str_noeol(INFO,"Expected Total Time "); > omniout_timestr(convfloat(glob_total_exp_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; prog_report := proc(t_start, t_end) local clock_sec, opt_clock_sec, clock_sec1, expect_sec, left_sec, percent_done, total_clock_sec; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, 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(t_end), convfloat(t_start), convfloat(array_t[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(t_end), convfloat(t_start), convfloat(array_t[1]) + convfloat(glob_h), convfloat(opt_clock_sec)); glob_total_exp_sec := glob_optimal_expect_sec + total_clock_sec; percent_done := comp_percent(convfloat(t_end), convfloat(t_start), convfloat(array_t[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)); omniout_str_noeol(INFO, "Expected Total Time "); omniout_timestr(convfloat(glob_total_exp_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 > # End Function number 9 > # Begin Function number 10 > check_for_pole := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local cnt, dr1, dr2, ds1, ds2, hdrc,hdrc_BBB, m, n, nr1, nr2, ord_no, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term; > #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_x1_higher[1,m]) < glob_small_float * glob_small_float) or (omniabs(array_x1_higher[1,m-1]) < glob_small_float * glob_small_float) or (omniabs(array_x1_higher[1,m-2]) < glob_small_float * glob_small_float ))) do # do number 2 > m := m - 1; > od;# end do number 2; > if (m > 10) then # if number 1 > rm0 := array_x1_higher[1,m]/array_x1_higher[1,m-1]; > rm1 := array_x1_higher[1,m-1]/array_x1_higher[1,m-2]; > hdrc := convfloat(m)*rm0-convfloat(m-1)*rm1; > if (omniabs(hdrc) > glob_small_float * glob_small_float) then # if number 2 > rcs := glob_h/hdrc; > ord_no := (rm1*convfloat((m-2)*(m-2))-rm0*convfloat(m-3))/hdrc; > 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 > #IN RADII REAL EQ = 2 > #Computes radius of convergence and r_order of pole from 3 adjacent Taylor series terms. EQUATUON NUMBER 2 > #Applies to pole of arbitrary r_order on the real axis, > #Due to Prof. George Corliss. > n := glob_max_terms; > m := n - 2 - 1; > while ((m >= 10) and ((omniabs(array_x2_higher[1,m]) < glob_small_float * glob_small_float) or (omniabs(array_x2_higher[1,m-1]) < glob_small_float * glob_small_float) or (omniabs(array_x2_higher[1,m-2]) < glob_small_float * glob_small_float ))) do # do number 2 > m := m - 1; > od;# end do number 2; > if (m > 10) then # if number 1 > rm0 := array_x2_higher[1,m]/array_x2_higher[1,m-1]; > rm1 := array_x2_higher[1,m-1]/array_x2_higher[1,m-2]; > hdrc := convfloat(m)*rm0-convfloat(m-1)*rm1; > if (omniabs(hdrc) > glob_small_float * glob_small_float) then # if number 2 > rcs := glob_h/hdrc; > ord_no := (rm1*convfloat((m-2)*(m-2))-rm0*convfloat(m-3))/hdrc; > array_real_pole[2,1] := rcs; > array_real_pole[2,2] := ord_no; > else > array_real_pole[2,1] := glob_large_float; > array_real_pole[2,2] := glob_large_float; > fi;# end if 2 > else > array_real_pole[2,1] := glob_large_float; > array_real_pole[2,2] := glob_large_float; > fi;# end if 1; > #BOTTOM RADII REAL EQ = 2 > #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_x1_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 > rad_c := glob_large_float; > ord_no := glob_large_float; > elif > (((omniabs(array_x1_higher[1,m]) >= (glob_large_float)) or (omniabs(array_x1_higher[1,m-1]) >=(glob_large_float)) or (omniabs(array_x1_higher[1,m-2]) >= (glob_large_float)) or (omniabs(array_x1_higher[1,m-3]) >= (glob_large_float)) or (omniabs(array_x1_higher[1,m-4]) >= (glob_large_float)) or (omniabs(array_x1_higher[1,m-5]) >= (glob_large_float))) or ((omniabs(array_x1_higher[1,m]) <= (glob_small_float)) or (omniabs(array_x1_higher[1,m-1]) <=(glob_small_float)) or (omniabs(array_x1_higher[1,m-2]) <= (glob_small_float)) or (omniabs(array_x1_higher[1,m-3]) <= (glob_small_float)) or (omniabs(array_x1_higher[1,m-4]) <= (glob_small_float)) or (omniabs(array_x1_higher[1,m-5]) <= (glob_small_float)))) then # if number 2 > rad_c := glob_large_float; > ord_no := glob_large_float; > else > rm0 := (array_x1_higher[1,m])/(array_x1_higher[1,m-1]); > rm1 := (array_x1_higher[1,m-1])/(array_x1_higher[1,m-2]); > rm2 := (array_x1_higher[1,m-2])/(array_x1_higher[1,m-3]); > rm3 := (array_x1_higher[1,m-3])/(array_x1_higher[1,m-4]); > rm4 := (array_x1_higher[1,m-4])/(array_x1_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 > rad_c := glob_large_float; > ord_no := 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) * omniabs(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 > #TOP RADII COMPLEX EQ = 2 > #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 - 2 - 1; > cnt := 0; > while ((cnt < 5) and (n >= 10)) do # do number 2 > if (omniabs(array_x2_higher[1,n]) > glob_small_float) then # if number 2 > cnt := cnt + 1; > else > cnt := 0; > fi;# end if 2; > n := n - 1; > od;# end do number 2; > m := n + cnt; > if (m <= 10) then # if number 2 > rad_c := glob_large_float; > ord_no := glob_large_float; > elif > (((omniabs(array_x2_higher[1,m]) >= (glob_large_float)) or (omniabs(array_x2_higher[1,m-1]) >=(glob_large_float)) or (omniabs(array_x2_higher[1,m-2]) >= (glob_large_float)) or (omniabs(array_x2_higher[1,m-3]) >= (glob_large_float)) or (omniabs(array_x2_higher[1,m-4]) >= (glob_large_float)) or (omniabs(array_x2_higher[1,m-5]) >= (glob_large_float))) or ((omniabs(array_x2_higher[1,m]) <= (glob_small_float)) or (omniabs(array_x2_higher[1,m-1]) <=(glob_small_float)) or (omniabs(array_x2_higher[1,m-2]) <= (glob_small_float)) or (omniabs(array_x2_higher[1,m-3]) <= (glob_small_float)) or (omniabs(array_x2_higher[1,m-4]) <= (glob_small_float)) or (omniabs(array_x2_higher[1,m-5]) <= (glob_small_float)))) then # if number 3 > rad_c := glob_large_float; > ord_no := glob_large_float; > else > rm0 := (array_x2_higher[1,m])/(array_x2_higher[1,m-1]); > rm1 := (array_x2_higher[1,m-1])/(array_x2_higher[1,m-2]); > rm2 := (array_x2_higher[1,m-2])/(array_x2_higher[1,m-3]); > rm3 := (array_x2_higher[1,m-3])/(array_x2_higher[1,m-4]); > rm4 := (array_x2_higher[1,m-4])/(array_x2_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 4 > rad_c := glob_large_float; > ord_no := glob_large_float; > else > if (omniabs(nr1*dr2 - nr2 * dr1) > glob_small_float) then # if number 5 > 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 6 > if (rcs > 0.0) then # if number 7 > rad_c := sqrt(rcs) * omniabs(glob_h); > else > rad_c := glob_large_float; > fi;# end if 7 > else > rad_c := glob_large_float; > ord_no := glob_large_float; > fi;# end if 6 > else > rad_c := glob_large_float; > ord_no := glob_large_float; > fi;# end if 5 > fi;# end if 4; > array_complex_pole[2,1] := rad_c; > array_complex_pole[2,2] := ord_no; > fi;# end if 3; > #BOTTOM RADII COMPLEX EQ = 2 > found_sing := 0; > #TOP WHICH RADII EQ = 1 > if (1 <> found_sing 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 3 > array_poles[1,1] := array_complex_pole[1,1]; > array_poles[1,2] := array_complex_pole[1,2]; > found_sing := 1; > array_type_pole[1] := 2; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Complex estimate of poles used for equation 1"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (1 <> found_sing 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] > -1.0 * glob_smallish_float) 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 3 > array_poles[1,1] := array_real_pole[1,1]; > array_poles[1,2] := array_real_pole[1,2]; > found_sing := 1; > array_type_pole[1] := 1; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Real estimate of pole used for equation 1"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (1 <> found_sing 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 3 > array_poles[1,1] := glob_large_float; > array_poles[1,2] := glob_large_float; > found_sing := 1; > array_type_pole[1] := 3; > if (reached_interval()) then # if number 4 > omniout_str(ALWAYS,"NO POLE for equation 1"); > fi;# end if 4; > fi;# end if 3; > if (1 <> found_sing 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] > -1.0 * glob_smallish_float))) then # if number 3 > array_poles[1,1] := array_real_pole[1,1]; > array_poles[1,2] := array_real_pole[1,2]; > found_sing := 1; > array_type_pole[1] := 1; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Real estimate of pole used for equation 1"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (1 <> found_sing 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 3 > array_poles[1,1] := array_complex_pole[1,1]; > array_poles[1,2] := array_complex_pole[1,2]; > array_type_pole[1] := 2; > found_sing := 1; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Complex estimate of poles used for equation 1"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (1 <> found_sing ) then # if number 3 > array_poles[1,1] := glob_large_float; > array_poles[1,2] := glob_large_float; > array_type_pole[1] := 3; > if (reached_interval()) then # if number 4 > omniout_str(ALWAYS,"NO POLE for equation 1"); > fi;# end if 4; > fi;# end if 3; > #BOTTOM WHICH RADII EQ = 1 > #TOP WHICH RADII EQ = 2 > if (2 <> found_sing and ((array_real_pole[2,1] = glob_large_float) or (array_real_pole[2,2] = glob_large_float)) and ((array_complex_pole[2,1] <> glob_large_float) and (array_complex_pole[2,2] <> glob_large_float)) and ((array_complex_pole[2,1] > 0.0) and (array_complex_pole[2,2] > 0.0))) then # if number 3 > array_poles[2,1] := array_complex_pole[2,1]; > array_poles[2,2] := array_complex_pole[2,2]; > found_sing := 2; > array_type_pole[2] := 2; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Complex estimate of poles used for equation 2"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (2 <> found_sing and ((array_real_pole[2,1] <> glob_large_float) and (array_real_pole[2,2] <> glob_large_float) and (array_real_pole[2,1] > 0.0) and (array_real_pole[2,2] > -1.0 * glob_smallish_float) and ((array_complex_pole[2,1] = glob_large_float) or (array_complex_pole[2,2] = glob_large_float) or (array_complex_pole[2,1] <= 0.0 ) or (array_complex_pole[2,2] <= 0.0)))) then # if number 3 > array_poles[2,1] := array_real_pole[2,1]; > array_poles[2,2] := array_real_pole[2,2]; > found_sing := 2; > array_type_pole[2] := 1; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Real estimate of pole used for equation 2"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (2 <> found_sing and (((array_real_pole[2,1] = glob_large_float) or (array_real_pole[2,2] = glob_large_float)) and ((array_complex_pole[2,1] = glob_large_float) or (array_complex_pole[2,2] = glob_large_float)))) then # if number 3 > array_poles[2,1] := glob_large_float; > array_poles[2,2] := glob_large_float; > found_sing := 2; > array_type_pole[2] := 3; > if (reached_interval()) then # if number 4 > omniout_str(ALWAYS,"NO POLE for equation 2"); > fi;# end if 4; > fi;# end if 3; > if (2 <> found_sing and ((array_real_pole[2,1] < array_complex_pole[2,1]) and (array_real_pole[2,1] > 0.0) and (array_real_pole[2,2] > -1.0 * glob_smallish_float))) then # if number 3 > array_poles[2,1] := array_real_pole[2,1]; > array_poles[2,2] := array_real_pole[2,2]; > found_sing := 2; > array_type_pole[2] := 1; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Real estimate of pole used for equation 2"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (2 <> found_sing and ((array_complex_pole[2,1] <> glob_large_float) and (array_complex_pole[2,2] <> glob_large_float) and (array_complex_pole[2,1] > 0.0) and (array_complex_pole[2,2] > 0.0))) then # if number 3 > array_poles[2,1] := array_complex_pole[2,1]; > array_poles[2,2] := array_complex_pole[2,2]; > array_type_pole[2] := 2; > found_sing := 2; > if (glob_display_flag) then # if number 4 > if (reached_interval()) then # if number 5 > omniout_str(ALWAYS,"Complex estimate of poles used for equation 2"); > fi;# end if 5; > fi;# end if 4; > fi;# end if 3; > if (2 <> found_sing ) then # if number 3 > array_poles[2,1] := glob_large_float; > array_poles[2,2] := glob_large_float; > array_type_pole[2] := 3; > if (reached_interval()) then # if number 4 > omniout_str(ALWAYS,"NO POLE for equation 2"); > fi;# end if 4; > fi;# end if 3; > #BOTTOM WHICH RADII EQ = 2 > 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 3 > array_pole[1] := array_poles[1,1]; > array_pole[2] := array_poles[1,2]; > fi;# end if 3; > #BOTTOM WHICH RADIUS EQ = 1 > #TOP WHICH RADIUS EQ = 2 > if (array_pole[1] > array_poles[2,1]) then # if number 3 > array_pole[1] := array_poles[2,1]; > array_pole[2] := array_poles[2,2]; > fi;# end if 3; > #BOTTOM WHICH RADIUS EQ = 2 > #START ADJUST ALL SERIES > if (array_pole[1] * glob_ratio_of_radius < omniabs(glob_h)) then # if number 3 > h_new := array_pole[1] * glob_ratio_of_radius; > term := 1; > ratio := 1.0; > while (term <= glob_max_terms) do # do number 2 > array_x1[term] := array_x1[term]* ratio; > array_x1_higher[1,term] := array_x1_higher[1,term]* ratio; > array_t[term] := array_t[term]* ratio; > array_x2[term] := array_x2[term]* ratio; > array_x2_higher[1,term] := array_x2_higher[1,term]* ratio; > array_t[term] := array_t[term]* ratio; > ratio := ratio * h_new / omniabs(glob_h); > term := term + 1; > od;# end do number 2; > glob_h := h_new; > fi;# end if 3; > #BOTTOM ADJUST ALL SERIES > if (reached_interval()) then # if number 3 > display_pole(); > fi;# end if 3 > end; check_for_pole := proc() local cnt, dr1, dr2, ds1, ds2, hdrc, hdrc_BBB, m, n, nr1, nr2, ord_no, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; n := glob_max_terms; m := n - 2; while 10 <= m and ( omniabs(array_x1_higher[1, m]) < glob_small_float*glob_small_float or omniabs(array_x1_higher[1, m - 1]) < glob_small_float*glob_small_float or omniabs(array_x1_higher[1, m - 2]) < glob_small_float*glob_small_float) do m := m - 1 end do; if 10 < m then rm0 := array_x1_higher[1, m]/array_x1_higher[1, m - 1]; rm1 := array_x1_higher[1, m - 1]/array_x1_higher[1, m - 2]; hdrc := convfloat(m)*rm0 - convfloat(m - 1)*rm1; if glob_small_float*glob_small_float < omniabs(hdrc) then rcs := glob_h/hdrc; ord_no := ( rm1*convfloat((m - 2)*(m - 2)) - rm0*convfloat(m - 3))/hdrc ; 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; m := n - 3; while 10 <= m and ( omniabs(array_x2_higher[1, m]) < glob_small_float*glob_small_float or omniabs(array_x2_higher[1, m - 1]) < glob_small_float*glob_small_float or omniabs(array_x2_higher[1, m - 2]) < glob_small_float*glob_small_float) do m := m - 1 end do; if 10 < m then rm0 := array_x2_higher[1, m]/array_x2_higher[1, m - 1]; rm1 := array_x2_higher[1, m - 1]/array_x2_higher[1, m - 2]; hdrc := convfloat(m)*rm0 - convfloat(m - 1)*rm1; if glob_small_float*glob_small_float < omniabs(hdrc) then rcs := glob_h/hdrc; ord_no := ( rm1*convfloat((m - 2)*(m - 2)) - rm0*convfloat(m - 3))/hdrc ; array_real_pole[2, 1] := rcs; array_real_pole[2, 2] := ord_no else array_real_pole[2, 1] := glob_large_float; array_real_pole[2, 2] := glob_large_float end if else array_real_pole[2, 1] := glob_large_float; array_real_pole[2, 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_x1_higher[1, n]) then cnt := cnt + 1 else cnt := 0 end if; n := n - 1 end do; m := n + cnt; if m <= 10 then rad_c := glob_large_float; ord_no := glob_large_float elif glob_large_float <= omniabs(array_x1_higher[1, m]) or glob_large_float <= omniabs(array_x1_higher[1, m - 1]) or glob_large_float <= omniabs(array_x1_higher[1, m - 2]) or glob_large_float <= omniabs(array_x1_higher[1, m - 3]) or glob_large_float <= omniabs(array_x1_higher[1, m - 4]) or glob_large_float <= omniabs(array_x1_higher[1, m - 5]) or omniabs(array_x1_higher[1, m]) <= glob_small_float or omniabs(array_x1_higher[1, m - 1]) <= glob_small_float or omniabs(array_x1_higher[1, m - 2]) <= glob_small_float or omniabs(array_x1_higher[1, m - 3]) <= glob_small_float or omniabs(array_x1_higher[1, m - 4]) <= glob_small_float or omniabs(array_x1_higher[1, m - 5]) <= glob_small_float then rad_c := glob_large_float; ord_no := glob_large_float else rm0 := array_x1_higher[1, m]/array_x1_higher[1, m - 1]; rm1 := array_x1_higher[1, m - 1]/array_x1_higher[1, m - 2]; rm2 := array_x1_higher[1, m - 2]/array_x1_higher[1, m - 3]; rm3 := array_x1_higher[1, m - 3]/array_x1_higher[1, m - 4]; rm4 := array_x1_higher[1, m - 4]/array_x1_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 rad_c := glob_large_float; ord_no := 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)*omniabs(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; n := glob_max_terms - 3; cnt := 0; while cnt < 5 and 10 <= n do if glob_small_float < omniabs(array_x2_higher[1, n]) then cnt := cnt + 1 else cnt := 0 end if; n := n - 1 end do; m := n + cnt; if m <= 10 then rad_c := glob_large_float; ord_no := glob_large_float elif glob_large_float <= omniabs(array_x2_higher[1, m]) or glob_large_float <= omniabs(array_x2_higher[1, m - 1]) or glob_large_float <= omniabs(array_x2_higher[1, m - 2]) or glob_large_float <= omniabs(array_x2_higher[1, m - 3]) or glob_large_float <= omniabs(array_x2_higher[1, m - 4]) or glob_large_float <= omniabs(array_x2_higher[1, m - 5]) or omniabs(array_x2_higher[1, m]) <= glob_small_float or omniabs(array_x2_higher[1, m - 1]) <= glob_small_float or omniabs(array_x2_higher[1, m - 2]) <= glob_small_float or omniabs(array_x2_higher[1, m - 3]) <= glob_small_float or omniabs(array_x2_higher[1, m - 4]) <= glob_small_float or omniabs(array_x2_higher[1, m - 5]) <= glob_small_float then rad_c := glob_large_float; ord_no := glob_large_float else rm0 := array_x2_higher[1, m]/array_x2_higher[1, m - 1]; rm1 := array_x2_higher[1, m - 1]/array_x2_higher[1, m - 2]; rm2 := array_x2_higher[1, m - 2]/array_x2_higher[1, m - 3]; rm3 := array_x2_higher[1, m - 3]/array_x2_higher[1, m - 4]; rm4 := array_x2_higher[1, m - 4]/array_x2_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 rad_c := glob_large_float; ord_no := 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)*omniabs(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[2, 1] := rad_c; array_complex_pole[2, 2] := ord_no end if; found_sing := 0; if 1 <> found_sing 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_sing := 1; array_type_pole[1] := 2; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Complex estimate of poles used for equation 1") end if end if end if; if 1 <> found_sing 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 -1.0*glob_smallish_float < 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_sing := 1; array_type_pole[1] := 1; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Real estimate of pole used for equation 1") end if end if end if; if 1 <> found_sing 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_sing := 1; array_type_pole[1] := 3; if reached_interval() then omniout_str(ALWAYS, "NO POLE for equation 1") end if end if; if 1 <> found_sing and array_real_pole[1, 1] < array_complex_pole[1, 1] and 0. < array_real_pole[1, 1] and -1.0*glob_smallish_float < 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_sing := 1; array_type_pole[1] := 1; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Real estimate of pole used for equation 1") end if end if end if; if 1 <> found_sing 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_sing := 1; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Complex estimate of poles used for equation 1") end if end if end if; if 1 <> found_sing then array_poles[1, 1] := glob_large_float; array_poles[1, 2] := glob_large_float; array_type_pole[1] := 3; if reached_interval() then omniout_str(ALWAYS, "NO POLE for equation 1") end if end if; if 2 <> found_sing and (array_real_pole[2, 1] = glob_large_float or array_real_pole[2, 2] = glob_large_float) and array_complex_pole[2, 1] <> glob_large_float and array_complex_pole[2, 2] <> glob_large_float and 0. < array_complex_pole[2, 1] and 0. < array_complex_pole[2, 2] then array_poles[2, 1] := array_complex_pole[2, 1]; array_poles[2, 2] := array_complex_pole[2, 2]; found_sing := 2; array_type_pole[2] := 2; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Complex estimate of poles used for equation 2") end if end if end if; if 2 <> found_sing and array_real_pole[2, 1] <> glob_large_float and array_real_pole[2, 2] <> glob_large_float and 0. < array_real_pole[2, 1] and -1.0*glob_smallish_float < array_real_pole[2, 2] and ( array_complex_pole[2, 1] = glob_large_float or array_complex_pole[2, 2] = glob_large_float or array_complex_pole[2, 1] <= 0. or array_complex_pole[2, 2] <= 0.) then array_poles[2, 1] := array_real_pole[2, 1]; array_poles[2, 2] := array_real_pole[2, 2]; found_sing := 2; array_type_pole[2] := 1; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Real estimate of pole used for equation 2") end if end if end if; if 2 <> found_sing and (array_real_pole[2, 1] = glob_large_float or array_real_pole[2, 2] = glob_large_float) and ( array_complex_pole[2, 1] = glob_large_float or array_complex_pole[2, 2] = glob_large_float) then array_poles[2, 1] := glob_large_float; array_poles[2, 2] := glob_large_float; found_sing := 2; array_type_pole[2] := 3; if reached_interval() then omniout_str(ALWAYS, "NO POLE for equation 2") end if end if; if 2 <> found_sing and array_real_pole[2, 1] < array_complex_pole[2, 1] and 0. < array_real_pole[2, 1] and -1.0*glob_smallish_float < array_real_pole[2, 2] then array_poles[2, 1] := array_real_pole[2, 1]; array_poles[2, 2] := array_real_pole[2, 2]; found_sing := 2; array_type_pole[2] := 1; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Real estimate of pole used for equation 2") end if end if end if; if 2 <> found_sing and array_complex_pole[2, 1] <> glob_large_float and array_complex_pole[2, 2] <> glob_large_float and 0. < array_complex_pole[2, 1] and 0. < array_complex_pole[2, 2] then array_poles[2, 1] := array_complex_pole[2, 1]; array_poles[2, 2] := array_complex_pole[2, 2]; array_type_pole[2] := 2; found_sing := 2; if glob_display_flag then if reached_interval() then omniout_str(ALWAYS, "Complex estimate of poles used for equation 2") end if end if end if; if 2 <> found_sing then array_poles[2, 1] := glob_large_float; array_poles[2, 2] := glob_large_float; array_type_pole[2] := 3; if reached_interval() then omniout_str(ALWAYS, "NO POLE for equation 2") 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; if array_poles[2, 1] < array_pole[1] then array_pole[1] := array_poles[2, 1]; array_pole[2] := array_poles[2, 2] end if; if array_pole[1]*glob_ratio_of_radius < omniabs(glob_h) then h_new := array_pole[1]*glob_ratio_of_radius; term := 1; ratio := 1.0; while term <= glob_max_terms do array_x1[term] := array_x1[term]*ratio; array_x1_higher[1, term] := array_x1_higher[1, term]*ratio; array_t[term] := array_t[term]*ratio; array_x2[term] := array_x2[term]*ratio; array_x2_higher[1, term] := array_x2_higher[1, term]*ratio; array_t[term] := array_t[term]*ratio; ratio := ratio*h_new/omniabs(glob_h); term := term + 1 end do; glob_h := h_new end if; if reached_interval() then display_pole() end if end proc > # End Function number 10 > # Begin Function number 11 > get_norms := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local iii; > if ( not glob_initial_pass) then # if number 3 > 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_x1[iii]) > array_norms[iii]) then # if number 4 > array_norms[iii] := omniabs(array_x1[iii]); > fi;# end if 4; > iii := iii + 1; > od;# end do number 2 > ; > iii := 1; > while (iii <= glob_max_terms) do # do number 2 > if (omniabs(array_x2[iii]) > array_norms[iii]) then # if number 4 > array_norms[iii] := omniabs(array_x2[iii]); > fi;# end if 4; > iii := iii + 1; > od;# end do number 2 > #BOTTOM GET NORMS > ; > fi;# end if 3; > end; get_norms := proc() local iii; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, 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_x1[iii]) then array_norms[iii] := omniabs(array_x1[iii]) end if; iii := iii + 1 end do; iii := 1; while iii <= glob_max_terms do if array_norms[iii] < omniabs(array_x2[iii]) then array_norms[iii] := omniabs(array_x2[iii]) end if; iii := iii + 1 end do end if end proc > # End Function number 11 > # Begin Function number 12 > atomall := proc() > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > local kkk, order_d, adj2, adj3 , temporary, term; > #TOP ATOMALL > #END OUTFILE1 > #BEGIN ATOMHDR1 > #emit pre mult CONST FULL $eq_no = 1 i = 1 > array_tmp1[1] := array_const_4D0[1] * array_x2[1]; > #emit pre add CONST FULL $eq_no = 1 i = 1 > array_tmp2[1] := array_const_0D0[1] + array_tmp1[1]; > #emit pre diff $eq_no = 1 i = 1 order_d = 1 > array_tmp3[1] := array_x2_higher[2,1]; > #emit pre mult CONST FULL $eq_no = 1 i = 1 > array_tmp4[1] := array_const_2D0[1] * array_tmp3[1]; > #emit pre sub FULL FULL $eq_no = 1 i = 1 > array_tmp5[1] := array_tmp2[1] - array_tmp4[1]; > #emit pre mult CONST FULL $eq_no = 1 i = 1 > array_tmp6[1] := array_const_2D0[1] * array_x1[1]; > #emit pre sub FULL FULL $eq_no = 1 i = 1 > array_tmp7[1] := array_tmp5[1] - array_tmp6[1]; > #emit pre assign xxx $eq_no = 1 i = 1 $min_hdrs = 5 > if ( not array_x1_set_initial[1,2]) then # if number 1 > if (1 <= glob_max_terms) then # if number 2 > temporary := array_tmp7[1] * expt(glob_h , (1)) * factorial_3(0,1); > array_x1[2] := temporary; > array_x1_higher[1,2] := temporary; > temporary := temporary / glob_h * (1.0); > array_x1_higher[2,1] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 2; > #emit pre diff $eq_no = 2 i = 1 order_d = 1 > array_tmp9[1] := array_x2_higher[2,1]; > #emit pre mult CONST FULL $eq_no = 2 i = 1 > array_tmp10[1] := array_const_3D0[1] * array_tmp9[1]; > #emit pre mult CONST FULL $eq_no = 2 i = 1 > array_tmp11[1] := array_const_2D0[1] * array_x2[1]; > #emit pre sub FULL FULL $eq_no = 2 i = 1 > array_tmp12[1] := array_tmp10[1] - array_tmp11[1]; > #emit pre diff $eq_no = 2 i = 1 order_d = 2 > array_tmp13[1] := array_x1_higher[3,1]; > #emit pre sub FULL FULL $eq_no = 2 i = 1 > array_tmp14[1] := array_tmp12[1] - array_tmp13[1]; > #emit pre diff $eq_no = 2 i = 1 order_d = 1 > array_tmp15[1] := array_x1_higher[2,1]; > #emit pre sub FULL FULL $eq_no = 2 i = 1 > array_tmp16[1] := array_tmp14[1] - array_tmp15[1]; > #emit pre add FULL FULL $eq_no = 2 i = 1 > array_tmp17[1] := array_tmp16[1] + array_x1[1]; > #emit pre assign xxx $eq_no = 2 i = 1 $min_hdrs = 5 > if ( not array_x2_set_initial[2,3]) then # if number 1 > if (1 <= glob_max_terms) then # if number 2 > temporary := array_tmp17[1] * expt(glob_h , (2)) * factorial_3(0,2); > array_x2[3] := temporary; > array_x2_higher[1,3] := temporary; > temporary := temporary / glob_h * (2.0); > array_x2_higher[2,2] := temporary; > temporary := temporary / glob_h * (1.0); > array_x2_higher[3,1] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 2; > #END ATOMHDR1 > #BEGIN ATOMHDR2 > #emit pre mult CONST FULL $eq_no = 1 i = 2 > array_tmp1[2] := array_const_4D0[1] * array_x2[2]; > #emit pre add CONST FULL $eq_no = 1 i = 2 > array_tmp2[2] := array_tmp1[2]; > #emit pre diff $eq_no = 1 i = 2 order_d = 1 > array_tmp3[2] := array_x2_higher[2,2]; > #emit pre mult CONST FULL $eq_no = 1 i = 2 > array_tmp4[2] := array_const_2D0[1] * array_tmp3[2]; > #emit pre sub FULL FULL $eq_no = 1 i = 2 > array_tmp5[2] := array_tmp2[2] - array_tmp4[2]; > #emit pre mult CONST FULL $eq_no = 1 i = 2 > array_tmp6[2] := array_const_2D0[1] * array_x1[2]; > #emit pre sub FULL FULL $eq_no = 1 i = 2 > array_tmp7[2] := array_tmp5[2] - array_tmp6[2]; > #emit pre assign xxx $eq_no = 1 i = 2 $min_hdrs = 5 > if ( not array_x1_set_initial[1,3]) then # if number 1 > if (2 <= glob_max_terms) then # if number 2 > temporary := array_tmp7[2] * expt(glob_h , (1)) * factorial_3(1,2); > array_x1[3] := temporary; > array_x1_higher[1,3] := temporary; > temporary := temporary / glob_h * (2.0); > array_x1_higher[2,2] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 3; > #emit pre diff $eq_no = 2 i = 2 order_d = 1 > array_tmp9[2] := array_x2_higher[2,2]; > #emit pre mult CONST FULL $eq_no = 2 i = 2 > array_tmp10[2] := array_const_3D0[1] * array_tmp9[2]; > #emit pre mult CONST FULL $eq_no = 2 i = 2 > array_tmp11[2] := array_const_2D0[1] * array_x2[2]; > #emit pre sub FULL FULL $eq_no = 2 i = 2 > array_tmp12[2] := array_tmp10[2] - array_tmp11[2]; > #emit pre diff $eq_no = 2 i = 2 order_d = 2 > array_tmp13[2] := array_x1_higher[3,2]; > #emit pre sub FULL FULL $eq_no = 2 i = 2 > array_tmp14[2] := array_tmp12[2] - array_tmp13[2]; > #emit pre diff $eq_no = 2 i = 2 order_d = 1 > array_tmp15[2] := array_x1_higher[2,2]; > #emit pre sub FULL FULL $eq_no = 2 i = 2 > array_tmp16[2] := array_tmp14[2] - array_tmp15[2]; > #emit pre add FULL FULL $eq_no = 2 i = 2 > array_tmp17[2] := array_tmp16[2] + array_x1[2]; > #emit pre assign xxx $eq_no = 2 i = 2 $min_hdrs = 5 > if ( not array_x2_set_initial[2,4]) then # if number 1 > if (2 <= glob_max_terms) then # if number 2 > temporary := array_tmp17[2] * expt(glob_h , (2)) * factorial_3(1,3); > array_x2[4] := temporary; > array_x2_higher[1,4] := temporary; > temporary := temporary / glob_h * (3.0); > array_x2_higher[2,3] := temporary; > temporary := temporary / glob_h * (2.0); > array_x2_higher[3,2] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 3; > #END ATOMHDR2 > #BEGIN ATOMHDR3 > #emit pre mult CONST FULL $eq_no = 1 i = 3 > array_tmp1[3] := array_const_4D0[1] * array_x2[3]; > #emit pre add CONST FULL $eq_no = 1 i = 3 > array_tmp2[3] := array_tmp1[3]; > #emit pre diff $eq_no = 1 i = 3 order_d = 1 > array_tmp3[3] := array_x2_higher[2,3]; > #emit pre mult CONST FULL $eq_no = 1 i = 3 > array_tmp4[3] := array_const_2D0[1] * array_tmp3[3]; > #emit pre sub FULL FULL $eq_no = 1 i = 3 > array_tmp5[3] := array_tmp2[3] - array_tmp4[3]; > #emit pre mult CONST FULL $eq_no = 1 i = 3 > array_tmp6[3] := array_const_2D0[1] * array_x1[3]; > #emit pre sub FULL FULL $eq_no = 1 i = 3 > array_tmp7[3] := array_tmp5[3] - array_tmp6[3]; > #emit pre assign xxx $eq_no = 1 i = 3 $min_hdrs = 5 > if ( not array_x1_set_initial[1,4]) then # if number 1 > if (3 <= glob_max_terms) then # if number 2 > temporary := array_tmp7[3] * expt(glob_h , (1)) * factorial_3(2,3); > array_x1[4] := temporary; > array_x1_higher[1,4] := temporary; > temporary := temporary / glob_h * (3.0); > array_x1_higher[2,3] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 4; > #emit pre diff $eq_no = 2 i = 3 order_d = 1 > array_tmp9[3] := array_x2_higher[2,3]; > #emit pre mult CONST FULL $eq_no = 2 i = 3 > array_tmp10[3] := array_const_3D0[1] * array_tmp9[3]; > #emit pre mult CONST FULL $eq_no = 2 i = 3 > array_tmp11[3] := array_const_2D0[1] * array_x2[3]; > #emit pre sub FULL FULL $eq_no = 2 i = 3 > array_tmp12[3] := array_tmp10[3] - array_tmp11[3]; > #emit pre diff $eq_no = 2 i = 3 order_d = 2 > array_tmp13[3] := array_x1_higher[3,3]; > #emit pre sub FULL FULL $eq_no = 2 i = 3 > array_tmp14[3] := array_tmp12[3] - array_tmp13[3]; > #emit pre diff $eq_no = 2 i = 3 order_d = 1 > array_tmp15[3] := array_x1_higher[2,3]; > #emit pre sub FULL FULL $eq_no = 2 i = 3 > array_tmp16[3] := array_tmp14[3] - array_tmp15[3]; > #emit pre add FULL FULL $eq_no = 2 i = 3 > array_tmp17[3] := array_tmp16[3] + array_x1[3]; > #emit pre assign xxx $eq_no = 2 i = 3 $min_hdrs = 5 > if ( not array_x2_set_initial[2,5]) then # if number 1 > if (3 <= glob_max_terms) then # if number 2 > temporary := array_tmp17[3] * expt(glob_h , (2)) * factorial_3(2,4); > array_x2[5] := temporary; > array_x2_higher[1,5] := temporary; > temporary := temporary / glob_h * (4.0); > array_x2_higher[2,4] := temporary; > temporary := temporary / glob_h * (3.0); > array_x2_higher[3,3] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 4; > #END ATOMHDR3 > #BEGIN ATOMHDR4 > #emit pre mult CONST FULL $eq_no = 1 i = 4 > array_tmp1[4] := array_const_4D0[1] * array_x2[4]; > #emit pre add CONST FULL $eq_no = 1 i = 4 > array_tmp2[4] := array_tmp1[4]; > #emit pre diff $eq_no = 1 i = 4 order_d = 1 > array_tmp3[4] := array_x2_higher[2,4]; > #emit pre mult CONST FULL $eq_no = 1 i = 4 > array_tmp4[4] := array_const_2D0[1] * array_tmp3[4]; > #emit pre sub FULL FULL $eq_no = 1 i = 4 > array_tmp5[4] := array_tmp2[4] - array_tmp4[4]; > #emit pre mult CONST FULL $eq_no = 1 i = 4 > array_tmp6[4] := array_const_2D0[1] * array_x1[4]; > #emit pre sub FULL FULL $eq_no = 1 i = 4 > array_tmp7[4] := array_tmp5[4] - array_tmp6[4]; > #emit pre assign xxx $eq_no = 1 i = 4 $min_hdrs = 5 > if ( not array_x1_set_initial[1,5]) then # if number 1 > if (4 <= glob_max_terms) then # if number 2 > temporary := array_tmp7[4] * expt(glob_h , (1)) * factorial_3(3,4); > array_x1[5] := temporary; > array_x1_higher[1,5] := temporary; > temporary := temporary / glob_h * (4.0); > array_x1_higher[2,4] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 5; > #emit pre diff $eq_no = 2 i = 4 order_d = 1 > array_tmp9[4] := array_x2_higher[2,4]; > #emit pre mult CONST FULL $eq_no = 2 i = 4 > array_tmp10[4] := array_const_3D0[1] * array_tmp9[4]; > #emit pre mult CONST FULL $eq_no = 2 i = 4 > array_tmp11[4] := array_const_2D0[1] * array_x2[4]; > #emit pre sub FULL FULL $eq_no = 2 i = 4 > array_tmp12[4] := array_tmp10[4] - array_tmp11[4]; > #emit pre diff $eq_no = 2 i = 4 order_d = 2 > array_tmp13[4] := array_x1_higher[3,4]; > #emit pre sub FULL FULL $eq_no = 2 i = 4 > array_tmp14[4] := array_tmp12[4] - array_tmp13[4]; > #emit pre diff $eq_no = 2 i = 4 order_d = 1 > array_tmp15[4] := array_x1_higher[2,4]; > #emit pre sub FULL FULL $eq_no = 2 i = 4 > array_tmp16[4] := array_tmp14[4] - array_tmp15[4]; > #emit pre add FULL FULL $eq_no = 2 i = 4 > array_tmp17[4] := array_tmp16[4] + array_x1[4]; > #emit pre assign xxx $eq_no = 2 i = 4 $min_hdrs = 5 > if ( not array_x2_set_initial[2,6]) then # if number 1 > if (4 <= glob_max_terms) then # if number 2 > temporary := array_tmp17[4] * expt(glob_h , (2)) * factorial_3(3,5); > array_x2[6] := temporary; > array_x2_higher[1,6] := temporary; > temporary := temporary / glob_h * (5.0); > array_x2_higher[2,5] := temporary; > temporary := temporary / glob_h * (4.0); > array_x2_higher[3,4] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 5; > #END ATOMHDR4 > #BEGIN ATOMHDR5 > #emit pre mult CONST FULL $eq_no = 1 i = 5 > array_tmp1[5] := array_const_4D0[1] * array_x2[5]; > #emit pre add CONST FULL $eq_no = 1 i = 5 > array_tmp2[5] := array_tmp1[5]; > #emit pre diff $eq_no = 1 i = 5 order_d = 1 > array_tmp3[5] := array_x2_higher[2,5]; > #emit pre mult CONST FULL $eq_no = 1 i = 5 > array_tmp4[5] := array_const_2D0[1] * array_tmp3[5]; > #emit pre sub FULL FULL $eq_no = 1 i = 5 > array_tmp5[5] := array_tmp2[5] - array_tmp4[5]; > #emit pre mult CONST FULL $eq_no = 1 i = 5 > array_tmp6[5] := array_const_2D0[1] * array_x1[5]; > #emit pre sub FULL FULL $eq_no = 1 i = 5 > array_tmp7[5] := array_tmp5[5] - array_tmp6[5]; > #emit pre assign xxx $eq_no = 1 i = 5 $min_hdrs = 5 > if ( not array_x1_set_initial[1,6]) then # if number 1 > if (5 <= glob_max_terms) then # if number 2 > temporary := array_tmp7[5] * expt(glob_h , (1)) * factorial_3(4,5); > array_x1[6] := temporary; > array_x1_higher[1,6] := temporary; > temporary := temporary / glob_h * (5.0); > array_x1_higher[2,5] := temporary; > fi;# end if 2; > fi;# end if 1; > kkk := 6; > #emit pre diff $eq_no = 2 i = 5 order_d = 1 > array_tmp9[5] := array_x2_higher[2,5]; > #emit pre mult CONST FULL $eq_no = 2 i = 5 > array_tmp10[5] := array_const_3D0[1] * array_tmp9[5]; > #emit pre mult CONST FULL $eq_no = 2 i = 5 > array_tmp11[5] := array_const_2D0[1] * array_x2[5]; > #emit pre sub FULL FULL $eq_no = 2 i = 5 > array_tmp12[5] := array_tmp10[5] - array_tmp11[5]; > #emit pre diff $eq_no = 2 i = 5 order_d = 2 > array_tmp13[5] := array_x1_higher[3,5]; > #emit pre sub FULL FULL $eq_no = 2 i = 5 > array_tmp14[5] := array_tmp12[5] - array_tmp13[5]; > #emit pre diff $eq_no = 2 i = 5 order_d = 1 > array_tmp15[5] := array_x1_higher[2,5]; > #emit pre sub FULL FULL $eq_no = 2 i = 5 > array_tmp16[5] := array_tmp14[5] - array_tmp15[5]; > #emit pre add FULL FULL $eq_no = 2 i = 5 > array_tmp17[5] := array_tmp16[5] + array_x1[5]; > #emit pre assign xxx $eq_no = 2 i = 5 $min_hdrs = 5 > if ( not array_x2_set_initial[2,7]) then # if number 1 > if (5 <= glob_max_terms) then # if number 2 > temporary := array_tmp17[5] * expt(glob_h , (2)) * factorial_3(4,6); > array_x2[7] := temporary; > array_x2_higher[1,7] := temporary; > temporary := temporary / glob_h * (6.0); > array_x2_higher[2,6] := temporary; > temporary := temporary / glob_h * (5.0); > array_x2_higher[3,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 mult CONST FULL $eq_no = 1 i = 1 > array_tmp1[kkk] := array_const_4D0[1] * array_x2[kkk]; > #emit NOT FULL - FULL add $eq_no = 1 > array_tmp2[kkk] := array_tmp1[kkk]; > #emit diff $eq_no = 1 > array_tmp3[kkk] := array_x2_higher[2,kkk]; > #emit mult CONST FULL $eq_no = 1 i = 1 > array_tmp4[kkk] := array_const_2D0[1] * array_tmp3[kkk]; > #emit FULL - FULL sub $eq_no = 1 > array_tmp5[kkk] := array_tmp2[kkk] - array_tmp4[kkk]; > #emit mult CONST FULL $eq_no = 1 i = 1 > array_tmp6[kkk] := array_const_2D0[1] * array_x1[kkk]; > #emit FULL - FULL sub $eq_no = 1 > array_tmp7[kkk] := array_tmp5[kkk] - array_tmp6[kkk]; > #emit assign $eq_no = 1 > order_d := 1; > if (kkk + order_d + 1 <= glob_max_terms) then # if number 1 > if ( not array_x1_set_initial[1,kkk + order_d]) then # if number 2 > temporary := array_tmp7[kkk] * expt(glob_h , (order_d)) * factorial_3((kkk - 1),(kkk + order_d - 1)); > array_x1[kkk + order_d] := temporary; > array_x1_higher[1,kkk + order_d] := temporary; > term := kkk + order_d - 1; > adj2 := kkk + order_d - 1; > adj3 := 2; > while (term >= 1) do # do number 2 > if (adj3 <= order_d + 1) then # if number 3 > if (adj2 > 0) then # if number 4 > temporary := temporary / glob_h * convfp(adj2); > else > temporary := temporary; > fi;# end if 4; > array_x1_higher[adj3,term] := temporary; > fi;# end if 3; > term := term - 1; > adj2 := adj2 - 1; > adj3 := adj3 + 1; > od;# end do number 2 > fi;# end if 2 > fi;# end if 1; > #emit diff $eq_no = 2 > array_tmp9[kkk] := array_x2_higher[2,kkk]; > #emit mult CONST FULL $eq_no = 2 i = 1 > array_tmp10[kkk] := array_const_3D0[1] * array_tmp9[kkk]; > #emit mult CONST FULL $eq_no = 2 i = 1 > array_tmp11[kkk] := array_const_2D0[1] * array_x2[kkk]; > #emit FULL - FULL sub $eq_no = 2 > array_tmp12[kkk] := array_tmp10[kkk] - array_tmp11[kkk]; > #emit diff $eq_no = 2 > array_tmp13[kkk] := array_x1_higher[3,kkk]; > #emit FULL - FULL sub $eq_no = 2 > array_tmp14[kkk] := array_tmp12[kkk] - array_tmp13[kkk]; > #emit diff $eq_no = 2 > array_tmp15[kkk] := array_x1_higher[2,kkk]; > #emit FULL - FULL sub $eq_no = 2 > array_tmp16[kkk] := array_tmp14[kkk] - array_tmp15[kkk]; > #emit FULL - FULL add $eq_no = 2 > array_tmp17[kkk] := array_tmp16[kkk] + array_x1[kkk]; > #emit assign $eq_no = 2 > order_d := 2; > if (kkk + order_d + 1 <= glob_max_terms) then # if number 1 > if ( not array_x2_set_initial[2,kkk + order_d]) then # if number 2 > temporary := array_tmp17[kkk] * expt(glob_h , (order_d)) * factorial_3((kkk - 1),(kkk + order_d - 1)); > array_x2[kkk + order_d] := temporary; > array_x2_higher[1,kkk + order_d] := temporary; > term := kkk + order_d - 1; > adj2 := kkk + order_d - 1; > adj3 := 2; > while (term >= 1) do # do number 2 > if (adj3 <= order_d + 1) then # if number 3 > if (adj2 > 0) then # if number 4 > temporary := temporary / glob_h * convfp(adj2); > else > temporary := temporary; > fi;# end if 4; > array_x2_higher[adj3,term] := temporary; > fi;# end if 3; > term := term - 1; > adj2 := adj2 - 1; > adj3 := adj3 + 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; atomall := proc() local kkk, order_d, adj2, adj3, temporary, term; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; array_tmp1[1] := array_const_4D0[1]*array_x2[1]; array_tmp2[1] := array_const_0D0[1] + array_tmp1[1]; array_tmp3[1] := array_x2_higher[2, 1]; array_tmp4[1] := array_const_2D0[1]*array_tmp3[1]; array_tmp5[1] := array_tmp2[1] - array_tmp4[1]; array_tmp6[1] := array_const_2D0[1]*array_x1[1]; array_tmp7[1] := array_tmp5[1] - array_tmp6[1]; if not array_x1_set_initial[1, 2] then if 1 <= glob_max_terms then temporary := array_tmp7[1]*expt(glob_h, 1)*factorial_3(0, 1); array_x1[2] := temporary; array_x1_higher[1, 2] := temporary; temporary := temporary*1.0/glob_h; array_x1_higher[2, 1] := temporary end if end if; kkk := 2; array_tmp9[1] := array_x2_higher[2, 1]; array_tmp10[1] := array_const_3D0[1]*array_tmp9[1]; array_tmp11[1] := array_const_2D0[1]*array_x2[1]; array_tmp12[1] := array_tmp10[1] - array_tmp11[1]; array_tmp13[1] := array_x1_higher[3, 1]; array_tmp14[1] := array_tmp12[1] - array_tmp13[1]; array_tmp15[1] := array_x1_higher[2, 1]; array_tmp16[1] := array_tmp14[1] - array_tmp15[1]; array_tmp17[1] := array_tmp16[1] + array_x1[1]; if not array_x2_set_initial[2, 3] then if 1 <= glob_max_terms then temporary := array_tmp17[1]*expt(glob_h, 2)*factorial_3(0, 2); array_x2[3] := temporary; array_x2_higher[1, 3] := temporary; temporary := temporary*2.0/glob_h; array_x2_higher[2, 2] := temporary; temporary := temporary*1.0/glob_h; array_x2_higher[3, 1] := temporary end if end if; kkk := 2; array_tmp1[2] := array_const_4D0[1]*array_x2[2]; array_tmp2[2] := array_tmp1[2]; array_tmp3[2] := array_x2_higher[2, 2]; array_tmp4[2] := array_const_2D0[1]*array_tmp3[2]; array_tmp5[2] := array_tmp2[2] - array_tmp4[2]; array_tmp6[2] := array_const_2D0[1]*array_x1[2]; array_tmp7[2] := array_tmp5[2] - array_tmp6[2]; if not array_x1_set_initial[1, 3] then if 2 <= glob_max_terms then temporary := array_tmp7[2]*expt(glob_h, 1)*factorial_3(1, 2); array_x1[3] := temporary; array_x1_higher[1, 3] := temporary; temporary := temporary*2.0/glob_h; array_x1_higher[2, 2] := temporary end if end if; kkk := 3; array_tmp9[2] := array_x2_higher[2, 2]; array_tmp10[2] := array_const_3D0[1]*array_tmp9[2]; array_tmp11[2] := array_const_2D0[1]*array_x2[2]; array_tmp12[2] := array_tmp10[2] - array_tmp11[2]; array_tmp13[2] := array_x1_higher[3, 2]; array_tmp14[2] := array_tmp12[2] - array_tmp13[2]; array_tmp15[2] := array_x1_higher[2, 2]; array_tmp16[2] := array_tmp14[2] - array_tmp15[2]; array_tmp17[2] := array_tmp16[2] + array_x1[2]; if not array_x2_set_initial[2, 4] then if 2 <= glob_max_terms then temporary := array_tmp17[2]*expt(glob_h, 2)*factorial_3(1, 3); array_x2[4] := temporary; array_x2_higher[1, 4] := temporary; temporary := temporary*3.0/glob_h; array_x2_higher[2, 3] := temporary; temporary := temporary*2.0/glob_h; array_x2_higher[3, 2] := temporary end if end if; kkk := 3; array_tmp1[3] := array_const_4D0[1]*array_x2[3]; array_tmp2[3] := array_tmp1[3]; array_tmp3[3] := array_x2_higher[2, 3]; array_tmp4[3] := array_const_2D0[1]*array_tmp3[3]; array_tmp5[3] := array_tmp2[3] - array_tmp4[3]; array_tmp6[3] := array_const_2D0[1]*array_x1[3]; array_tmp7[3] := array_tmp5[3] - array_tmp6[3]; if not array_x1_set_initial[1, 4] then if 3 <= glob_max_terms then temporary := array_tmp7[3]*expt(glob_h, 1)*factorial_3(2, 3); array_x1[4] := temporary; array_x1_higher[1, 4] := temporary; temporary := temporary*3.0/glob_h; array_x1_higher[2, 3] := temporary end if end if; kkk := 4; array_tmp9[3] := array_x2_higher[2, 3]; array_tmp10[3] := array_const_3D0[1]*array_tmp9[3]; array_tmp11[3] := array_const_2D0[1]*array_x2[3]; array_tmp12[3] := array_tmp10[3] - array_tmp11[3]; array_tmp13[3] := array_x1_higher[3, 3]; array_tmp14[3] := array_tmp12[3] - array_tmp13[3]; array_tmp15[3] := array_x1_higher[2, 3]; array_tmp16[3] := array_tmp14[3] - array_tmp15[3]; array_tmp17[3] := array_tmp16[3] + array_x1[3]; if not array_x2_set_initial[2, 5] then if 3 <= glob_max_terms then temporary := array_tmp17[3]*expt(glob_h, 2)*factorial_3(2, 4); array_x2[5] := temporary; array_x2_higher[1, 5] := temporary; temporary := temporary*4.0/glob_h; array_x2_higher[2, 4] := temporary; temporary := temporary*3.0/glob_h; array_x2_higher[3, 3] := temporary end if end if; kkk := 4; array_tmp1[4] := array_const_4D0[1]*array_x2[4]; array_tmp2[4] := array_tmp1[4]; array_tmp3[4] := array_x2_higher[2, 4]; array_tmp4[4] := array_const_2D0[1]*array_tmp3[4]; array_tmp5[4] := array_tmp2[4] - array_tmp4[4]; array_tmp6[4] := array_const_2D0[1]*array_x1[4]; array_tmp7[4] := array_tmp5[4] - array_tmp6[4]; if not array_x1_set_initial[1, 5] then if 4 <= glob_max_terms then temporary := array_tmp7[4]*expt(glob_h, 1)*factorial_3(3, 4); array_x1[5] := temporary; array_x1_higher[1, 5] := temporary; temporary := temporary*4.0/glob_h; array_x1_higher[2, 4] := temporary end if end if; kkk := 5; array_tmp9[4] := array_x2_higher[2, 4]; array_tmp10[4] := array_const_3D0[1]*array_tmp9[4]; array_tmp11[4] := array_const_2D0[1]*array_x2[4]; array_tmp12[4] := array_tmp10[4] - array_tmp11[4]; array_tmp13[4] := array_x1_higher[3, 4]; array_tmp14[4] := array_tmp12[4] - array_tmp13[4]; array_tmp15[4] := array_x1_higher[2, 4]; array_tmp16[4] := array_tmp14[4] - array_tmp15[4]; array_tmp17[4] := array_tmp16[4] + array_x1[4]; if not array_x2_set_initial[2, 6] then if 4 <= glob_max_terms then temporary := array_tmp17[4]*expt(glob_h, 2)*factorial_3(3, 5); array_x2[6] := temporary; array_x2_higher[1, 6] := temporary; temporary := temporary*5.0/glob_h; array_x2_higher[2, 5] := temporary; temporary := temporary*4.0/glob_h; array_x2_higher[3, 4] := temporary end if end if; kkk := 5; array_tmp1[5] := array_const_4D0[1]*array_x2[5]; array_tmp2[5] := array_tmp1[5]; array_tmp3[5] := array_x2_higher[2, 5]; array_tmp4[5] := array_const_2D0[1]*array_tmp3[5]; array_tmp5[5] := array_tmp2[5] - array_tmp4[5]; array_tmp6[5] := array_const_2D0[1]*array_x1[5]; array_tmp7[5] := array_tmp5[5] - array_tmp6[5]; if not array_x1_set_initial[1, 6] then if 5 <= glob_max_terms then temporary := array_tmp7[5]*expt(glob_h, 1)*factorial_3(4, 5); array_x1[6] := temporary; array_x1_higher[1, 6] := temporary; temporary := temporary*5.0/glob_h; array_x1_higher[2, 5] := temporary end if end if; kkk := 6; array_tmp9[5] := array_x2_higher[2, 5]; array_tmp10[5] := array_const_3D0[1]*array_tmp9[5]; array_tmp11[5] := array_const_2D0[1]*array_x2[5]; array_tmp12[5] := array_tmp10[5] - array_tmp11[5]; array_tmp13[5] := array_x1_higher[3, 5]; array_tmp14[5] := array_tmp12[5] - array_tmp13[5]; array_tmp15[5] := array_x1_higher[2, 5]; array_tmp16[5] := array_tmp14[5] - array_tmp15[5]; array_tmp17[5] := array_tmp16[5] + array_x1[5]; if not array_x2_set_initial[2, 7] then if 5 <= glob_max_terms then temporary := array_tmp17[5]*expt(glob_h, 2)*factorial_3(4, 6); array_x2[7] := temporary; array_x2_higher[1, 7] := temporary; temporary := temporary*6.0/glob_h; array_x2_higher[2, 6] := temporary; temporary := temporary*5.0/glob_h; array_x2_higher[3, 5] := temporary end if end if; kkk := 6; while kkk <= glob_max_terms do array_tmp1[kkk] := array_const_4D0[1]*array_x2[kkk]; array_tmp2[kkk] := array_tmp1[kkk]; array_tmp3[kkk] := array_x2_higher[2, kkk]; array_tmp4[kkk] := array_const_2D0[1]*array_tmp3[kkk]; array_tmp5[kkk] := array_tmp2[kkk] - array_tmp4[kkk]; array_tmp6[kkk] := array_const_2D0[1]*array_x1[kkk]; array_tmp7[kkk] := array_tmp5[kkk] - array_tmp6[kkk]; order_d := 1; if kkk + order_d + 1 <= glob_max_terms then if not array_x1_set_initial[1, kkk + order_d] then temporary := array_tmp7[kkk]*expt(glob_h, order_d)* factorial_3(kkk - 1, kkk + order_d - 1); array_x1[kkk + order_d] := temporary; array_x1_higher[1, kkk + order_d] := temporary; term := kkk + order_d - 1; adj2 := kkk + order_d - 1; adj3 := 2; while 1 <= term do if adj3 <= order_d + 1 then if 0 < adj2 then temporary := temporary*convfp(adj2)/glob_h else temporary := temporary end if; array_x1_higher[adj3, term] := temporary end if; term := term - 1; adj2 := adj2 - 1; adj3 := adj3 + 1 end do end if end if; array_tmp9[kkk] := array_x2_higher[2, kkk]; array_tmp10[kkk] := array_const_3D0[1]*array_tmp9[kkk]; array_tmp11[kkk] := array_const_2D0[1]*array_x2[kkk]; array_tmp12[kkk] := array_tmp10[kkk] - array_tmp11[kkk]; array_tmp13[kkk] := array_x1_higher[3, kkk]; array_tmp14[kkk] := array_tmp12[kkk] - array_tmp13[kkk]; array_tmp15[kkk] := array_x1_higher[2, kkk]; array_tmp16[kkk] := array_tmp14[kkk] - array_tmp15[kkk]; array_tmp17[kkk] := array_tmp16[kkk] + array_x1[kkk]; order_d := 2; if kkk + order_d + 1 <= glob_max_terms then if not array_x2_set_initial[2, kkk + order_d] then temporary := array_tmp17[kkk]*expt(glob_h, order_d)* factorial_3(kkk - 1, kkk + order_d - 1); array_x2[kkk + order_d] := temporary; array_x2_higher[1, kkk + order_d] := temporary; term := kkk + order_d - 1; adj2 := kkk + order_d - 1; adj3 := 2; while 1 <= term do if adj3 <= order_d + 1 then if 0 < adj2 then temporary := temporary*convfp(adj2)/glob_h else temporary := temporary end if; array_x2_higher[adj3, term] := temporary end if; term := term - 1; adj2 := adj2 - 1; adj3 := adj3 + 1 end do end if end if; kkk := kkk + 1 end do end proc > # End Function number 12 > #BEGIN ATS LIBRARY BLOCK > # Begin Function number 2 > omniout_str := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > printf("%s\n",str); > fi;# end if 1; > end; omniout_str := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s\n", str) end if end proc > # End Function number 2 > # Begin Function number 3 > omniout_str_noeol := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > printf("%s",str); > fi;# end if 1; > end; omniout_str_noeol := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s", str) end if end proc > # End Function number 3 > # Begin Function number 4 > omniout_labstr := proc(iolevel,label,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > print(label,str); > fi;# end if 1; > end; omniout_labstr := proc(iolevel, label, str) global glob_iolevel; if iolevel <= glob_iolevel then print(label, str) end if end proc > # End Function number 4 > # Begin Function number 5 > omniout_float := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > if vallen = 4 then > printf("%-30s = %-42.4g %s \n",prelabel,value, postlabel); > else > printf("%-30s = %-42.32g %s \n",prelabel,value, postlabel); > fi;# end if 1; > fi;# end if 0; > 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 > # End Function number 5 > # Begin Function number 6 > omniout_int := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 0 > if vallen = 5 then # if number 1 > printf("%-30s = %-32d %s\n",prelabel,value, postlabel); > else > printf("%-30s = %-32d %s \n",prelabel,value, postlabel); > fi;# end if 1; > fi;# end if 0; > 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 > # End Function number 6 > # Begin Function number 7 > omniout_float_arr := proc(iolevel,prelabel,elemnt,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 0 > print(prelabel,"[",elemnt,"]",value, postlabel); > fi;# end if 0; > 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 > # End Function number 7 > # Begin Function number 8 > dump_series := proc(iolevel,dump_label,series_name,arr_series,numb) > global glob_iolevel; > local i; > if (glob_iolevel >= iolevel) then # if number 0 > i := 1; > while (i <= numb) do # do number 1 > print(dump_label,series_name > ,i,arr_series[i]); > i := i + 1; > od;# end do number 1 > fi;# end if 0 > end; dump_series := proc(iolevel, dump_label, series_name, arr_series, numb) local i; global glob_iolevel; if iolevel <= glob_iolevel then i := 1; while i <= numb do print(dump_label, series_name, i, arr_series[i]); i := i + 1 end do end if end proc > # End Function number 8 > # Begin Function number 9 > dump_series_2 := proc(iolevel,dump_label,series_name2,arr_series2,numb,subnum,arr_x) > global glob_iolevel; > local i,sub,ts_term; > if (glob_iolevel >= iolevel) then # if number 0 > sub := 1; > while (sub <= subnum) do # do number 1 > i := 1; > while (i <= numb) do # do number 2 > print(dump_label,series_name2,sub,i,arr_series2[sub,i]); > od;# end do number 2; > sub := sub + 1; > od;# end do number 1; > fi;# end if 0; > end; dump_series_2 := proc( iolevel, dump_label, series_name2, arr_series2, numb, subnum, arr_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, arr_series2[sub, i]) end do; sub := sub + 1 end do end if end proc > # End Function number 9 > # Begin Function number 10 > cs_info := proc(iolevel,str) > global glob_iolevel,glob_correct_start_flag,glob_h,glob_reached_optimal_h; > if (glob_iolevel >= iolevel) then # if number 0 > 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 if 0; > 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 > # End Function number 10 > # Begin Function number 11 > logitem_time := proc(fd,secs_in) > global glob_sec_in_day, glob_sec_in_hour, glob_sec_in_minute, glob_sec_in_year; > local days_int, hours_int,minutes_int, sec_int, sec_temp, years_int; > fprintf(fd,""); > if (secs_in >= 0) then # if number 0 > years_int := trunc(secs_in / glob_sec_in_year); > sec_temp := (trunc(secs_in) mod trunc(glob_sec_in_year)); > days_int := trunc(sec_temp / glob_sec_in_day) ; > sec_temp := (sec_temp mod trunc(glob_sec_in_day)) ; > hours_int := trunc(sec_temp / glob_sec_in_hour); > sec_temp := (sec_temp mod trunc(glob_sec_in_hour)); > minutes_int := trunc(sec_temp / glob_sec_in_minute); > sec_int := (sec_temp mod trunc(glob_sec_in_minute)); > if (years_int > 0) then # if number 1 > 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 2 > 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 3 > fprintf(fd,"%d Hours %d Minutes %d Seconds",hours_int,minutes_int,sec_int); > elif > (minutes_int > 0) then # if number 4 > fprintf(fd,"%d Minutes %d Seconds",minutes_int,sec_int); > else > fprintf(fd,"%d Seconds",sec_int); > fi;# end if 4 > else > fprintf(fd," Unknown"); > fi;# end if 3 > fprintf(fd,"\n"); > end; logitem_time := proc(fd, secs_in) local days_int, hours_int, minutes_int, sec_int, sec_temp, years_int; global glob_sec_in_day, glob_sec_in_hour, glob_sec_in_minute, glob_sec_in_year; fprintf(fd, ""); if 0 <= secs_in then years_int := trunc(secs_in/glob_sec_in_year); sec_temp := trunc(secs_in) mod trunc(glob_sec_in_year); days_int := trunc(sec_temp/glob_sec_in_day); sec_temp := sec_temp mod trunc(glob_sec_in_day); hours_int := trunc(sec_temp/glob_sec_in_hour); sec_temp := sec_temp mod trunc(glob_sec_in_hour); minutes_int := trunc(sec_temp/glob_sec_in_minute); sec_int := sec_temp mod trunc(glob_sec_in_minute); if 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, "\n") end proc > # End Function number 11 > # Begin Function number 12 > omniout_timestr := proc(secs_in) > global glob_sec_in_day, glob_sec_in_hour, glob_sec_in_minute, glob_sec_in_year; > local days_int, hours_int,minutes_int, sec_int, sec_temp, years_int; > if (secs_in >= 0) then # if number 3 > years_int := trunc(secs_in / glob_sec_in_year); > sec_temp := (trunc(secs_in) mod trunc(glob_sec_in_year)); > days_int := trunc(sec_temp / glob_sec_in_day) ; > sec_temp := (sec_temp mod trunc(glob_sec_in_day)) ; > hours_int := trunc(sec_temp / glob_sec_in_hour); > sec_temp := (sec_temp mod trunc(glob_sec_in_hour)); > minutes_int := trunc(sec_temp / glob_sec_in_minute); > sec_int := (sec_temp mod trunc(glob_sec_in_minute)); > if (years_int > 0) then # if number 4 > 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 5 > 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 6 > printf(" = %d Hours %d Minutes %d Seconds\n",hours_int,minutes_int,sec_int); > elif > (minutes_int > 0) then # if number 7 > printf(" = %d Minutes %d Seconds\n",minutes_int,sec_int); > else > printf(" = %d Seconds\n",sec_int); > fi;# end if 7 > else > printf(" Unknown\n"); > fi;# end if 6 > end; omniout_timestr := proc(secs_in) local days_int, hours_int, minutes_int, sec_int, sec_temp, years_int; global glob_sec_in_day, glob_sec_in_hour, glob_sec_in_minute, glob_sec_in_year; if 0 <= secs_in then years_int := trunc(secs_in/glob_sec_in_year); sec_temp := trunc(secs_in) mod trunc(glob_sec_in_year); days_int := trunc(sec_temp/glob_sec_in_day); sec_temp := sec_temp mod trunc(glob_sec_in_day); hours_int := trunc(sec_temp/glob_sec_in_hour); sec_temp := sec_temp mod trunc(glob_sec_in_hour); minutes_int := trunc(sec_temp/glob_sec_in_minute); sec_int := sec_temp mod trunc(glob_sec_in_minute); if 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 > # End Function number 12 > # Begin Function number 13 > ats := proc(mmm_ats,arr_a,arr_b,jjj_ats) > local iii_ats, lll_ats,ma_ats, ret_ats; > ret_ats := 0.0; > if (jjj_ats <= mmm_ats) then # if number 6 > 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 + arr_a[iii_ats]*arr_b[lll_ats]; > iii_ats := iii_ats + 1; > od;# end do number 1 > fi;# end if 6; > ret_ats; > end; ats := proc(mmm_ats, arr_a, arr_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 + arr_a[iii_ats]*arr_b[lll_ats]; iii_ats := iii_ats + 1 end do end if; ret_ats end proc > # End Function number 13 > # Begin Function number 14 > att := proc(mmm_att,arr_aa,arr_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 6 > 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 7 > ret_att := ret_att + arr_aa[iii_att]*arr_bb[lll_att]* convfp(al_att); > fi;# end if 7; > iii_att := iii_att + 1; > od;# end do number 1; > ret_att := ret_att / convfp(mmm_att) ; > fi;# end if 6; > ret_att; > end; att := proc(mmm_att, arr_aa, arr_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 + arr_aa[iii_att]*arr_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 > # End Function number 14 > # Begin Function number 15 > display_pole_debug := proc(typ,radius,order2) > global ALWAYS,glob_display_flag, glob_large_float, array_pole; > if (typ = 1) then # if number 6 > omniout_str(ALWAYS,"Real"); > else > omniout_str(ALWAYS,"Complex"); > fi;# end if 6; > omniout_float(ALWAYS,"DBG Radius of convergence ",4, radius,4," "); > omniout_float(ALWAYS,"DBG Order of pole ",4, order2,4," "); > end; display_pole_debug := proc(typ, radius, order2) global ALWAYS, glob_display_flag, glob_large_float, array_pole; if typ = 1 then omniout_str(ALWAYS, "Real") else omniout_str(ALWAYS, "Complex") end if; omniout_float(ALWAYS, "DBG Radius of convergence ", 4, radius, 4, " "); omniout_float(ALWAYS, "DBG Order of pole ", 4, order2, 4, " ") end proc > # End Function number 15 > # Begin Function number 16 > 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 6 > 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 6 > 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 > # End Function number 16 > # Begin Function number 17 > logditto := proc(file) > fprintf(file,""); > fprintf(file,"ditto"); > fprintf(file,""); > end; logditto := proc(file) fprintf(file, ""); fprintf(file, "ditto"); fprintf(file, "") end proc > # End Function number 17 > # Begin Function number 18 > logitem_integer := proc(file,n) > fprintf(file,""); > fprintf(file,"%d",n); > fprintf(file,""); > end; logitem_integer := proc(file, n) fprintf(file, ""); fprintf(file, "%d", n); fprintf(file, "") end proc > # End Function number 18 > # Begin Function number 19 > logitem_str := proc(file,str) > fprintf(file,""); > fprintf(file,str); > fprintf(file,""); > end; logitem_str := proc(file, str) fprintf(file, ""); fprintf(file, str); fprintf(file, "") end proc > # End Function number 19 > # Begin Function number 20 > logitem_good_digits := proc(file,rel_error) > global glob_small_float; > local good_digits; > fprintf(file,""); > if (rel_error <> -1.0) then # if number 6 > if (rel_error > + 0.0000000000000000000000000000000001) then # if number 7 > good_digits := 1-trunc(log10(rel_error)); > fprintf(file,"%d",good_digits); > else > good_digits := Digits; > fprintf(file,"%d",good_digits); > fi;# end if 7; > else > fprintf(file,"Unknown"); > fi;# end if 6; > fprintf(file,""); > end; logitem_good_digits := proc(file, rel_error) local good_digits; global glob_small_float; fprintf(file, ""); if rel_error <> -1.0 then if 0.1*10^(-33) < rel_error then good_digits := 1 - trunc(log10(rel_error)); fprintf(file, "%d", good_digits) else good_digits := Digits; fprintf(file, "%d", good_digits) end if else fprintf(file, "Unknown") end if; fprintf(file, "") end proc > # End Function number 20 > # Begin Function number 21 > log_revs := proc(file,revs) > fprintf(file,revs); > end; log_revs := proc(file, revs) fprintf(file, revs) end proc > # End Function number 21 > # Begin Function number 22 > logitem_float := proc(file,x) > fprintf(file,""); > fprintf(file,"%g",x); > fprintf(file,""); > end; logitem_float := proc(file, x) fprintf(file, ""); fprintf(file, "%g", x); fprintf(file, "") end proc > # End Function number 22 > # Begin Function number 23 > logitem_pole := proc(file,pole) > fprintf(file,""); > if (pole = 0) then # if number 6 > fprintf(file,"NA"); > elif > (pole = 1) then # if number 7 > fprintf(file,"Real"); > elif > (pole = 2) then # if number 8 > fprintf(file,"Complex"); > else > fprintf(file,"No Pole"); > fi;# end if 8 > fprintf(file,""); > 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 > # End Function number 23 > # Begin Function number 24 > logstart := proc(file) > fprintf(file,""); > end; logstart := proc(file) fprintf(file, "") end proc > # End Function number 24 > # Begin Function number 25 > logend := proc(file) > fprintf(file,"\n"); > end; logend := proc(file) fprintf(file, "\n") end proc > # End Function number 25 > # Begin Function number 26 > 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 8 > omniout_str(ALWAYS,"Illegal max_terms = -- Using 30"); > glob_max_terms := 30; > fi;# end if 8; > if (glob_max_iter < 2) then # if number 8 > omniout_str(ALWAYS,"Illegal max_iter"); > errflag := true; > fi;# end if 8; > if (errflag) then # if number 8 > quit; > fi;# end if 8 > 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 > # End Function number 26 > # Begin Function number 27 > 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 8 > sec_left := 0.0; > else > if (sub2 > 0.0) then # if number 9 > rrr := (sub1/sub2); > sec_left := rrr * ms2 - ms2; > else > sec_left := 0.0; > fi;# end if 9 > fi;# end if 8; > sec_left; > 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 > # End Function number 27 > # Begin Function number 28 > 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 8 > rrr := (100.0*sub2)/sub1; > else > rrr := 0.0; > fi;# end if 8; > rrr; > 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 > # End Function number 28 > # Begin Function number 29 > factorial_2 := proc(nnn) > nnn!; > end; factorial_2 := proc(nnn) nnn! end proc > # End Function number 29 > # Begin Function number 30 > factorial_1 := proc(nnn) > global glob_max_terms,array_fact_1; > local ret; > if (nnn <= glob_max_terms) then # if number 8 > if (array_fact_1[nnn] = 0) then # if number 9 > ret := factorial_2(nnn); > array_fact_1[nnn] := ret; > else > ret := array_fact_1[nnn]; > fi;# end if 9; > else > ret := factorial_2(nnn); > fi;# end if 8; > ret; > 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 > # End Function number 30 > # Begin Function number 31 > 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 8 > if (array_fact_2[mmm,nnn] = 0) then # if number 9 > ret := factorial_1(mmm)/factorial_1(nnn); > array_fact_2[mmm,nnn] := ret; > else > ret := array_fact_2[mmm,nnn]; > fi;# end if 9; > else > ret := factorial_2(mmm)/factorial_2(nnn); > fi;# end if 8; > ret; > 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 > # End Function number 31 > # Begin Function number 32 > convfp := proc(mmm) > (mmm); > end; convfp := proc(mmm) mmm end proc > # End Function number 32 > # Begin Function number 33 > convfloat := proc(mmm) > (mmm); > end; convfloat := proc(mmm) mmm end proc > # End Function number 33 > # Begin Function number 34 > elapsed_time_seconds := proc() > time(); > end; elapsed_time_seconds := proc() time() end proc > # End Function number 34 > # Begin Function number 35 > omniabs := proc(x) > abs(x); > end; omniabs := proc(x) abs(x) end proc > # End Function number 35 > # Begin Function number 36 > expt := proc(x,y) > (x^y); > end; expt := proc(x, y) x^y end proc > # End Function number 36 > # Begin Function number 37 > estimated_needed_step_error := proc(x_start,x_end,estimated_h,estimated_answer) > local desired_abs_gbl_error,range,estimated_steps,step_error; > global glob_desired_digits_correct,ALWAYS; > omniout_float(ALWAYS,"glob_desired_digits_correct",32,glob_desired_digits_correct,32,""); > desired_abs_gbl_error := expt(10.0,- glob_desired_digits_correct) * omniabs(estimated_answer); > omniout_float(ALWAYS,"desired_abs_gbl_error",32,desired_abs_gbl_error,32,""); > range := (x_end - x_start); > omniout_float(ALWAYS,"range",32,range,32,""); > estimated_steps := range / estimated_h; > omniout_float(ALWAYS,"estimated_steps",32,estimated_steps,32,""); > step_error := omniabs(desired_abs_gbl_error / estimated_steps); > omniout_float(ALWAYS,"step_error",32,step_error,32,""); > (step_error);; > end; estimated_needed_step_error := proc( x_start, x_end, estimated_h, estimated_answer) local desired_abs_gbl_error, range, estimated_steps, step_error; global glob_desired_digits_correct, ALWAYS; omniout_float(ALWAYS, "glob_desired_digits_correct", 32, glob_desired_digits_correct, 32, ""); desired_abs_gbl_error := expt(10.0, -glob_desired_digits_correct)*omniabs(estimated_answer); omniout_float(ALWAYS, "desired_abs_gbl_error", 32, desired_abs_gbl_error, 32, ""); range := x_end - x_start; omniout_float(ALWAYS, "range", 32, range, 32, ""); estimated_steps := range/estimated_h; omniout_float(ALWAYS, "estimated_steps", 32, estimated_steps, 32, ""); step_error := omniabs(desired_abs_gbl_error/estimated_steps); omniout_float(ALWAYS, "step_error", 32, step_error, 32, ""); step_error end proc > # End Function number 37 > #END ATS LIBRARY BLOCK > #BEGIN USER DEF BLOCK > #BEGIN USER DEF BLOCK > exact_soln_x1 := proc(t) > local c1,c2,c3; > c1 := 1.0; > c2 := 0.0002; > c3 := 0.0003; > return(2.0 * c1 + 6.0 * c3 * exp(-t)); > end; exact_soln_x1 := proc(t) local c1, c2, c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return 2.0*c1 + 6.0*c3*exp(-t) end proc > exact_soln_x1p := proc(t) > local c1,c2,c3; > c1 := 1.0; > c2 := 0.0002; > c3 := 0.0003; > return( - 6.0 * c3 * exp(-t)); > end; exact_soln_x1p := proc(t) local c1, c2, c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return -6.0*c3*exp(-t) end proc > exact_soln_x2 := proc(t) > local c1,c2,c3; > c1 := 1.0; > c2 := 0.0002; > c3 := 0.0003; > return(c1 + c2 * exp(2.0 * t) + c3 * exp(-t)); > end; exact_soln_x2 := proc(t) local c1, c2, c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return c1 + c2*exp(2.0*t) + c3*exp(-t) end proc > exact_soln_x2p := proc(t) > local c1,c2,c3; > c1 := 1.0; > c2 := 0.0002; > c3 := 0.0003; > return( 2.0 * c2 * exp(2.0 * t) - c3 * exp(-t)); > end; exact_soln_x2p := proc(t) local c1, c2, c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return 2.0*c2*exp(2.0*t) - c3*exp(-t) 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, > t_start,t_end > ,it, max_terms, opt_iter, tmp,subiter, est_needed_step_err,value3,min_value,est_answer,best_h,found_h,repeat_it; > global > glob_max_terms, > glob_iolevel, > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob_check_sign, > glob_desired_digits_correct, > glob_max_value3, > glob_ratio_of_radius, > glob_percent_done, > glob_subiter_method, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_html_log, > glob_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_sec_in_minute, > glob_min_in_hour, > glob_hours_in_day, > glob_days_in_year, > glob_sec_in_hour, > glob_sec_in_day, > glob_sec_in_year, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_disp_incr, > glob_h, > glob_max_h, > glob_large_float, > glob_last_good_h, > glob_look_poles, > glob_neg_h, > glob_display_interval, > glob_next_display, > glob_dump_analytic, > glob_abserr, > glob_relerr, > glob_max_hours, > glob_max_iter, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_no_eqs, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_small_float, > glob_smallish_float, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_max_sec, > glob_orig_start_sec, > glob_start, > glob_curr_iter_when_opt, > glob_current_iter, > glob_iter, > glob_normmax, > glob_max_minutes, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_1, > array_const_0D0, > array_const_4D0, > array_const_2D0, > array_const_2, > array_const_3D0, > #END CONST > array_x1_init, > array_x2_init, > array_norms, > array_fact_1, > array_pole, > array_1st_rel_error, > array_last_rel_error, > array_type_pole, > array_x1, > array_t, > array_x2, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > array_tmp5, > array_tmp6, > array_tmp7, > array_tmp8, > array_tmp9, > array_tmp10, > array_tmp11, > array_tmp12, > array_tmp13, > array_tmp14, > array_tmp15, > array_tmp16, > array_tmp17, > array_m1, > array_x1_higher, > array_x1_higher_work, > array_x1_higher_work2, > array_x1_set_initial, > array_x2_higher, > array_x2_higher_work, > array_x2_higher_work2, > array_x2_set_initial, > array_poles, > array_real_pole, > array_complex_pole, > array_fact_2, > glob_last; > glob_last; > ALWAYS := 1; > INFO := 2; > DEBUGL := 3; > DEBUGMASSIVE := 4; > glob_iolevel := INFO; > glob_max_terms := 30; > glob_iolevel := 5; > ALWAYS := 1; > INFO := 2; > DEBUGL := 3; > DEBUGMASSIVE := 4; > MAX_UNCHANGED := 10; > glob_check_sign := 1.0; > glob_desired_digits_correct := 8.0; > glob_max_value3 := 0.0; > glob_ratio_of_radius := 0.01; > glob_percent_done := 0.0; > glob_subiter_method := 3; > glob_total_exp_sec := 0.1; > glob_optimal_expect_sec := 0.1; > glob_html_log := true; > glob_good_digits := 0; > glob_max_opt_iter := 10; > glob_dump := false; > glob_djd_debug := true; > glob_display_flag := true; > glob_djd_debug2 := true; > glob_sec_in_minute := 60; > glob_min_in_hour := 60; > glob_hours_in_day := 24; > glob_days_in_year := 365; > glob_sec_in_hour := 3600; > glob_sec_in_day := 86400; > glob_sec_in_year := 31536000; > glob_almost_1 := 0.9990; > glob_clock_sec := 0.0; > glob_clock_start_sec := 0.0; > glob_not_yet_finished := true; > glob_initial_pass := true; > glob_not_yet_start_msg := true; > glob_reached_optimal_h := false; > glob_optimal_done := false; > glob_disp_incr := 0.1; > glob_h := 0.1; > glob_max_h := 0.1; > glob_large_float := 9.0e100; > glob_last_good_h := 0.1; > glob_look_poles := false; > glob_neg_h := false; > glob_display_interval := 0.0; > glob_next_display := 0.0; > glob_dump_analytic := false; > glob_abserr := 0.1e-10; > glob_relerr := 0.1e-10; > glob_max_hours := 0.0; > glob_max_iter := 1000; > glob_max_rel_trunc_err := 0.1e-10; > glob_max_trunc_err := 0.1e-10; > glob_no_eqs := 0; > glob_optimal_clock_start_sec := 0.0; > glob_optimal_start := 0.0; > glob_small_float := 0.1e-200; > glob_smallish_float := 0.1e-100; > glob_unchanged_h_cnt := 0; > glob_warned := false; > glob_warned2 := false; > glob_max_sec := 10000.0; > glob_orig_start_sec := 0.0; > glob_start := 0; > glob_curr_iter_when_opt := 0; > glob_current_iter := 0; > glob_iter := 0; > glob_normmax := 0.0; > glob_max_minutes := 0.0; > #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 := 2; > 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/mtest6_sm_hpostode.ode#################"); > omniout_str(ALWAYS,"diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1;"); > omniout_str(ALWAYS,"diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1;"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#BEGIN FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"Digits:=64;"); > omniout_str(ALWAYS,"max_terms:=30;"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#END FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"## problem from Boyce DePrima -"); > omniout_str(ALWAYS,"## _Elementary Differential Equations and Boundary Value Problems_"); > omniout_str(ALWAYS,"## page 269"); > omniout_str(ALWAYS,"##"); > omniout_str(ALWAYS,"t_start := 1.5;"); > omniout_str(ALWAYS,"## did poorly with t_start := 0.5;"); > omniout_str(ALWAYS,"t_end := 5.0;"); > omniout_str(ALWAYS,"array_x1_init[0 + 1] := exact_soln_x1(t_start);"); > omniout_str(ALWAYS,"## I think following line should be omitted"); > omniout_str(ALWAYS,"## diff(x1,1,exact_soln_x1p(t_start));"); > omniout_str(ALWAYS,"array_x2_init[0 + 1] := exact_soln_x2(t_start);"); > omniout_str(ALWAYS,"array_x2_init[1 + 1] := exact_soln_x2p(t_start);"); > omniout_str(ALWAYS,"glob_look_poles := true;"); > omniout_str(ALWAYS,"glob_max_iter := 100;"); > omniout_str(ALWAYS,"glob_max_h := 0.000001;"); > omniout_str(ALWAYS,"#END SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN OVERRIDE BLOCK"); > omniout_str(ALWAYS,"glob_desired_digits_correct:=10;"); > omniout_str(ALWAYS,"glob_display_interval:=0.001;"); > omniout_str(ALWAYS,"glob_look_poles:=true;"); > omniout_str(ALWAYS,"glob_max_iter:=10000000;"); > omniout_str(ALWAYS,"glob_max_minutes:=3;"); > omniout_str(ALWAYS,"glob_subiter_method:=3;"); > omniout_str(ALWAYS,"#END OVERRIDE BLOCK"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#BEGIN USER DEF BLOCK"); > omniout_str(ALWAYS,"exact_soln_x1 := proc(t)"); > omniout_str(ALWAYS,"local c1,c2,c3;"); > omniout_str(ALWAYS,"c1 := 1.0;"); > omniout_str(ALWAYS,"c2 := 0.0002;"); > omniout_str(ALWAYS,"c3 := 0.0003;"); > omniout_str(ALWAYS,"return(2.0 * c1 + 6.0 * c3 * exp(-t));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_x1p := proc(t)"); > omniout_str(ALWAYS,"local c1,c2,c3;"); > omniout_str(ALWAYS,"c1 := 1.0;"); > omniout_str(ALWAYS,"c2 := 0.0002;"); > omniout_str(ALWAYS,"c3 := 0.0003;"); > omniout_str(ALWAYS,"return( - 6.0 * c3 * exp(-t));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_x2 := proc(t)"); > omniout_str(ALWAYS,"local c1,c2,c3;"); > omniout_str(ALWAYS,"c1 := 1.0;"); > omniout_str(ALWAYS,"c2 := 0.0002;"); > omniout_str(ALWAYS,"c3 := 0.0003;"); > omniout_str(ALWAYS,"return(c1 + c2 * exp(2.0 * t) + c3 * exp(-t));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_x2p := proc(t)"); > omniout_str(ALWAYS,"local c1,c2,c3;"); > omniout_str(ALWAYS,"c1 := 1.0;"); > omniout_str(ALWAYS,"c2 := 0.0002;"); > omniout_str(ALWAYS,"c3 := 0.0003;"); > omniout_str(ALWAYS,"return( 2.0 * c2 * exp(2.0 * t) - c3 * exp(-t));"); > omniout_str(ALWAYS,"end;"); > 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; > #BEGIN FIRST INPUT BLOCK > #BEGIN FIRST INPUT BLOCK > Digits:=64; > max_terms:=30; > #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_x1_init:= Array(0..(max_terms + 1),[]); > array_x2_init:= Array(0..(max_terms + 1),[]); > array_norms:= Array(0..(max_terms + 1),[]); > array_fact_1:= Array(0..(max_terms + 1),[]); > array_pole:= Array(0..(max_terms + 1),[]); > array_1st_rel_error:= Array(0..(max_terms + 1),[]); > array_last_rel_error:= Array(0..(max_terms + 1),[]); > array_type_pole:= Array(0..(max_terms + 1),[]); > array_x1:= Array(0..(max_terms + 1),[]); > array_t:= Array(0..(max_terms + 1),[]); > array_x2:= 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_tmp5:= Array(0..(max_terms + 1),[]); > array_tmp6:= Array(0..(max_terms + 1),[]); > array_tmp7:= Array(0..(max_terms + 1),[]); > array_tmp8:= Array(0..(max_terms + 1),[]); > array_tmp9:= Array(0..(max_terms + 1),[]); > array_tmp10:= Array(0..(max_terms + 1),[]); > array_tmp11:= Array(0..(max_terms + 1),[]); > array_tmp12:= Array(0..(max_terms + 1),[]); > array_tmp13:= Array(0..(max_terms + 1),[]); > array_tmp14:= Array(0..(max_terms + 1),[]); > array_tmp15:= Array(0..(max_terms + 1),[]); > array_tmp16:= Array(0..(max_terms + 1),[]); > array_tmp17:= Array(0..(max_terms + 1),[]); > array_m1:= Array(0..(max_terms + 1),[]); > array_x1_higher := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x1_higher_work := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x1_higher_work2 := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x1_set_initial := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x2_higher := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x2_higher_work := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x2_higher_work2 := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_x2_set_initial := Array(0..(3+ 1) ,(0..max_terms+ 1),[]); > array_poles := Array(0..(2+ 1) ,(0..3+ 1),[]); > array_real_pole := Array(0..(2+ 1) ,(0..3+ 1),[]); > array_complex_pole := Array(0..(2+ 1) ,(0..3+ 1),[]); > array_fact_2 := Array(0..(max_terms+ 1) ,(0..max_terms+ 1),[]); > term := 1; > while (term <= max_terms) do # do number 2 > array_x1_init[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_x2_init[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_fact_1[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_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_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_type_pole[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_x1[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_t[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_x2[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_tmp5[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp6[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp7[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp8[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp9[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp10[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp11[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp12[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp13[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp14[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp15[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp16[term] := 0.0; > term := term + 1; > od;# end do number 2; > term := 1; > while (term <= max_terms) do # do number 2 > array_tmp17[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; > ord := 1; > while (ord <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x1_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x1_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x1_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x1_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x2_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x2_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x2_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 <=3) do # do number 2 > term := 1; > while (term <= max_terms) do # do number 3 > array_x2_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 <= 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 <= 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 <=2) 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 <=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_x1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_x1[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_t := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_t[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_x2 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_x2[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_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_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_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_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_tmp5 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp5[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp6 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp6[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp7 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp7[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp8 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp8[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp9 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp9[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp10 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp10[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp11 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp11[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp12 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp12[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp13 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp13[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp14 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp14[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp15 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp15[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp16 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp16[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_tmp17 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_tmp17[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_m1 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_m1[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_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_const_4D0 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_4D0[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_const_4D0[1] := 4.0; > array_const_2D0 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_2D0[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_const_2D0[1] := 2.0; > array_const_2 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_2[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_const_2[1] := 2; > array_const_3D0 := Array(1..(max_terms+1 + 1),[]); > term := 1; > while (term <= max_terms + 1) do # do number 2 > array_const_3D0[term] := 0.0; > term := term + 1; > od;# end do number 2; > array_const_3D0[1] := 3.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 > ## problem from Boyce DePrima - > ## _Elementary Differential Equations and Boundary Value Problems_ > ## page 269 > ## > t_start := 1.5; > ## did poorly with t_start := 0.5; > t_end := 5.0; > array_x1_init[0 + 1] := exact_soln_x1(t_start); > ## I think following line should be omitted > ## diff(x1,1,exact_soln_x1p(t_start)); > array_x2_init[0 + 1] := exact_soln_x2(t_start); > array_x2_init[1 + 1] := exact_soln_x2p(t_start); > glob_look_poles := true; > glob_max_iter := 100; > glob_max_h := 0.000001; > #END SECOND INPUT BLOCK > #BEGIN OVERRIDE BLOCK > glob_desired_digits_correct:=10; > glob_display_interval:=0.001; > glob_look_poles:=true; > glob_max_iter:=10000000; > glob_max_minutes:=3; > glob_subiter_method:=3; > #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); > if (glob_h > 0.0) then # if number 1 > glob_neg_h := false; > glob_display_interval := omniabs(glob_display_interval); > else > glob_neg_h := true; > glob_display_interval := -omniabs(glob_display_interval); > fi;# end if 1; > chk_data(); > #AFTER INITS AFTER SECOND INPUT BLOCK > array_x1_set_initial[1,1] := true; > array_x1_set_initial[1,2] := false; > array_x1_set_initial[1,3] := false; > array_x1_set_initial[1,4] := false; > array_x1_set_initial[1,5] := false; > array_x1_set_initial[1,6] := false; > array_x1_set_initial[1,7] := false; > array_x1_set_initial[1,8] := false; > array_x1_set_initial[1,9] := false; > array_x1_set_initial[1,10] := false; > array_x1_set_initial[1,11] := false; > array_x1_set_initial[1,12] := false; > array_x1_set_initial[1,13] := false; > array_x1_set_initial[1,14] := false; > array_x1_set_initial[1,15] := false; > array_x1_set_initial[1,16] := false; > array_x1_set_initial[1,17] := false; > array_x1_set_initial[1,18] := false; > array_x1_set_initial[1,19] := false; > array_x1_set_initial[1,20] := false; > array_x1_set_initial[1,21] := false; > array_x1_set_initial[1,22] := false; > array_x1_set_initial[1,23] := false; > array_x1_set_initial[1,24] := false; > array_x1_set_initial[1,25] := false; > array_x1_set_initial[1,26] := false; > array_x1_set_initial[1,27] := false; > array_x1_set_initial[1,28] := false; > array_x1_set_initial[1,29] := false; > array_x1_set_initial[1,30] := false; > array_x2_set_initial[2,1] := true; > array_x2_set_initial[2,2] := true; > array_x2_set_initial[2,3] := false; > array_x2_set_initial[2,4] := false; > array_x2_set_initial[2,5] := false; > array_x2_set_initial[2,6] := false; > array_x2_set_initial[2,7] := false; > array_x2_set_initial[2,8] := false; > array_x2_set_initial[2,9] := false; > array_x2_set_initial[2,10] := false; > array_x2_set_initial[2,11] := false; > array_x2_set_initial[2,12] := false; > array_x2_set_initial[2,13] := false; > array_x2_set_initial[2,14] := false; > array_x2_set_initial[2,15] := false; > array_x2_set_initial[2,16] := false; > array_x2_set_initial[2,17] := false; > array_x2_set_initial[2,18] := false; > array_x2_set_initial[2,19] := false; > array_x2_set_initial[2,20] := false; > array_x2_set_initial[2,21] := false; > array_x2_set_initial[2,22] := false; > array_x2_set_initial[2,23] := false; > array_x2_set_initial[2,24] := false; > array_x2_set_initial[2,25] := false; > array_x2_set_initial[2,26] := false; > array_x2_set_initial[2,27] := false; > array_x2_set_initial[2,28] := false; > array_x2_set_initial[2,29] := false; > array_x2_set_initial[2,30] := false; > #BEGIN OPTIMIZE CODE > omniout_str(ALWAYS,"START of Optimize"); > #Start Series -- INITIALIZE FOR OPTIMIZE > glob_check_sign := check_sign(t_start,t_end); > glob_h := check_sign(t_start,t_end); > if (glob_display_interval < glob_h) then # if number 3 > glob_h := glob_display_interval; > fi;# end if 3; > if (glob_max_h < glob_h) then # if number 3 > glob_h := glob_max_h; > fi;# end if 3; > found_h := -1.0; > best_h := 0.0; > min_value := glob_large_float; > est_answer := est_size_answer(); > opt_iter := 1; > while ((opt_iter <= 20) and (found_h < 0.0)) do # do number 2 > omniout_int(ALWAYS,"opt_iter",32,opt_iter,4,""); > array_t[1] := t_start; > array_t[2] := glob_h; > glob_next_display := t_start; > order_diff := 2; > #Start Series array_x1 > term_no := 1; > while (term_no <= order_diff) do # do number 3 > array_x1[term_no] := array_x1_init[term_no] * expt(glob_h , (term_no - 1)) / factorial_1(term_no - 1); > term_no := term_no + 1; > od;# end do number 3; > rows := order_diff; > r_order := 1; > while (r_order <= rows) do # do number 3 > term_no := 1; > while (term_no <= (rows - r_order + 1)) do # do number 4 > it := term_no + r_order - 1; > array_x1_higher[r_order,term_no] := array_x1_init[it]* expt(glob_h , (term_no - 1)) / ((factorial_1(term_no - 1))); > term_no := term_no + 1; > od;# end do number 4; > r_order := r_order + 1; > od;# end do number 3 > ; > order_diff := 2; > #Start Series array_x2 > term_no := 1; > while (term_no <= order_diff) do # do number 3 > array_x2[term_no] := array_x2_init[term_no] * expt(glob_h , (term_no - 1)) / factorial_1(term_no - 1); > term_no := term_no + 1; > od;# end do number 3; > rows := order_diff; > r_order := 1; > while (r_order <= rows) do # do number 3 > term_no := 1; > while (term_no <= (rows - r_order + 1)) do # do number 4 > it := term_no + r_order - 1; > array_x2_higher[r_order,term_no] := array_x2_init[it]* expt(glob_h , (term_no - 1)) / ((factorial_1(term_no - 1))); > term_no := term_no + 1; > od;# end do number 4; > r_order := r_order + 1; > od;# end do number 3 > ; > if (glob_subiter_method = 1 ) then # if number 3 > atomall(); > elif > (glob_subiter_method = 2 ) then # if number 4 > subiter := 1; > while (subiter <= 3) do # do number 3 > atomall(); > subiter := subiter + 1; > od;# end do number 3; > else > subiter := 1; > while (subiter <= 3 + glob_max_terms) do # do number 3 > atomall(); > subiter := subiter + 1; > od;# end do number 3; > fi;# end if 4; > est_needed_step_err := estimated_needed_step_error(t_start,t_end,glob_h,est_answer); > omniout_float(ALWAYS,"est_needed_step_err",32,est_needed_step_err,16,""); > value3 := test_suggested_h(); > omniout_float(ALWAYS,"value3",32,value3,32,""); > if ((value3 < est_needed_step_err) and (found_h < 0.0)) then # if number 4 > best_h := glob_h; > found_h := 1.0; > fi;# end if 4; > omniout_float(ALWAYS,"best_h",32,best_h,32,""); > opt_iter := opt_iter + 1; > glob_h := glob_h * 0.5; > od;# end do number 2; > if (found_h > 0.0) then # if number 4 > glob_h := best_h ; > else > omniout_str(ALWAYS,"No increment to obtain desired accuracy found"); > fi;# end if 4; > #END OPTIMIZE CODE > if (glob_html_log) then # if number 4 > html_log_file := fopen("html/entry.html",WRITE,TEXT); > fi;# end if 4; > #BEGIN SOLUTION CODE > if (found_h > 0.0) then # if number 4 > omniout_str(ALWAYS,"START of Soultion"); > #Start Series -- INITIALIZE FOR SOLUTION > array_t[1] := t_start; > array_t[2] := glob_h; > glob_next_display := t_start; > order_diff := 2; > #Start Series array_x1 > term_no := 1; > while (term_no <= order_diff) do # do number 2 > array_x1[term_no] := array_x1_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_x1_higher[r_order,term_no] := array_x1_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 > ; > order_diff := 2; > #Start Series array_x2 > term_no := 1; > while (term_no <= order_diff) do # do number 2 > array_x2[term_no] := array_x2_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_x2_higher[r_order,term_no] := array_x2_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(); > 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 ((glob_check_sign * array_t[1]) < (glob_check_sign * t_end )) and ((convfloat(glob_clock_sec) - convfloat(glob_orig_start_sec)) < convfloat(glob_max_sec))) do # do number 2 > #left paren 0001C > if (reached_interval()) then # if number 5 > omniout_str(INFO," "); > omniout_str(INFO,"TOP MAIN SOLVE Loop"); > fi;# end if 5; > glob_iter := glob_iter + 1; > glob_clock_sec := elapsed_time_seconds(); > glob_current_iter := glob_current_iter + 1; > if (glob_subiter_method = 1 ) then # if number 5 > atomall(); > elif > (glob_subiter_method = 2 ) then # if number 6 > subiter := 1; > while (subiter <= 3) do # do number 3 > atomall(); > subiter := subiter + 1; > od;# end do number 3; > else > subiter := 1; > while (subiter <= 3 + glob_max_terms) do # do number 3 > atomall(); > subiter := subiter + 1; > od;# end do number 3; > fi;# end if 6; > display_alot(current_iter); > if (glob_look_poles) then # if number 6 > #left paren 0004C > check_for_pole(); > fi;# end if 6;#was right paren 0004C > if (reached_interval()) then # if number 6 > glob_next_display := glob_next_display + glob_display_interval; > fi;# end if 6; > array_t[1] := array_t[1] + glob_h; > array_t[2] := glob_h; > #Jump Series array_x1; > order_diff := 2; > #START PART 1 SUM AND ADJUST > #START SUM AND ADJUST EQ =1 > #sum_and_adjust array_x1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 1; > #adjust_subseriesarray_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x1_higher_work[2,iii] := array_x1_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_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x1_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x1_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_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x1_higher_work[1,iii] := array_x1_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_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x1_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x1_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_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x1_higher_work[1,iii] := array_x1_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_x1 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x1_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x1_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_x1[term_no] := array_x1_higher_work2[1,term_no]; > ord := 1; > while (ord <= order_diff) do # do number 4 > array_x1_higher[ord,term_no] := array_x1_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 > #Jump Series array_x2; > order_diff := 3; > #START PART 1 SUM AND ADJUST > #START SUM AND ADJUST EQ =2 > #sum_and_adjust array_x2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 3; > calc_term := 1; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[3,iii] := array_x2_higher[3,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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 3; > calc_term := 1; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 2; > calc_term := 2; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[2,iii] := array_x2_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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 2; > calc_term := 2; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 2; > calc_term := 1; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[2,iii] := array_x2_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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 2; > calc_term := 1; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 1; > calc_term := 3; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[1,iii] := array_x2_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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 1; > calc_term := 3; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 1; > calc_term := 2; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[1,iii] := array_x2_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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 1; > calc_term := 2; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 1; > calc_term := 1; > #adjust_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > array_x2_higher_work[1,iii] := array_x2_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 =2 > #BEFORE SUM SUBSERIES EQ =2 > temp_sum := 0.0; > ord := 1; > calc_term := 1; > #sum_subseriesarray_x2 > iii := glob_max_terms; > while (iii >= calc_term) do # do number 3 > temp_sum := temp_sum + array_x2_higher_work[ord,iii]; > iii := iii - 1; > od;# end do number 3; > array_x2_higher_work2[ord,calc_term] := temp_sum * expt(glob_h , (calc_term - 1)) / (factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #END SUM AND ADJUST EQ =2 > #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_x2[term_no] := array_x2_higher_work2[1,term_no]; > ord := 1; > while (ord <= order_diff) do # do number 4 > array_x2_higher[ord,term_no] := array_x2_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 > ; > od;# end do number 2;#right paren 0001C > omniout_str(ALWAYS,"Finished!"); > if (glob_iter >= glob_max_iter) then # if number 6 > omniout_str(ALWAYS,"Maximum Iterations Reached before Solution Completed!"); > fi;# end if 6; > if (elapsed_time_seconds() - convfloat(glob_orig_start_sec) >= convfloat(glob_max_sec )) then # if number 6 > omniout_str(ALWAYS,"Maximum Time Reached before Solution Completed!"); > fi;# end if 6; > glob_clock_sec := elapsed_time_seconds(); > omniout_str(INFO,"diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1;"); > omniout_str(INFO,"diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1;"); > omniout_int(INFO,"Iterations ",32,glob_iter,4," ") > ; > prog_report(t_start,t_end); > if (glob_html_log) then # if number 6 > logstart(html_log_file); > logitem_str(html_log_file,"2013-01-28T17:38:26-06:00") > ; > logitem_str(html_log_file,"Maple") > ; > logitem_str(html_log_file,"mtest6_sm_h") > ; > logitem_str(html_log_file,"diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1;") > ; > logitem_float(html_log_file,t_start) > ; > logitem_float(html_log_file,t_end) > ; > logitem_float(html_log_file,array_t[1]) > ; > logitem_float(html_log_file,glob_h) > ; > logitem_integer(html_log_file,Digits) > ; > ; > logitem_good_digits(html_log_file,array_last_rel_error[1]) > ; > 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 7 > 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 7; > logitem_time(html_log_file,convfloat(glob_clock_sec)) > ; > if (glob_percent_done < 100.0) then # if number 7 > logitem_time(html_log_file,convfloat(glob_total_exp_sec)) > ; > 0; > else > logitem_str(html_log_file,"Done") > ; > 0; > fi;# end if 7; > log_revs(html_log_file," 165 ") > ; > logitem_str(html_log_file,"mtest6_sm_h diffeq.mxt") > ; > logitem_str(html_log_file,"mtest6_sm_h maple results") > ; > logitem_str(html_log_file,"All Tests - All Languages") > ; > logend(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logitem_str(html_log_file,"diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1;") > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > ; > logitem_good_digits(html_log_file,array_last_rel_error[2]) > ; > logditto(html_log_file) > ; > logitem_float(html_log_file,array_1st_rel_error[2]) > ; > logitem_float(html_log_file,array_last_rel_error[2]) > ; > logditto(html_log_file) > ; > logitem_pole(html_log_file,array_type_pole[2]) > ; > if (array_type_pole[2] = 1 or array_type_pole[2] = 2) then # if number 7 > 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 7; > logditto(html_log_file) > ; > if (glob_percent_done < 100.0) then # if number 7 > logditto(html_log_file) > ; > 0; > else > logditto(html_log_file) > ; > 0; > fi;# end if 7; > logditto(html_log_file); > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logend(html_log_file) > ; > ; > fi;# end if 6; > if (glob_html_log) then # if number 6 > fclose(html_log_file); > fi;# end if 6 > ; > ;; > fi;# end if 5 > #END OUTFILEMAIN > 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, t_start, t_end, it, max_terms, opt_iter, tmp, subiter, est_needed_step_err, value3, min_value, est_answer, best_h, found_h, repeat_it; global glob_max_terms, glob_iolevel, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED, glob_check_sign, glob_desired_digits_correct, glob_max_value3, glob_ratio_of_radius, glob_percent_done, glob_subiter_method, glob_total_exp_sec, glob_optimal_expect_sec, glob_html_log, glob_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_sec_in_minute, glob_min_in_hour, glob_hours_in_day, glob_days_in_year, glob_sec_in_hour, glob_sec_in_day, glob_sec_in_year, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_disp_incr, glob_h, glob_max_h, glob_large_float, glob_last_good_h, glob_look_poles, glob_neg_h, glob_display_interval, glob_next_display, glob_dump_analytic, glob_abserr, glob_relerr, glob_max_hours, glob_max_iter, glob_max_rel_trunc_err, glob_max_trunc_err, glob_no_eqs, glob_optimal_clock_start_sec, glob_optimal_start, glob_small_float, glob_smallish_float, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_max_sec, glob_orig_start_sec, glob_start, glob_curr_iter_when_opt, glob_current_iter, glob_iter, glob_normmax, glob_max_minutes, array_const_1, array_const_0D0, array_const_4D0, array_const_2D0, array_const_2, array_const_3D0, array_x1_init, array_x2_init, array_norms, array_fact_1, array_pole, array_1st_rel_error, array_last_rel_error, array_type_pole, array_x1, array_t, array_x2, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, array_tmp5, array_tmp6, array_tmp7, array_tmp8, array_tmp9, array_tmp10, array_tmp11, array_tmp12, array_tmp13, array_tmp14, array_tmp15, array_tmp16, array_tmp17, array_m1, array_x1_higher, array_x1_higher_work, array_x1_higher_work2, array_x1_set_initial, array_x2_higher, array_x2_higher_work, array_x2_higher_work2, array_x2_set_initial, array_poles, array_real_pole, array_complex_pole, array_fact_2, glob_last; glob_last; ALWAYS := 1; INFO := 2; DEBUGL := 3; DEBUGMASSIVE := 4; glob_iolevel := INFO; glob_max_terms := 30; glob_iolevel := 5; ALWAYS := 1; INFO := 2; DEBUGL := 3; DEBUGMASSIVE := 4; MAX_UNCHANGED := 10; glob_check_sign := 1.0; glob_desired_digits_correct := 8.0; glob_max_value3 := 0.; glob_ratio_of_radius := 0.01; glob_percent_done := 0.; glob_subiter_method := 3; glob_total_exp_sec := 0.1; glob_optimal_expect_sec := 0.1; glob_html_log := true; glob_good_digits := 0; glob_max_opt_iter := 10; glob_dump := false; glob_djd_debug := true; glob_display_flag := true; glob_djd_debug2 := true; glob_sec_in_minute := 60; glob_min_in_hour := 60; glob_hours_in_day := 24; glob_days_in_year := 365; glob_sec_in_hour := 3600; glob_sec_in_day := 86400; glob_sec_in_year := 31536000; glob_almost_1 := 0.9990; glob_clock_sec := 0.; glob_clock_start_sec := 0.; glob_not_yet_finished := true; glob_initial_pass := true; glob_not_yet_start_msg := true; glob_reached_optimal_h := false; glob_optimal_done := false; glob_disp_incr := 0.1; glob_h := 0.1; glob_max_h := 0.1; glob_large_float := 0.90*10^101; glob_last_good_h := 0.1; glob_look_poles := false; glob_neg_h := false; glob_display_interval := 0.; glob_next_display := 0.; glob_dump_analytic := false; glob_abserr := 0.1*10^(-10); glob_relerr := 0.1*10^(-10); glob_max_hours := 0.; glob_max_iter := 1000; glob_max_rel_trunc_err := 0.1*10^(-10); glob_max_trunc_err := 0.1*10^(-10); glob_no_eqs := 0; glob_optimal_clock_start_sec := 0.; glob_optimal_start := 0.; glob_small_float := 0.1*10^(-200); glob_smallish_float := 0.1*10^(-100); glob_unchanged_h_cnt := 0; glob_warned := false; glob_warned2 := false; glob_max_sec := 10000.0; glob_orig_start_sec := 0.; glob_start := 0; glob_curr_iter_when_opt := 0; glob_current_iter := 0; glob_iter := 0; glob_normmax := 0.; glob_max_minutes := 0.; glob_orig_start_sec := elapsed_time_seconds(); MAX_UNCHANGED := 10; glob_curr_iter_when_opt := 0; glob_display_flag := true; glob_no_eqs := 2; 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/mtest6_sm_hpostode.ode#################"); omniout_str(ALWAYS, "diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1;"); omniout_str(ALWAYS, "diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - \ diff(x1,t,2) - diff (x1,t,1) + x1;"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#BEGIN FIRST INPUT BLOCK"); omniout_str(ALWAYS, "Digits:=64;"); omniout_str(ALWAYS, "max_terms:=30;"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#END FIRST INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN SECOND INPUT BLOCK"); omniout_str(ALWAYS, "## problem from Boyce DePrima -"); omniout_str(ALWAYS, "## _Elementary Differential Equations and Bounda\ ry Value Problems_"); omniout_str(ALWAYS, "## page 269"); omniout_str(ALWAYS, "##"); omniout_str(ALWAYS, "t_start := 1.5;"); omniout_str(ALWAYS, "## did poorly with t_start := 0.5;"); omniout_str(ALWAYS, "t_end := 5.0;"); omniout_str(ALWAYS, "array_x1_init[0 + 1] := exact_soln_x1(t_start);"); omniout_str(ALWAYS, "## I think following line should be omitted"); omniout_str(ALWAYS, "## diff(x1,1,exact_soln_x1p(t_start));"); omniout_str(ALWAYS, "array_x2_init[0 + 1] := exact_soln_x2(t_start);"); omniout_str(ALWAYS, "array_x2_init[1 + 1] := exact_soln_x2p(t_start);") ; omniout_str(ALWAYS, "glob_look_poles := true;"); omniout_str(ALWAYS, "glob_max_iter := 100;"); omniout_str(ALWAYS, "glob_max_h := 0.000001;"); omniout_str(ALWAYS, "#END SECOND INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN OVERRIDE BLOCK"); omniout_str(ALWAYS, "glob_desired_digits_correct:=10;"); omniout_str(ALWAYS, "glob_display_interval:=0.001;"); omniout_str(ALWAYS, "glob_look_poles:=true;"); omniout_str(ALWAYS, "glob_max_iter:=10000000;"); omniout_str(ALWAYS, "glob_max_minutes:=3;"); omniout_str(ALWAYS, "glob_subiter_method:=3;"); omniout_str(ALWAYS, "#END OVERRIDE BLOCK"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#BEGIN USER DEF BLOCK"); omniout_str(ALWAYS, "exact_soln_x1 := proc(t)"); omniout_str(ALWAYS, "local c1,c2,c3;"); omniout_str(ALWAYS, "c1 := 1.0;"); omniout_str(ALWAYS, "c2 := 0.0002;"); omniout_str(ALWAYS, "c3 := 0.0003;"); omniout_str(ALWAYS, "return(2.0 * c1 + 6.0 * c3 * exp(-t));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_x1p := proc(t)"); omniout_str(ALWAYS, "local c1,c2,c3;"); omniout_str(ALWAYS, "c1 := 1.0;"); omniout_str(ALWAYS, "c2 := 0.0002;"); omniout_str(ALWAYS, "c3 := 0.0003;"); omniout_str(ALWAYS, "return( - 6.0 * c3 * exp(-t));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_x2 := proc(t)"); omniout_str(ALWAYS, "local c1,c2,c3;"); omniout_str(ALWAYS, "c1 := 1.0;"); omniout_str(ALWAYS, "c2 := 0.0002;"); omniout_str(ALWAYS, "c3 := 0.0003;"); omniout_str(ALWAYS, "return(c1 + c2 * exp(2.0 * t) + c3 * exp(-t));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_x2p := proc(t)"); omniout_str(ALWAYS, "local c1,c2,c3;"); omniout_str(ALWAYS, "c1 := 1.0;"); omniout_str(ALWAYS, "c2 := 0.0002;"); omniout_str(ALWAYS, "c3 := 0.0003;"); omniout_str(ALWAYS, "return( 2.0 * c2 * exp(2.0 * t) - c3 * exp(-t));"); omniout_str(ALWAYS, "end;"); 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; Digits := 64; max_terms := 30; glob_max_terms := max_terms; glob_html_log := true; array_x1_init := Array(0 .. max_terms + 1, []); array_x2_init := Array(0 .. max_terms + 1, []); array_norms := Array(0 .. max_terms + 1, []); array_fact_1 := Array(0 .. max_terms + 1, []); array_pole := Array(0 .. max_terms + 1, []); array_1st_rel_error := Array(0 .. max_terms + 1, []); array_last_rel_error := Array(0 .. max_terms + 1, []); array_type_pole := Array(0 .. max_terms + 1, []); array_x1 := Array(0 .. max_terms + 1, []); array_t := Array(0 .. max_terms + 1, []); array_x2 := 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_tmp5 := Array(0 .. max_terms + 1, []); array_tmp6 := Array(0 .. max_terms + 1, []); array_tmp7 := Array(0 .. max_terms + 1, []); array_tmp8 := Array(0 .. max_terms + 1, []); array_tmp9 := Array(0 .. max_terms + 1, []); array_tmp10 := Array(0 .. max_terms + 1, []); array_tmp11 := Array(0 .. max_terms + 1, []); array_tmp12 := Array(0 .. max_terms + 1, []); array_tmp13 := Array(0 .. max_terms + 1, []); array_tmp14 := Array(0 .. max_terms + 1, []); array_tmp15 := Array(0 .. max_terms + 1, []); array_tmp16 := Array(0 .. max_terms + 1, []); array_tmp17 := Array(0 .. max_terms + 1, []); array_m1 := Array(0 .. max_terms + 1, []); array_x1_higher := Array(0 .. 4, 0 .. max_terms + 1, []); array_x1_higher_work := Array(0 .. 4, 0 .. max_terms + 1, []); array_x1_higher_work2 := Array(0 .. 4, 0 .. max_terms + 1, []); array_x1_set_initial := Array(0 .. 4, 0 .. max_terms + 1, []); array_x2_higher := Array(0 .. 4, 0 .. max_terms + 1, []); array_x2_higher_work := Array(0 .. 4, 0 .. max_terms + 1, []); array_x2_higher_work2 := Array(0 .. 4, 0 .. max_terms + 1, []); array_x2_set_initial := Array(0 .. 4, 0 .. max_terms + 1, []); array_poles := Array(0 .. 3, 0 .. 4, []); array_real_pole := Array(0 .. 3, 0 .. 4, []); array_complex_pole := Array(0 .. 3, 0 .. 4, []); array_fact_2 := Array(0 .. max_terms + 1, 0 .. max_terms + 1, []); term := 1; while term <= max_terms do array_x1_init[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_x2_init[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_fact_1[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_1st_rel_error[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_type_pole[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_x1[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_t[term] := 0.; term := term + 1 end do ; term := 1; while term <= max_terms do array_x2[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_tmp5[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp6[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp7[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp8[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp9[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp10[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp11[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp12[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp13[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp14[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp15[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp16[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_tmp17[term] := 0.; term := term + 1 end do; term := 1; while term <= max_terms do array_m1[term] := 0.; term := term + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x1_higher[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x1_higher_work[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x1_higher_work2[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x1_set_initial[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x2_higher[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x2_higher_work[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x2_higher_work2[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= max_terms do array_x2_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 <= 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 <= 3 do array_real_pole[ord, term] := 0.; term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 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 <= 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_x1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_x1[term] := 0.; term := term + 1 end do; array_t := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_t[term] := 0.; term := term + 1 end do; array_x2 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_x2[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_tmp1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp1[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_tmp3 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp3[term] := 0.; term := term + 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_tmp5 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp5[term] := 0.; term := term + 1 end do; array_tmp6 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp6[term] := 0.; term := term + 1 end do; array_tmp7 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp7[term] := 0.; term := term + 1 end do; array_tmp8 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp8[term] := 0.; term := term + 1 end do; array_tmp9 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp9[term] := 0.; term := term + 1 end do; array_tmp10 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp10[term] := 0.; term := term + 1 end do; array_tmp11 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp11[term] := 0.; term := term + 1 end do; array_tmp12 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp12[term] := 0.; term := term + 1 end do; array_tmp13 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp13[term] := 0.; term := term + 1 end do; array_tmp14 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp14[term] := 0.; term := term + 1 end do; array_tmp15 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp15[term] := 0.; term := term + 1 end do; array_tmp16 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp16[term] := 0.; term := term + 1 end do; array_tmp17 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_tmp17[term] := 0.; term := term + 1 end do; array_m1 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_m1[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_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_const_4D0 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_4D0[term] := 0.; term := term + 1 end do; array_const_4D0[1] := 4.0; array_const_2D0 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_2D0[term] := 0.; term := term + 1 end do; array_const_2D0[1] := 2.0; array_const_2 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_2[term] := 0.; term := term + 1 end do; array_const_2[1] := 2; array_const_3D0 := Array(1 .. max_terms + 2, []); term := 1; while term <= max_terms + 1 do array_const_3D0[term] := 0.; term := term + 1 end do; array_const_3D0[1] := 3.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; t_start := 1.5; t_end := 5.0; array_x1_init[1] := exact_soln_x1(t_start); array_x2_init[1] := exact_soln_x2(t_start); array_x2_init[2] := exact_soln_x2p(t_start); glob_look_poles := true; glob_max_iter := 100; glob_max_h := 0.1*10^(-5); glob_desired_digits_correct := 10; glob_display_interval := 0.001; glob_look_poles := true; glob_max_iter := 10000000; glob_max_minutes := 3; glob_subiter_method := 3; 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); if 0. < glob_h then glob_neg_h := false; glob_display_interval := omniabs(glob_display_interval) else glob_neg_h := true; glob_display_interval := -omniabs(glob_display_interval) end if; chk_data(); array_x1_set_initial[1, 1] := true; array_x1_set_initial[1, 2] := false; array_x1_set_initial[1, 3] := false; array_x1_set_initial[1, 4] := false; array_x1_set_initial[1, 5] := false; array_x1_set_initial[1, 6] := false; array_x1_set_initial[1, 7] := false; array_x1_set_initial[1, 8] := false; array_x1_set_initial[1, 9] := false; array_x1_set_initial[1, 10] := false; array_x1_set_initial[1, 11] := false; array_x1_set_initial[1, 12] := false; array_x1_set_initial[1, 13] := false; array_x1_set_initial[1, 14] := false; array_x1_set_initial[1, 15] := false; array_x1_set_initial[1, 16] := false; array_x1_set_initial[1, 17] := false; array_x1_set_initial[1, 18] := false; array_x1_set_initial[1, 19] := false; array_x1_set_initial[1, 20] := false; array_x1_set_initial[1, 21] := false; array_x1_set_initial[1, 22] := false; array_x1_set_initial[1, 23] := false; array_x1_set_initial[1, 24] := false; array_x1_set_initial[1, 25] := false; array_x1_set_initial[1, 26] := false; array_x1_set_initial[1, 27] := false; array_x1_set_initial[1, 28] := false; array_x1_set_initial[1, 29] := false; array_x1_set_initial[1, 30] := false; array_x2_set_initial[2, 1] := true; array_x2_set_initial[2, 2] := true; array_x2_set_initial[2, 3] := false; array_x2_set_initial[2, 4] := false; array_x2_set_initial[2, 5] := false; array_x2_set_initial[2, 6] := false; array_x2_set_initial[2, 7] := false; array_x2_set_initial[2, 8] := false; array_x2_set_initial[2, 9] := false; array_x2_set_initial[2, 10] := false; array_x2_set_initial[2, 11] := false; array_x2_set_initial[2, 12] := false; array_x2_set_initial[2, 13] := false; array_x2_set_initial[2, 14] := false; array_x2_set_initial[2, 15] := false; array_x2_set_initial[2, 16] := false; array_x2_set_initial[2, 17] := false; array_x2_set_initial[2, 18] := false; array_x2_set_initial[2, 19] := false; array_x2_set_initial[2, 20] := false; array_x2_set_initial[2, 21] := false; array_x2_set_initial[2, 22] := false; array_x2_set_initial[2, 23] := false; array_x2_set_initial[2, 24] := false; array_x2_set_initial[2, 25] := false; array_x2_set_initial[2, 26] := false; array_x2_set_initial[2, 27] := false; array_x2_set_initial[2, 28] := false; array_x2_set_initial[2, 29] := false; array_x2_set_initial[2, 30] := false; omniout_str(ALWAYS, "START of Optimize"); glob_check_sign := check_sign(t_start, t_end); glob_h := check_sign(t_start, t_end); if glob_display_interval < glob_h then glob_h := glob_display_interval end if; if glob_max_h < glob_h then glob_h := glob_max_h end if; found_h := -1.0; best_h := 0.; min_value := glob_large_float; est_answer := est_size_answer(); opt_iter := 1; while opt_iter <= 20 and found_h < 0. do omniout_int(ALWAYS, "opt_iter", 32, opt_iter, 4, ""); array_t[1] := t_start; array_t[2] := glob_h; glob_next_display := t_start; order_diff := 2; term_no := 1; while term_no <= order_diff do array_x1[term_no] := array_x1_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_x1_higher[r_order, term_no] := array_x1_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; order_diff := 2; term_no := 1; while term_no <= order_diff do array_x2[term_no] := array_x2_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_x2_higher[r_order, term_no] := array_x2_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; if glob_subiter_method = 1 then atomall() elif glob_subiter_method = 2 then subiter := 1; while subiter <= 3 do atomall(); subiter := subiter + 1 end do else subiter := 1; while subiter <= 3 + glob_max_terms do atomall(); subiter := subiter + 1 end do end if; est_needed_step_err := estimated_needed_step_error(t_start, t_end, glob_h, est_answer) ; omniout_float(ALWAYS, "est_needed_step_err", 32, est_needed_step_err, 16, ""); value3 := test_suggested_h(); omniout_float(ALWAYS, "value3", 32, value3, 32, ""); if value3 < est_needed_step_err and found_h < 0. then best_h := glob_h; found_h := 1.0 end if; omniout_float(ALWAYS, "best_h", 32, best_h, 32, ""); opt_iter := opt_iter + 1; glob_h := glob_h*0.5 end do; if 0. < found_h then glob_h := best_h else omniout_str(ALWAYS, "No increment to obtain desired accuracy found") end if; if glob_html_log then html_log_file := fopen("html/entry.html", WRITE, TEXT) end if; if 0. < found_h then omniout_str(ALWAYS, "START of Soultion"); array_t[1] := t_start; array_t[2] := glob_h; glob_next_display := t_start; order_diff := 2; term_no := 1; while term_no <= order_diff do array_x1[term_no] := array_x1_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_x1_higher[r_order, term_no] := array_x1_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; order_diff := 2; term_no := 1; while term_no <= order_diff do array_x2[term_no] := array_x2_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_x2_higher[r_order, term_no] := array_x2_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(); 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 glob_check_sign*array_t[1] < glob_check_sign*t_end and convfloat(glob_clock_sec) - convfloat(glob_orig_start_sec) < convfloat(glob_max_sec) do if reached_interval() then omniout_str(INFO, " "); omniout_str(INFO, "TOP MAIN SOLVE Loop") end if; glob_iter := glob_iter + 1; glob_clock_sec := elapsed_time_seconds(); glob_current_iter := glob_current_iter + 1; if glob_subiter_method = 1 then atomall() elif glob_subiter_method = 2 then subiter := 1; while subiter <= 3 do atomall(); subiter := subiter + 1 end do else subiter := 1; while subiter <= 3 + glob_max_terms do atomall(); subiter := subiter + 1 end do end if; display_alot(current_iter); if glob_look_poles then check_for_pole() end if; if reached_interval() then glob_next_display := glob_next_display + glob_display_interval end if; array_t[1] := array_t[1] + glob_h; array_t[2] := glob_h; order_diff := 2; ord := 2; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do array_x1_higher_work[2, iii] := array_x1_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_x1_higher_work[ord, iii]; iii := iii - 1 end do; array_x1_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_x1_higher_work[1, iii] := array_x1_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_x1_higher_work[ord, iii]; iii := iii - 1 end do; array_x1_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_x1_higher_work[1, iii] := array_x1_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_x1_higher_work[ord, iii]; iii := iii - 1 end do; array_x1_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_x1[term_no] := array_x1_higher_work2[1, term_no]; ord := 1; while ord <= order_diff do array_x1_higher[ord, term_no] := array_x1_higher_work2[ord, term_no]; ord := ord + 1 end do; term_no := term_no - 1 end do; order_diff := 3; ord := 3; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do array_x2_higher_work[3, iii] := array_x2_higher[3, iii]/( expt(glob_h, calc_term - 1)* factorial_3(iii - calc_term, iii - 1)); iii := iii - 1 end do; temp_sum := 0.; ord := 3; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_higher_work2[ord, calc_term] := temp_sum* expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1); ord := 2; calc_term := 2; iii := glob_max_terms; while calc_term <= iii do array_x2_higher_work[2, iii] := array_x2_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 := 2; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_higher_work2[ord, calc_term] := temp_sum* expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1); ord := 2; calc_term := 1; iii := glob_max_terms; while calc_term <= iii do array_x2_higher_work[2, iii] := array_x2_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_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_higher_work2[ord, calc_term] := temp_sum* expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1); ord := 1; calc_term := 3; iii := glob_max_terms; while calc_term <= iii do array_x2_higher_work[1, iii] := array_x2_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 := 3; iii := glob_max_terms; while calc_term <= iii do temp_sum := temp_sum + array_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_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_x2_higher_work[1, iii] := array_x2_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_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_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_x2_higher_work[1, iii] := array_x2_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_x2_higher_work[ord, iii]; iii := iii - 1 end do; array_x2_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_x2[term_no] := array_x2_higher_work2[1, term_no]; ord := 1; while ord <= order_diff do array_x2_higher[ord, term_no] := array_x2_higher_work2[ord, term_no]; ord := ord + 1 end do; term_no := term_no - 1 end do 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 (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1;") ; omniout_str(INFO, "diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 \ - diff(x1,t,2) - diff (x1,t,1) + x1;"); omniout_int(INFO, "Iterations ", 32, glob_iter, 4, " "); prog_report(t_start, t_end); if glob_html_log then logstart(html_log_file); logitem_str(html_log_file, "2013-01-28T17:38:26-06:00"); logitem_str(html_log_file, "Maple"); logitem_str(html_log_file, "mtest6_sm_h"); logitem_str(html_log_file, "diff (x1,t,1) = 4.0 * x2 - 2.0 *\ diff (x2,t ,1) - 2.0 * x1;"); logitem_float(html_log_file, t_start); logitem_float(html_log_file, t_end); logitem_float(html_log_file, array_t[1]); logitem_float(html_log_file, glob_h); logitem_integer(html_log_file, Digits); logitem_good_digits(html_log_file, array_last_rel_error[1]); 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_total_exp_sec)); 0 else logitem_str(html_log_file, "Done"); 0 end if; log_revs(html_log_file, " 165 "); logitem_str(html_log_file, "mtest6_sm_h diffeq.mxt"); logitem_str(html_log_file, "mtest6_sm_h maple results"); logitem_str(html_log_file, "All Tests - All Languages"); logend(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logitem_str(html_log_file, "diff (x2,t,2) = 3.0 * diff(x2,t,1\ ) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1;"); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logitem_good_digits(html_log_file, array_last_rel_error[2]); logditto(html_log_file); logitem_float(html_log_file, array_1st_rel_error[2]); logitem_float(html_log_file, array_last_rel_error[2]); logditto(html_log_file); logitem_pole(html_log_file, array_type_pole[2]); if array_type_pole[2] = 1 or array_type_pole[2] = 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; logditto(html_log_file); if glob_percent_done < 100.0 then logditto(html_log_file); 0 else logditto(html_log_file); 0 end if; logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logend(html_log_file) end if; if glob_html_log then fclose(html_log_file) end if end if end proc > # End Function number 12 > main(); ##############ECHO OF PROBLEM################# ##############temp/mtest6_sm_hpostode.ode################# diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1; diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1; ! #BEGIN FIRST INPUT BLOCK Digits:=64; max_terms:=30; ! #END FIRST INPUT BLOCK #BEGIN SECOND INPUT BLOCK ## problem from Boyce DePrima - ## _Elementary Differential Equations and Boundary Value Problems_ ## page 269 ## t_start := 1.5; ## did poorly with t_start := 0.5; t_end := 5.0; array_x1_init[0 + 1] := exact_soln_x1(t_start); ## I think following line should be omitted ## diff(x1,1,exact_soln_x1p(t_start)); array_x2_init[0 + 1] := exact_soln_x2(t_start); array_x2_init[1 + 1] := exact_soln_x2p(t_start); glob_look_poles := true; glob_max_iter := 100; glob_max_h := 0.000001; #END SECOND INPUT BLOCK #BEGIN OVERRIDE BLOCK glob_desired_digits_correct:=10; glob_display_interval:=0.001; glob_look_poles:=true; glob_max_iter:=10000000; glob_max_minutes:=3; glob_subiter_method:=3; #END OVERRIDE BLOCK ! #BEGIN USER DEF BLOCK exact_soln_x1 := proc(t) local c1,c2,c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return(2.0 * c1 + 6.0 * c3 * exp(-t)); end; exact_soln_x1p := proc(t) local c1,c2,c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return( - 6.0 * c3 * exp(-t)); end; exact_soln_x2 := proc(t) local c1,c2,c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return(c1 + c2 * exp(2.0 * t) + c3 * exp(-t)); end; exact_soln_x2p := proc(t) local c1,c2,c3; c1 := 1.0; c2 := 0.0002; c3 := 0.0003; return( 2.0 * c2 * exp(2.0 * t) - c3 * exp(-t)); end; #END USER DEF BLOCK #######END OF ECHO OF PROBLEM################# START of Optimize min_size = 0 min_size = 1 opt_iter = 1 memory used=3.8MB, alloc=3.1MB, time=0.14 glob_desired_digits_correct = 10 desired_abs_gbl_error = 1.0000000000000000000000000000000e-10 range = 3.5 estimated_steps = 3500000 step_error = 2.8571428571428571428571428571429e-17 est_needed_step_err = 2.8571428571428571428571428571429e-17 hn_div_ho = 0.5 hn_div_ho_2 = 0.25 hn_div_ho_3 = 0.125 value3 = 9.9589089881265904022361534703515e-187 value3 = 7.1301370051184529140960979934944e-178 max_value3 = 7.1301370051184529140960979934944e-178 value3 = 7.1301370051184529140960979934944e-178 best_h = 1e-06 START of Soultion TOP MAIN SOLVE Loop memory used=7.6MB, alloc=4.4MB, time=0.30 t[1] = 1.5 x1[1] (analytic) = 2.0004016342882671736920799048474 x1[1] (numeric) = 2.0004016342882671736920799048474 absolute error = 0 relative error = 0 % Correct digits = 64 h = 1e-06 x2[1] (analytic) = 1.0040840464326820624968656900721 x2[1] (numeric) = 1.0040840464326820624968656900721 absolute error = 0 relative error = 0 % Correct digits = 64 h = 1e-06 NO POLE for equation 1 Complex estimate of poles used for equation 2 Radius of convergence = 4.762e+04 Order of pole = 1.193e+08 memory used=11.4MB, alloc=4.4MB, time=0.47 memory used=15.2MB, alloc=4.5MB, time=0.63 memory used=19.0MB, alloc=4.5MB, time=0.79 memory used=22.8MB, alloc=4.5MB, time=0.96 memory used=26.7MB, alloc=4.6MB, time=1.12 memory used=30.5MB, alloc=4.6MB, time=1.28 memory used=34.3MB, alloc=4.6MB, time=1.44 memory used=38.1MB, alloc=4.6MB, time=1.61 memory used=41.9MB, alloc=4.6MB, time=1.77 memory used=45.7MB, alloc=4.6MB, time=1.94 memory used=49.5MB, alloc=4.6MB, time=2.10 memory used=53.4MB, alloc=4.6MB, time=2.27 memory used=57.2MB, alloc=4.6MB, time=2.43 memory used=61.0MB, alloc=4.6MB, time=2.60 memory used=64.8MB, alloc=4.6MB, time=2.77 memory used=68.6MB, alloc=4.6MB, time=2.93 memory used=72.4MB, alloc=4.6MB, time=3.10 memory used=76.2MB, alloc=4.6MB, time=3.26 memory used=80.1MB, alloc=4.6MB, time=3.43 memory used=83.9MB, alloc=4.6MB, time=3.59 memory used=87.7MB, alloc=4.6MB, time=3.77 memory used=91.5MB, alloc=4.6MB, time=3.93 memory used=95.3MB, alloc=4.6MB, time=4.10 memory used=99.1MB, alloc=4.6MB, time=4.26 memory used=102.9MB, alloc=4.6MB, time=4.43 memory used=106.8MB, alloc=4.6MB, time=4.59 memory used=110.6MB, alloc=4.6MB, time=4.76 memory used=114.4MB, alloc=4.6MB, time=4.93 memory used=118.2MB, alloc=4.6MB, time=5.09 memory used=122.0MB, alloc=4.6MB, time=5.26 memory used=125.8MB, alloc=4.6MB, time=5.42 memory used=129.7MB, alloc=4.6MB, time=5.59 memory used=133.5MB, alloc=4.6MB, time=5.76 memory used=137.3MB, alloc=4.6MB, time=5.93 memory used=141.1MB, alloc=4.6MB, time=6.10 memory used=144.9MB, alloc=4.6MB, time=6.26 memory used=148.7MB, alloc=4.6MB, time=6.43 memory used=152.5MB, alloc=4.6MB, time=6.60 memory used=156.4MB, alloc=4.6MB, time=6.76 memory used=160.2MB, alloc=4.6MB, time=6.93 memory used=164.0MB, alloc=4.6MB, time=7.10 memory used=167.8MB, alloc=4.6MB, time=7.26 memory used=171.6MB, alloc=4.6MB, time=7.43 memory used=175.4MB, alloc=4.6MB, time=7.60 memory used=179.2MB, alloc=4.6MB, time=7.76 memory used=183.1MB, alloc=4.6MB, time=7.93 memory used=186.9MB, alloc=4.6MB, time=8.09 memory used=190.7MB, alloc=4.6MB, time=8.26 memory used=194.5MB, alloc=4.6MB, time=8.43 memory used=198.3MB, alloc=4.6MB, time=8.59 memory used=202.1MB, alloc=4.6MB, time=8.76 memory used=205.9MB, alloc=4.6MB, time=8.93 memory used=209.8MB, alloc=4.6MB, time=9.10 memory used=213.6MB, alloc=4.6MB, time=9.27 memory used=217.4MB, alloc=4.6MB, time=9.43 memory used=221.2MB, alloc=4.6MB, time=9.60 memory used=225.0MB, alloc=4.6MB, time=9.77 memory used=228.8MB, alloc=4.6MB, time=9.94 memory used=232.7MB, alloc=4.6MB, time=10.10 memory used=236.5MB, alloc=4.6MB, time=10.27 memory used=240.3MB, alloc=4.6MB, time=10.44 memory used=244.1MB, alloc=4.6MB, time=10.61 memory used=247.9MB, alloc=4.6MB, time=10.77 memory used=251.7MB, alloc=4.6MB, time=10.94 memory used=255.5MB, alloc=4.6MB, time=11.10 memory used=259.4MB, alloc=4.6MB, time=11.28 memory used=263.2MB, alloc=4.6MB, time=11.45 memory used=267.0MB, alloc=4.6MB, time=11.61 memory used=270.8MB, alloc=4.6MB, time=11.78 memory used=274.6MB, alloc=4.6MB, time=11.95 memory used=278.4MB, alloc=4.6MB, time=12.11 memory used=282.2MB, alloc=4.6MB, time=12.28 memory used=286.1MB, alloc=4.6MB, time=12.45 memory used=289.9MB, alloc=4.6MB, time=12.61 memory used=293.7MB, alloc=4.6MB, time=12.78 memory used=297.5MB, alloc=4.6MB, time=12.95 memory used=301.3MB, alloc=4.6MB, time=13.11 memory used=305.1MB, alloc=4.6MB, time=13.28 memory used=308.9MB, alloc=4.6MB, time=13.45 memory used=312.8MB, alloc=4.6MB, time=13.61 memory used=316.6MB, alloc=4.6MB, time=13.78 memory used=320.4MB, alloc=4.6MB, time=13.95 memory used=324.2MB, alloc=4.6MB, time=14.11 memory used=328.0MB, alloc=4.6MB, time=14.28 memory used=331.8MB, alloc=4.6MB, time=14.45 memory used=335.6MB, alloc=4.6MB, time=14.62 memory used=339.5MB, alloc=4.6MB, time=14.79 memory used=343.3MB, alloc=4.6MB, time=14.95 memory used=347.1MB, alloc=4.6MB, time=15.12 memory used=350.9MB, alloc=4.6MB, time=15.28 memory used=354.7MB, alloc=4.6MB, time=15.45 memory used=358.5MB, alloc=4.6MB, time=15.62 memory used=362.4MB, alloc=4.6MB, time=15.79 memory used=366.2MB, alloc=4.6MB, time=15.95 memory used=370.0MB, alloc=4.6MB, time=16.12 memory used=373.8MB, alloc=4.6MB, time=16.29 memory used=377.6MB, alloc=4.6MB, time=16.46 memory used=381.4MB, alloc=4.6MB, time=16.62 memory used=385.2MB, alloc=4.6MB, time=16.79 memory used=389.1MB, alloc=4.6MB, time=16.96 memory used=392.9MB, alloc=4.6MB, time=17.13 memory used=396.7MB, alloc=4.6MB, time=17.29 memory used=400.5MB, alloc=4.6MB, time=17.46 memory used=404.3MB, alloc=4.6MB, time=17.62 memory used=408.1MB, alloc=4.6MB, time=17.79 memory used=411.9MB, alloc=4.6MB, time=17.96 memory used=415.8MB, alloc=4.6MB, time=18.13 memory used=419.6MB, alloc=4.6MB, time=18.29 memory used=423.4MB, alloc=4.6MB, time=18.46 memory used=427.2MB, alloc=4.6MB, time=18.63 memory used=431.0MB, alloc=4.6MB, time=18.79 memory used=434.8MB, alloc=4.6MB, time=18.96 memory used=438.6MB, alloc=4.6MB, time=19.13 memory used=442.5MB, alloc=4.6MB, time=19.29 memory used=446.3MB, alloc=4.6MB, time=19.46 memory used=450.1MB, alloc=4.6MB, time=19.63 memory used=453.9MB, alloc=4.6MB, time=19.80 memory used=457.7MB, alloc=4.6MB, time=19.96 memory used=461.5MB, alloc=4.6MB, time=20.13 memory used=465.4MB, alloc=4.6MB, time=20.30 memory used=469.2MB, alloc=4.6MB, time=20.46 memory used=473.0MB, alloc=4.6MB, time=20.63 memory used=476.8MB, alloc=4.6MB, time=20.80 memory used=480.6MB, alloc=4.6MB, time=20.97 memory used=484.4MB, alloc=4.6MB, time=21.14 memory used=488.2MB, alloc=4.6MB, time=21.31 memory used=492.1MB, alloc=4.6MB, time=21.48 memory used=495.9MB, alloc=4.6MB, time=21.64 memory used=499.7MB, alloc=4.6MB, time=21.81 memory used=503.5MB, alloc=4.6MB, time=21.98 memory used=507.3MB, alloc=4.6MB, time=22.15 memory used=511.1MB, alloc=4.6MB, time=22.32 memory used=514.9MB, alloc=4.6MB, time=22.48 memory used=518.8MB, alloc=4.6MB, time=22.64 memory used=522.6MB, alloc=4.6MB, time=22.81 memory used=526.4MB, alloc=4.6MB, time=22.98 memory used=530.2MB, alloc=4.6MB, time=23.15 memory used=534.0MB, alloc=4.6MB, time=23.32 memory used=537.8MB, alloc=4.6MB, time=23.48 memory used=541.6MB, alloc=4.6MB, time=23.65 memory used=545.5MB, alloc=4.6MB, time=23.82 memory used=549.3MB, alloc=4.6MB, time=23.99 memory used=553.1MB, alloc=4.6MB, time=24.15 memory used=556.9MB, alloc=4.6MB, time=24.32 memory used=560.7MB, alloc=4.6MB, time=24.48 memory used=564.5MB, alloc=4.6MB, time=24.65 memory used=568.4MB, alloc=4.6MB, time=24.82 memory used=572.2MB, alloc=4.6MB, time=24.99 memory used=576.0MB, alloc=4.6MB, time=25.16 memory used=579.8MB, alloc=4.6MB, time=25.32 memory used=583.6MB, alloc=4.6MB, time=25.49 memory used=587.4MB, alloc=4.6MB, time=25.66 memory used=591.2MB, alloc=4.6MB, time=25.83 memory used=595.1MB, alloc=4.6MB, time=25.99 memory used=598.9MB, alloc=4.6MB, time=26.16 memory used=602.7MB, alloc=4.6MB, time=26.33 memory used=606.5MB, alloc=4.6MB, time=26.50 memory used=610.3MB, alloc=4.6MB, time=26.66 memory used=614.1MB, alloc=4.6MB, time=26.83 memory used=617.9MB, alloc=4.6MB, time=27.00 memory used=621.8MB, alloc=4.6MB, time=27.17 memory used=625.6MB, alloc=4.6MB, time=27.33 memory used=629.4MB, alloc=4.6MB, time=27.50 memory used=633.2MB, alloc=4.6MB, time=27.67 memory used=637.0MB, alloc=4.6MB, time=27.83 memory used=640.8MB, alloc=4.6MB, time=28.00 memory used=644.6MB, alloc=4.6MB, time=28.17 memory used=648.5MB, alloc=4.6MB, time=28.33 memory used=652.3MB, alloc=4.6MB, time=28.50 memory used=656.1MB, alloc=4.6MB, time=28.67 memory used=659.9MB, alloc=4.6MB, time=28.83 memory used=663.7MB, alloc=4.6MB, time=29.00 memory used=667.5MB, alloc=4.6MB, time=29.17 memory used=671.4MB, alloc=4.6MB, time=29.33 memory used=675.2MB, alloc=4.6MB, time=29.50 memory used=679.0MB, alloc=4.6MB, time=29.67 memory used=682.8MB, alloc=4.6MB, time=29.84 memory used=686.6MB, alloc=4.6MB, time=30.01 memory used=690.4MB, alloc=4.6MB, time=30.17 memory used=694.2MB, alloc=4.6MB, time=30.34 memory used=698.1MB, alloc=4.6MB, time=30.51 memory used=701.9MB, alloc=4.6MB, time=30.68 memory used=705.7MB, alloc=4.6MB, time=30.85 memory used=709.5MB, alloc=4.6MB, time=31.01 memory used=713.3MB, alloc=4.6MB, time=31.18 memory used=717.1MB, alloc=4.6MB, time=31.35 memory used=720.9MB, alloc=4.6MB, time=31.52 memory used=724.8MB, alloc=4.6MB, time=31.68 memory used=728.6MB, alloc=4.6MB, time=31.85 memory used=732.4MB, alloc=4.6MB, time=32.02 memory used=736.2MB, alloc=4.6MB, time=32.18 memory used=740.0MB, alloc=4.6MB, time=32.35 memory used=743.8MB, alloc=4.6MB, time=32.51 memory used=747.6MB, alloc=4.6MB, time=32.68 memory used=751.5MB, alloc=4.6MB, time=32.84 memory used=755.3MB, alloc=4.6MB, time=33.01 memory used=759.1MB, alloc=4.6MB, time=33.18 memory used=762.9MB, alloc=4.6MB, time=33.35 memory used=766.7MB, alloc=4.6MB, time=33.52 memory used=770.5MB, alloc=4.6MB, time=33.69 memory used=774.3MB, alloc=4.6MB, time=33.85 memory used=778.2MB, alloc=4.6MB, time=34.02 memory used=782.0MB, alloc=4.6MB, time=34.19 memory used=785.8MB, alloc=4.6MB, time=34.36 memory used=789.6MB, alloc=4.6MB, time=34.52 memory used=793.4MB, alloc=4.7MB, time=34.69 memory used=797.2MB, alloc=4.7MB, time=34.86 memory used=801.1MB, alloc=4.7MB, time=35.02 memory used=804.9MB, alloc=4.7MB, time=35.19 memory used=808.7MB, alloc=4.7MB, time=35.36 memory used=812.5MB, alloc=4.7MB, time=35.53 memory used=816.3MB, alloc=4.7MB, time=35.69 memory used=820.1MB, alloc=4.7MB, time=35.86 memory used=823.9MB, alloc=4.7MB, time=36.03 memory used=827.8MB, alloc=4.7MB, time=36.20 memory used=831.6MB, alloc=4.7MB, time=36.36 memory used=835.4MB, alloc=4.7MB, time=36.53 memory used=839.2MB, alloc=4.7MB, time=36.70 memory used=843.0MB, alloc=4.7MB, time=36.87 memory used=846.8MB, alloc=4.7MB, time=37.03 memory used=850.6MB, alloc=4.7MB, time=37.20 memory used=854.5MB, alloc=4.7MB, time=37.37 memory used=858.3MB, alloc=4.7MB, time=37.54 memory used=862.1MB, alloc=4.7MB, time=37.71 memory used=865.9MB, alloc=4.7MB, time=37.88 memory used=869.7MB, alloc=4.7MB, time=38.04 memory used=873.5MB, alloc=4.7MB, time=38.21 memory used=877.3MB, alloc=4.7MB, time=38.38 memory used=881.2MB, alloc=4.7MB, time=38.55 memory used=885.0MB, alloc=4.7MB, time=38.71 memory used=888.8MB, alloc=4.7MB, time=38.88 memory used=892.6MB, alloc=4.7MB, time=39.05 memory used=896.4MB, alloc=4.7MB, time=39.22 memory used=900.2MB, alloc=4.7MB, time=39.39 memory used=904.1MB, alloc=4.7MB, time=39.55 memory used=907.9MB, alloc=4.7MB, time=39.72 memory used=911.7MB, alloc=4.7MB, time=39.89 memory used=915.5MB, alloc=4.7MB, time=40.05 memory used=919.3MB, alloc=4.7MB, time=40.22 memory used=923.1MB, alloc=4.7MB, time=40.39 memory used=926.9MB, alloc=4.7MB, time=40.56 memory used=930.8MB, alloc=4.7MB, time=40.72 memory used=934.6MB, alloc=4.7MB, time=40.89 memory used=938.4MB, alloc=4.7MB, time=41.06 memory used=942.2MB, alloc=4.7MB, time=41.23 memory used=946.0MB, alloc=4.7MB, time=41.40 memory used=949.8MB, alloc=4.7MB, time=41.56 memory used=953.6MB, alloc=4.7MB, time=41.73 memory used=957.5MB, alloc=4.7MB, time=41.90 memory used=961.3MB, alloc=4.7MB, time=42.06 memory used=965.1MB, alloc=4.7MB, time=42.23 memory used=968.9MB, alloc=4.7MB, time=42.40 memory used=972.7MB, alloc=4.7MB, time=42.57 memory used=976.5MB, alloc=4.7MB, time=42.74 memory used=980.3MB, alloc=4.7MB, time=42.90 memory used=984.2MB, alloc=4.7MB, time=43.07 memory used=988.0MB, alloc=4.7MB, time=43.24 memory used=991.8MB, alloc=4.7MB, time=43.41 memory used=995.6MB, alloc=4.7MB, time=43.57 memory used=999.4MB, alloc=4.7MB, time=43.74 memory used=1003.2MB, alloc=4.7MB, time=43.91 memory used=1007.1MB, alloc=4.7MB, time=44.08 memory used=1010.9MB, alloc=4.7MB, time=44.24 memory used=1014.7MB, alloc=4.7MB, time=44.41 memory used=1018.5MB, alloc=4.7MB, time=44.58 memory used=1022.3MB, alloc=4.7MB, time=44.75 memory used=1026.1MB, alloc=4.7MB, time=44.92 memory used=1029.9MB, alloc=4.7MB, time=45.09 memory used=1033.8MB, alloc=4.7MB, time=45.25 memory used=1037.6MB, alloc=4.7MB, time=45.42 memory used=1041.4MB, alloc=4.7MB, time=45.59 memory used=1045.2MB, alloc=4.7MB, time=45.75 memory used=1049.0MB, alloc=4.7MB, time=45.92 memory used=1052.8MB, alloc=4.7MB, time=46.09 memory used=1056.6MB, alloc=4.7MB, time=46.25 memory used=1060.5MB, alloc=4.7MB, time=46.42 memory used=1064.3MB, alloc=4.7MB, time=46.59 memory used=1068.1MB, alloc=4.7MB, time=46.76 memory used=1071.9MB, alloc=4.7MB, time=46.92 memory used=1075.7MB, alloc=4.7MB, time=47.09 memory used=1079.5MB, alloc=4.7MB, time=47.26 memory used=1083.3MB, alloc=4.7MB, time=47.43 memory used=1087.2MB, alloc=4.7MB, time=47.59 memory used=1091.0MB, alloc=4.7MB, time=47.76 memory used=1094.8MB, alloc=4.7MB, time=47.93 memory used=1098.6MB, alloc=4.7MB, time=48.10 memory used=1102.4MB, alloc=4.7MB, time=48.27 memory used=1106.2MB, alloc=4.7MB, time=48.43 memory used=1110.1MB, alloc=4.7MB, time=48.60 memory used=1113.9MB, alloc=4.7MB, time=48.77 memory used=1117.7MB, alloc=4.7MB, time=48.94 memory used=1121.5MB, alloc=4.7MB, time=49.10 memory used=1125.3MB, alloc=4.7MB, time=49.27 memory used=1129.1MB, alloc=4.7MB, time=49.44 memory used=1132.9MB, alloc=4.7MB, time=49.60 memory used=1136.8MB, alloc=4.7MB, time=49.77 memory used=1140.6MB, alloc=4.7MB, time=49.94 memory used=1144.4MB, alloc=4.7MB, time=50.11 memory used=1148.2MB, alloc=4.7MB, time=50.27 memory used=1152.0MB, alloc=4.7MB, time=50.44 memory used=1155.8MB, alloc=4.7MB, time=50.61 memory used=1159.6MB, alloc=4.7MB, time=50.78 memory used=1163.5MB, alloc=4.7MB, time=50.95 memory used=1167.3MB, alloc=4.7MB, time=51.12 memory used=1171.1MB, alloc=4.7MB, time=51.28 memory used=1174.9MB, alloc=4.7MB, time=51.45 memory used=1178.7MB, alloc=4.7MB, time=51.62 memory used=1182.5MB, alloc=4.7MB, time=51.78 memory used=1186.3MB, alloc=4.7MB, time=51.95 memory used=1190.2MB, alloc=4.7MB, time=52.12 memory used=1194.0MB, alloc=4.7MB, time=52.29 memory used=1197.8MB, alloc=4.7MB, time=52.46 memory used=1201.6MB, alloc=4.7MB, time=52.62 memory used=1205.4MB, alloc=4.7MB, time=52.79 memory used=1209.2MB, alloc=4.7MB, time=52.95 memory used=1213.0MB, alloc=4.7MB, time=53.12 memory used=1216.9MB, alloc=4.7MB, time=53.29 memory used=1220.7MB, alloc=4.7MB, time=53.46 memory used=1224.5MB, alloc=4.7MB, time=53.62 memory used=1228.3MB, alloc=4.7MB, time=53.79 memory used=1232.1MB, alloc=4.7MB, time=53.96 memory used=1235.9MB, alloc=4.7MB, time=54.12 memory used=1239.8MB, alloc=4.7MB, time=54.29 memory used=1243.6MB, alloc=4.7MB, time=54.46 memory used=1247.4MB, alloc=4.7MB, time=54.62 memory used=1251.2MB, alloc=4.7MB, time=54.79 memory used=1255.0MB, alloc=4.7MB, time=54.96 memory used=1258.8MB, alloc=4.7MB, time=55.13 memory used=1262.6MB, alloc=4.7MB, time=55.29 memory used=1266.5MB, alloc=4.7MB, time=55.46 memory used=1270.3MB, alloc=4.7MB, time=55.63 memory used=1274.1MB, alloc=4.7MB, time=55.80 memory used=1277.9MB, alloc=4.7MB, time=55.96 memory used=1281.7MB, alloc=4.7MB, time=56.13 memory used=1285.5MB, alloc=4.7MB, time=56.30 memory used=1289.3MB, alloc=4.7MB, time=56.47 memory used=1293.2MB, alloc=4.7MB, time=56.64 memory used=1297.0MB, alloc=4.7MB, time=56.81 memory used=1300.8MB, alloc=4.7MB, time=56.98 memory used=1304.6MB, alloc=4.7MB, time=57.14 memory used=1308.4MB, alloc=4.7MB, time=57.31 memory used=1312.2MB, alloc=4.7MB, time=57.48 memory used=1316.0MB, alloc=4.7MB, time=57.64 memory used=1319.9MB, alloc=4.7MB, time=57.81 memory used=1323.7MB, alloc=4.7MB, time=57.98 memory used=1327.5MB, alloc=4.7MB, time=58.15 memory used=1331.3MB, alloc=4.7MB, time=58.31 memory used=1335.1MB, alloc=4.7MB, time=58.48 memory used=1338.9MB, alloc=4.7MB, time=58.65 memory used=1342.8MB, alloc=4.7MB, time=58.81 memory used=1346.6MB, alloc=4.7MB, time=58.98 memory used=1350.4MB, alloc=4.7MB, time=59.15 memory used=1354.2MB, alloc=4.7MB, time=59.32 memory used=1358.0MB, alloc=4.7MB, time=59.48 memory used=1361.8MB, alloc=4.7MB, time=59.65 memory used=1365.6MB, alloc=4.7MB, time=59.82 memory used=1369.5MB, alloc=4.7MB, time=59.99 memory used=1373.3MB, alloc=4.7MB, time=60.15 memory used=1377.1MB, alloc=4.7MB, time=60.32 memory used=1380.9MB, alloc=4.7MB, time=60.49 memory used=1384.7MB, alloc=4.7MB, time=60.66 memory used=1388.5MB, alloc=4.7MB, time=60.83 memory used=1392.3MB, alloc=4.7MB, time=60.99 memory used=1396.2MB, alloc=4.7MB, time=61.16 memory used=1400.0MB, alloc=4.7MB, time=61.33 memory used=1403.8MB, alloc=4.7MB, time=61.50 memory used=1407.6MB, alloc=4.7MB, time=61.66 memory used=1411.4MB, alloc=4.7MB, time=61.83 memory used=1415.2MB, alloc=4.7MB, time=62.00 memory used=1419.0MB, alloc=4.7MB, time=62.17 memory used=1422.9MB, alloc=4.7MB, time=62.33 memory used=1426.7MB, alloc=4.7MB, time=62.50 memory used=1430.5MB, alloc=4.7MB, time=62.67 memory used=1434.3MB, alloc=4.7MB, time=62.84 memory used=1438.1MB, alloc=4.7MB, time=63.01 memory used=1441.9MB, alloc=4.7MB, time=63.18 memory used=1445.8MB, alloc=4.7MB, time=63.34 memory used=1449.6MB, alloc=4.7MB, time=63.51 memory used=1453.4MB, alloc=4.7MB, time=63.68 memory used=1457.2MB, alloc=4.7MB, time=63.85 memory used=1461.0MB, alloc=4.7MB, time=64.02 memory used=1464.8MB, alloc=4.7MB, time=64.18 memory used=1468.6MB, alloc=4.7MB, time=64.35 memory used=1472.5MB, alloc=4.7MB, time=64.52 memory used=1476.3MB, alloc=4.7MB, time=64.69 memory used=1480.1MB, alloc=4.7MB, time=64.86 memory used=1483.9MB, alloc=4.7MB, time=65.02 memory used=1487.7MB, alloc=4.7MB, time=65.19 memory used=1491.5MB, alloc=4.7MB, time=65.36 memory used=1495.3MB, alloc=4.7MB, time=65.53 memory used=1499.2MB, alloc=4.7MB, time=65.70 memory used=1503.0MB, alloc=4.7MB, time=65.86 memory used=1506.8MB, alloc=4.7MB, time=66.03 memory used=1510.6MB, alloc=4.7MB, time=66.20 memory used=1514.4MB, alloc=4.7MB, time=66.37 memory used=1518.2MB, alloc=4.7MB, time=66.53 memory used=1522.0MB, alloc=4.7MB, time=66.70 memory used=1525.9MB, alloc=4.7MB, time=66.87 memory used=1529.7MB, alloc=4.7MB, time=67.04 memory used=1533.5MB, alloc=4.7MB, time=67.20 memory used=1537.3MB, alloc=4.7MB, time=67.37 memory used=1541.1MB, alloc=4.7MB, time=67.54 memory used=1544.9MB, alloc=4.7MB, time=67.71 memory used=1548.8MB, alloc=4.7MB, time=67.87 memory used=1552.6MB, alloc=4.7MB, time=68.04 memory used=1556.4MB, alloc=4.7MB, time=68.21 memory used=1560.2MB, alloc=4.7MB, time=68.38 memory used=1564.0MB, alloc=4.7MB, time=68.55 memory used=1567.8MB, alloc=4.7MB, time=68.72 memory used=1571.6MB, alloc=4.7MB, time=68.88 memory used=1575.5MB, alloc=4.7MB, time=69.05 memory used=1579.3MB, alloc=4.7MB, time=69.22 memory used=1583.1MB, alloc=4.7MB, time=69.39 memory used=1586.9MB, alloc=4.7MB, time=69.55 memory used=1590.7MB, alloc=4.7MB, time=69.72 memory used=1594.5MB, alloc=4.7MB, time=69.89 memory used=1598.3MB, alloc=4.7MB, time=70.06 memory used=1602.2MB, alloc=4.7MB, time=70.22 memory used=1606.0MB, alloc=4.7MB, time=70.39 memory used=1609.8MB, alloc=4.7MB, time=70.56 memory used=1613.6MB, alloc=4.7MB, time=70.73 memory used=1617.4MB, alloc=4.7MB, time=70.89 memory used=1621.2MB, alloc=4.7MB, time=71.06 memory used=1625.0MB, alloc=4.7MB, time=71.23 memory used=1628.9MB, alloc=4.7MB, time=71.40 memory used=1632.7MB, alloc=4.7MB, time=71.56 memory used=1636.5MB, alloc=4.7MB, time=71.73 memory used=1640.3MB, alloc=4.7MB, time=71.90 memory used=1644.1MB, alloc=4.7MB, time=72.07 memory used=1647.9MB, alloc=4.7MB, time=72.24 memory used=1651.8MB, alloc=4.7MB, time=72.40 memory used=1655.6MB, alloc=4.7MB, time=72.57 memory used=1659.4MB, alloc=4.7MB, time=72.74 memory used=1663.2MB, alloc=4.7MB, time=72.91 memory used=1667.0MB, alloc=4.7MB, time=73.07 memory used=1670.8MB, alloc=4.7MB, time=73.24 memory used=1674.6MB, alloc=4.7MB, time=73.41 memory used=1678.5MB, alloc=4.7MB, time=73.58 memory used=1682.3MB, alloc=4.7MB, time=73.75 memory used=1686.1MB, alloc=4.7MB, time=73.91 memory used=1689.9MB, alloc=4.7MB, time=74.08 memory used=1693.7MB, alloc=4.7MB, time=74.25 memory used=1697.5MB, alloc=4.7MB, time=74.41 memory used=1701.3MB, alloc=4.7MB, time=74.58 memory used=1705.2MB, alloc=4.7MB, time=74.75 memory used=1709.0MB, alloc=4.7MB, time=74.92 memory used=1712.8MB, alloc=4.7MB, time=75.09 memory used=1716.6MB, alloc=4.7MB, time=75.25 memory used=1720.4MB, alloc=4.7MB, time=75.42 memory used=1724.2MB, alloc=4.7MB, time=75.59 memory used=1728.0MB, alloc=4.7MB, time=75.76 memory used=1731.9MB, alloc=4.7MB, time=75.92 memory used=1735.7MB, alloc=4.7MB, time=76.09 memory used=1739.5MB, alloc=4.7MB, time=76.25 memory used=1743.3MB, alloc=4.7MB, time=76.42 memory used=1747.1MB, alloc=4.7MB, time=76.59 memory used=1750.9MB, alloc=4.7MB, time=76.76 memory used=1754.7MB, alloc=4.7MB, time=76.93 memory used=1758.6MB, alloc=4.7MB, time=77.10 memory used=1762.4MB, alloc=4.7MB, time=77.26 memory used=1766.2MB, alloc=4.7MB, time=77.43 memory used=1770.0MB, alloc=4.7MB, time=77.60 memory used=1773.8MB, alloc=4.7MB, time=77.77 memory used=1777.6MB, alloc=4.7MB, time=77.93 memory used=1781.5MB, alloc=4.7MB, time=78.09 memory used=1785.3MB, alloc=4.7MB, time=78.26 memory used=1789.1MB, alloc=4.7MB, time=78.43 memory used=1792.9MB, alloc=4.7MB, time=78.60 memory used=1796.7MB, alloc=4.7MB, time=78.77 memory used=1800.5MB, alloc=4.7MB, time=78.93 memory used=1804.3MB, alloc=4.7MB, time=79.10 memory used=1808.2MB, alloc=4.7MB, time=79.27 memory used=1812.0MB, alloc=4.7MB, time=79.43 memory used=1815.8MB, alloc=4.7MB, time=79.60 memory used=1819.6MB, alloc=4.7MB, time=79.77 memory used=1823.4MB, alloc=4.7MB, time=79.94 memory used=1827.2MB, alloc=4.7MB, time=80.11 memory used=1831.0MB, alloc=4.7MB, time=80.28 memory used=1834.9MB, alloc=4.7MB, time=80.44 memory used=1838.7MB, alloc=4.7MB, time=80.61 memory used=1842.5MB, alloc=4.7MB, time=80.78 memory used=1846.3MB, alloc=4.7MB, time=80.95 memory used=1850.1MB, alloc=4.7MB, time=81.12 memory used=1853.9MB, alloc=4.7MB, time=81.28 memory used=1857.7MB, alloc=4.7MB, time=81.45 memory used=1861.6MB, alloc=4.7MB, time=81.62 memory used=1865.4MB, alloc=4.7MB, time=81.78 memory used=1869.2MB, alloc=4.7MB, time=81.95 memory used=1873.0MB, alloc=4.7MB, time=82.12 memory used=1876.8MB, alloc=4.7MB, time=82.29 memory used=1880.6MB, alloc=4.7MB, time=82.46 memory used=1884.5MB, alloc=4.7MB, time=82.62 memory used=1888.3MB, alloc=4.7MB, time=82.79 memory used=1892.1MB, alloc=4.7MB, time=82.96 memory used=1895.9MB, alloc=4.7MB, time=83.13 memory used=1899.7MB, alloc=4.7MB, time=83.29 memory used=1903.5MB, alloc=4.7MB, time=83.46 memory used=1907.3MB, alloc=4.7MB, time=83.63 memory used=1911.2MB, alloc=4.7MB, time=83.80 memory used=1915.0MB, alloc=4.7MB, time=83.97 memory used=1918.8MB, alloc=4.7MB, time=84.13 memory used=1922.6MB, alloc=4.7MB, time=84.30 memory used=1926.4MB, alloc=4.7MB, time=84.47 memory used=1930.2MB, alloc=4.7MB, time=84.63 memory used=1934.0MB, alloc=4.7MB, time=84.80 memory used=1937.9MB, alloc=4.7MB, time=84.97 memory used=1941.7MB, alloc=4.7MB, time=85.13 memory used=1945.5MB, alloc=4.7MB, time=85.30 memory used=1949.3MB, alloc=4.7MB, time=85.47 memory used=1953.1MB, alloc=4.7MB, time=85.64 memory used=1956.9MB, alloc=4.7MB, time=85.81 memory used=1960.7MB, alloc=4.7MB, time=85.97 memory used=1964.6MB, alloc=4.7MB, time=86.14 memory used=1968.4MB, alloc=4.7MB, time=86.31 memory used=1972.2MB, alloc=4.7MB, time=86.48 memory used=1976.0MB, alloc=4.7MB, time=86.65 memory used=1979.8MB, alloc=4.7MB, time=86.82 memory used=1983.6MB, alloc=4.7MB, time=86.98 memory used=1987.5MB, alloc=4.7MB, time=87.15 memory used=1991.3MB, alloc=4.7MB, time=87.32 memory used=1995.1MB, alloc=4.7MB, time=87.48 memory used=1998.9MB, alloc=4.7MB, time=87.65 memory used=2002.7MB, alloc=4.7MB, time=87.82 memory used=2006.5MB, alloc=4.7MB, time=87.98 memory used=2010.3MB, alloc=4.7MB, time=88.15 memory used=2014.2MB, alloc=4.7MB, time=88.32 memory used=2018.0MB, alloc=4.7MB, time=88.48 memory used=2021.8MB, alloc=4.7MB, time=88.65 memory used=2025.6MB, alloc=4.7MB, time=88.82 memory used=2029.4MB, alloc=4.7MB, time=88.99 memory used=2033.2MB, alloc=4.7MB, time=89.15 memory used=2037.0MB, alloc=4.7MB, time=89.32 memory used=2040.9MB, alloc=4.7MB, time=89.49 memory used=2044.7MB, alloc=4.7MB, time=89.66 memory used=2048.5MB, alloc=4.7MB, time=89.83 memory used=2052.3MB, alloc=4.7MB, time=89.99 memory used=2056.1MB, alloc=4.7MB, time=90.16 memory used=2059.9MB, alloc=4.7MB, time=90.33 memory used=2063.7MB, alloc=4.7MB, time=90.49 memory used=2067.6MB, alloc=4.7MB, time=90.66 memory used=2071.4MB, alloc=4.7MB, time=90.83 memory used=2075.2MB, alloc=4.7MB, time=91.00 memory used=2079.0MB, alloc=4.7MB, time=91.17 memory used=2082.8MB, alloc=4.7MB, time=91.33 memory used=2086.6MB, alloc=4.7MB, time=91.50 memory used=2090.5MB, alloc=4.7MB, time=91.67 memory used=2094.3MB, alloc=4.7MB, time=91.84 memory used=2098.1MB, alloc=4.7MB, time=92.00 memory used=2101.9MB, alloc=4.7MB, time=92.17 memory used=2105.7MB, alloc=4.7MB, time=92.34 memory used=2109.5MB, alloc=4.7MB, time=92.51 memory used=2113.3MB, alloc=4.7MB, time=92.68 memory used=2117.2MB, alloc=4.7MB, time=92.84 memory used=2121.0MB, alloc=4.7MB, time=93.01 memory used=2124.8MB, alloc=4.7MB, time=93.18 memory used=2128.6MB, alloc=4.7MB, time=93.35 memory used=2132.4MB, alloc=4.7MB, time=93.51 memory used=2136.2MB, alloc=4.7MB, time=93.68 memory used=2140.0MB, alloc=4.7MB, time=93.85 memory used=2143.9MB, alloc=4.7MB, time=94.02 memory used=2147.7MB, alloc=4.7MB, time=94.19 memory used=2151.5MB, alloc=4.7MB, time=94.36 memory used=2155.3MB, alloc=4.7MB, time=94.52 memory used=2159.1MB, alloc=4.7MB, time=94.69 memory used=2162.9MB, alloc=4.7MB, time=94.86 memory used=2166.7MB, alloc=4.7MB, time=95.03 memory used=2170.6MB, alloc=4.7MB, time=95.19 memory used=2174.4MB, alloc=4.7MB, time=95.36 memory used=2178.2MB, alloc=4.7MB, time=95.53 memory used=2182.0MB, alloc=4.7MB, time=95.70 memory used=2185.8MB, alloc=4.7MB, time=95.86 memory used=2189.6MB, alloc=4.7MB, time=96.03 memory used=2193.5MB, alloc=4.7MB, time=96.20 memory used=2197.3MB, alloc=4.7MB, time=96.37 memory used=2201.1MB, alloc=4.7MB, time=96.54 memory used=2204.9MB, alloc=4.7MB, time=96.70 memory used=2208.7MB, alloc=4.7MB, time=96.87 memory used=2212.5MB, alloc=4.7MB, time=97.04 memory used=2216.3MB, alloc=4.7MB, time=97.21 memory used=2220.2MB, alloc=4.7MB, time=97.37 memory used=2224.0MB, alloc=4.7MB, time=97.54 memory used=2227.8MB, alloc=4.7MB, time=97.71 memory used=2231.6MB, alloc=4.7MB, time=97.88 memory used=2235.4MB, alloc=4.7MB, time=98.05 memory used=2239.2MB, alloc=4.7MB, time=98.22 memory used=2243.0MB, alloc=4.7MB, time=98.39 memory used=2246.9MB, alloc=4.7MB, time=98.56 memory used=2250.7MB, alloc=4.7MB, time=98.72 memory used=2254.5MB, alloc=4.7MB, time=98.89 memory used=2258.3MB, alloc=4.7MB, time=99.06 memory used=2262.1MB, alloc=4.7MB, time=99.23 memory used=2265.9MB, alloc=4.7MB, time=99.40 memory used=2269.7MB, alloc=4.7MB, time=99.57 memory used=2273.6MB, alloc=4.7MB, time=99.73 memory used=2277.4MB, alloc=4.7MB, time=99.90 memory used=2281.2MB, alloc=4.7MB, time=100.07 memory used=2285.0MB, alloc=4.7MB, time=100.24 memory used=2288.8MB, alloc=4.7MB, time=100.40 memory used=2292.6MB, alloc=4.7MB, time=100.57 memory used=2296.4MB, alloc=4.7MB, time=100.74 memory used=2300.3MB, alloc=4.7MB, time=100.91 memory used=2304.1MB, alloc=4.7MB, time=101.08 memory used=2307.9MB, alloc=4.7MB, time=101.24 memory used=2311.7MB, alloc=4.7MB, time=101.41 memory used=2315.5MB, alloc=4.7MB, time=101.58 memory used=2319.3MB, alloc=4.7MB, time=101.74 memory used=2323.2MB, alloc=4.7MB, time=101.91 memory used=2327.0MB, alloc=4.7MB, time=102.08 memory used=2330.8MB, alloc=4.7MB, time=102.25 memory used=2334.6MB, alloc=4.7MB, time=102.42 memory used=2338.4MB, alloc=4.7MB, time=102.59 memory used=2342.2MB, alloc=4.7MB, time=102.75 memory used=2346.0MB, alloc=4.7MB, time=102.92 memory used=2349.9MB, alloc=4.7MB, time=103.09 memory used=2353.7MB, alloc=4.7MB, time=103.25 memory used=2357.5MB, alloc=4.7MB, time=103.42 memory used=2361.3MB, alloc=4.7MB, time=103.59 memory used=2365.1MB, alloc=4.7MB, time=103.76 memory used=2368.9MB, alloc=4.7MB, time=103.93 memory used=2372.7MB, alloc=4.7MB, time=104.10 memory used=2376.6MB, alloc=4.7MB, time=104.27 memory used=2380.4MB, alloc=4.7MB, time=104.43 memory used=2384.2MB, alloc=4.7MB, time=104.60 memory used=2388.0MB, alloc=4.7MB, time=104.77 memory used=2391.8MB, alloc=4.7MB, time=104.93 memory used=2395.6MB, alloc=4.7MB, time=105.10 memory used=2399.4MB, alloc=4.7MB, time=105.27 memory used=2403.3MB, alloc=4.7MB, time=105.44 memory used=2407.1MB, alloc=4.7MB, time=105.60 memory used=2410.9MB, alloc=4.7MB, time=105.77 memory used=2414.7MB, alloc=4.7MB, time=105.94 memory used=2418.5MB, alloc=4.7MB, time=106.11 memory used=2422.3MB, alloc=4.7MB, time=106.27 memory used=2426.2MB, alloc=4.7MB, time=106.44 memory used=2430.0MB, alloc=4.7MB, time=106.61 memory used=2433.8MB, alloc=4.7MB, time=106.77 memory used=2437.6MB, alloc=4.7MB, time=106.94 memory used=2441.4MB, alloc=4.7MB, time=107.11 memory used=2445.2MB, alloc=4.7MB, time=107.28 memory used=2449.0MB, alloc=4.7MB, time=107.45 memory used=2452.9MB, alloc=4.7MB, time=107.61 memory used=2456.7MB, alloc=4.7MB, time=107.78 memory used=2460.5MB, alloc=4.7MB, time=107.95 memory used=2464.3MB, alloc=4.7MB, time=108.12 memory used=2468.1MB, alloc=4.7MB, time=108.29 memory used=2471.9MB, alloc=4.7MB, time=108.46 memory used=2475.7MB, alloc=4.7MB, time=108.62 memory used=2479.6MB, alloc=4.7MB, time=108.79 memory used=2483.4MB, alloc=4.7MB, time=108.96 memory used=2487.2MB, alloc=4.7MB, time=109.12 memory used=2491.0MB, alloc=4.7MB, time=109.29 memory used=2494.8MB, alloc=4.7MB, time=109.46 memory used=2498.6MB, alloc=4.7MB, time=109.63 memory used=2502.4MB, alloc=4.7MB, time=109.80 memory used=2506.3MB, alloc=4.7MB, time=109.97 memory used=2510.1MB, alloc=4.7MB, time=110.14 memory used=2513.9MB, alloc=4.7MB, time=110.30 memory used=2517.7MB, alloc=4.7MB, time=110.47 memory used=2521.5MB, alloc=4.7MB, time=110.64 memory used=2525.3MB, alloc=4.7MB, time=110.81 memory used=2529.2MB, alloc=4.7MB, time=110.97 memory used=2533.0MB, alloc=4.7MB, time=111.14 memory used=2536.8MB, alloc=4.7MB, time=111.31 memory used=2540.6MB, alloc=4.7MB, time=111.48 memory used=2544.4MB, alloc=4.7MB, time=111.64 memory used=2548.2MB, alloc=4.7MB, time=111.81 memory used=2552.0MB, alloc=4.7MB, time=111.98 memory used=2555.9MB, alloc=4.7MB, time=112.15 memory used=2559.7MB, alloc=4.7MB, time=112.31 memory used=2563.5MB, alloc=4.7MB, time=112.48 memory used=2567.3MB, alloc=4.7MB, time=112.64 memory used=2571.1MB, alloc=4.7MB, time=112.81 memory used=2574.9MB, alloc=4.7MB, time=112.98 memory used=2578.7MB, alloc=4.7MB, time=113.15 memory used=2582.6MB, alloc=4.7MB, time=113.32 memory used=2586.4MB, alloc=4.7MB, time=113.48 memory used=2590.2MB, alloc=4.7MB, time=113.65 memory used=2594.0MB, alloc=4.7MB, time=113.82 memory used=2597.8MB, alloc=4.7MB, time=113.99 memory used=2601.6MB, alloc=4.7MB, time=114.16 memory used=2605.4MB, alloc=4.7MB, time=114.33 memory used=2609.3MB, alloc=4.7MB, time=114.49 memory used=2613.1MB, alloc=4.7MB, time=114.66 memory used=2616.9MB, alloc=4.7MB, time=114.83 memory used=2620.7MB, alloc=4.7MB, time=115.00 memory used=2624.5MB, alloc=4.7MB, time=115.17 memory used=2628.3MB, alloc=4.7MB, time=115.33 memory used=2632.2MB, alloc=4.7MB, time=115.50 memory used=2636.0MB, alloc=4.7MB, time=115.67 memory used=2639.8MB, alloc=4.7MB, time=115.84 memory used=2643.6MB, alloc=4.7MB, time=116.01 memory used=2647.4MB, alloc=4.7MB, time=116.18 memory used=2651.2MB, alloc=4.7MB, time=116.34 memory used=2655.0MB, alloc=4.7MB, time=116.51 memory used=2658.9MB, alloc=4.7MB, time=116.68 memory used=2662.7MB, alloc=4.7MB, time=116.85 memory used=2666.5MB, alloc=4.7MB, time=117.02 memory used=2670.3MB, alloc=4.7MB, time=117.18 memory used=2674.1MB, alloc=4.7MB, time=117.35 memory used=2677.9MB, alloc=4.7MB, time=117.52 memory used=2681.7MB, alloc=4.7MB, time=117.68 memory used=2685.6MB, alloc=4.7MB, time=117.85 memory used=2689.4MB, alloc=4.7MB, time=118.02 memory used=2693.2MB, alloc=4.7MB, time=118.19 memory used=2697.0MB, alloc=4.7MB, time=118.35 memory used=2700.8MB, alloc=4.7MB, time=118.52 memory used=2704.6MB, alloc=4.7MB, time=118.69 memory used=2708.4MB, alloc=4.7MB, time=118.86 memory used=2712.3MB, alloc=4.7MB, time=119.02 memory used=2716.1MB, alloc=4.7MB, time=119.19 memory used=2719.9MB, alloc=4.7MB, time=119.36 memory used=2723.7MB, alloc=4.7MB, time=119.53 memory used=2727.5MB, alloc=4.7MB, time=119.69 memory used=2731.3MB, alloc=4.7MB, time=119.86 memory used=2735.1MB, alloc=4.7MB, time=120.03 memory used=2739.0MB, alloc=4.7MB, time=120.20 memory used=2742.8MB, alloc=4.7MB, time=120.37 memory used=2746.6MB, alloc=4.7MB, time=120.54 memory used=2750.4MB, alloc=4.7MB, time=120.70 memory used=2754.2MB, alloc=4.7MB, time=120.87 memory used=2758.0MB, alloc=4.7MB, time=121.04 memory used=2761.9MB, alloc=4.7MB, time=121.21 memory used=2765.7MB, alloc=4.7MB, time=121.38 memory used=2769.5MB, alloc=4.7MB, time=121.55 memory used=2773.3MB, alloc=4.7MB, time=121.71 memory used=2777.1MB, alloc=4.7MB, time=121.88 memory used=2780.9MB, alloc=4.7MB, time=122.05 memory used=2784.7MB, alloc=4.7MB, time=122.22 memory used=2788.6MB, alloc=4.7MB, time=122.38 memory used=2792.4MB, alloc=4.7MB, time=122.55 memory used=2796.2MB, alloc=4.7MB, time=122.72 memory used=2800.0MB, alloc=4.7MB, time=122.89 memory used=2803.8MB, alloc=4.7MB, time=123.05 memory used=2807.6MB, alloc=4.7MB, time=123.22 memory used=2811.4MB, alloc=4.7MB, time=123.39 memory used=2815.3MB, alloc=4.7MB, time=123.56 memory used=2819.1MB, alloc=4.7MB, time=123.73 memory used=2822.9MB, alloc=4.7MB, time=123.90 memory used=2826.7MB, alloc=4.7MB, time=124.06 memory used=2830.5MB, alloc=4.7MB, time=124.23 memory used=2834.3MB, alloc=4.7MB, time=124.40 memory used=2838.1MB, alloc=4.7MB, time=124.57 memory used=2842.0MB, alloc=4.7MB, time=124.74 memory used=2845.8MB, alloc=4.7MB, time=124.90 memory used=2849.6MB, alloc=4.7MB, time=125.07 memory used=2853.4MB, alloc=4.7MB, time=125.23 memory used=2857.2MB, alloc=4.7MB, time=125.40 memory used=2861.0MB, alloc=4.7MB, time=125.57 memory used=2864.9MB, alloc=4.7MB, time=125.73 memory used=2868.7MB, alloc=4.7MB, time=125.90 memory used=2872.5MB, alloc=4.7MB, time=126.07 memory used=2876.3MB, alloc=4.7MB, time=126.24 memory used=2880.1MB, alloc=4.7MB, time=126.40 memory used=2883.9MB, alloc=4.7MB, time=126.57 memory used=2887.7MB, alloc=4.7MB, time=126.74 memory used=2891.6MB, alloc=4.7MB, time=126.91 memory used=2895.4MB, alloc=4.7MB, time=127.07 memory used=2899.2MB, alloc=4.7MB, time=127.24 memory used=2903.0MB, alloc=4.7MB, time=127.41 memory used=2906.8MB, alloc=4.7MB, time=127.58 memory used=2910.6MB, alloc=4.7MB, time=127.75 memory used=2914.4MB, alloc=4.7MB, time=127.92 memory used=2918.3MB, alloc=4.7MB, time=128.08 memory used=2922.1MB, alloc=4.7MB, time=128.25 memory used=2925.9MB, alloc=4.7MB, time=128.42 memory used=2929.7MB, alloc=4.7MB, time=128.59 memory used=2933.5MB, alloc=4.7MB, time=128.76 memory used=2937.3MB, alloc=4.7MB, time=128.93 memory used=2941.1MB, alloc=4.7MB, time=129.09 memory used=2945.0MB, alloc=4.7MB, time=129.26 memory used=2948.8MB, alloc=4.7MB, time=129.43 memory used=2952.6MB, alloc=4.7MB, time=129.59 memory used=2956.4MB, alloc=4.7MB, time=129.76 memory used=2960.2MB, alloc=4.7MB, time=129.93 memory used=2964.0MB, alloc=4.7MB, time=130.10 memory used=2967.9MB, alloc=4.7MB, time=130.26 memory used=2971.7MB, alloc=4.7MB, time=130.43 memory used=2975.5MB, alloc=4.7MB, time=130.60 memory used=2979.3MB, alloc=4.7MB, time=130.77 memory used=2983.1MB, alloc=4.7MB, time=130.93 memory used=2986.9MB, alloc=4.7MB, time=131.10 memory used=2990.7MB, alloc=4.7MB, time=131.27 memory used=2994.6MB, alloc=4.7MB, time=131.44 memory used=2998.4MB, alloc=4.7MB, time=131.60 memory used=3002.2MB, alloc=4.7MB, time=131.77 memory used=3006.0MB, alloc=4.7MB, time=131.94 memory used=3009.8MB, alloc=4.7MB, time=132.10 memory used=3013.6MB, alloc=4.7MB, time=132.27 memory used=3017.4MB, alloc=4.7MB, time=132.44 memory used=3021.3MB, alloc=4.7MB, time=132.61 memory used=3025.1MB, alloc=4.7MB, time=132.78 memory used=3028.9MB, alloc=4.7MB, time=132.95 memory used=3032.7MB, alloc=4.7MB, time=133.11 memory used=3036.5MB, alloc=4.7MB, time=133.28 memory used=3040.3MB, alloc=4.7MB, time=133.45 memory used=3044.1MB, alloc=4.7MB, time=133.62 memory used=3048.0MB, alloc=4.7MB, time=133.78 memory used=3051.8MB, alloc=4.7MB, time=133.95 memory used=3055.6MB, alloc=4.7MB, time=134.12 memory used=3059.4MB, alloc=4.7MB, time=134.29 memory used=3063.2MB, alloc=4.7MB, time=134.46 memory used=3067.0MB, alloc=4.7MB, time=134.62 memory used=3070.9MB, alloc=4.7MB, time=134.79 memory used=3074.7MB, alloc=4.7MB, time=134.96 memory used=3078.5MB, alloc=4.7MB, time=135.13 memory used=3082.3MB, alloc=4.7MB, time=135.30 memory used=3086.1MB, alloc=4.7MB, time=135.46 memory used=3089.9MB, alloc=4.7MB, time=135.63 memory used=3093.7MB, alloc=4.7MB, time=135.80 memory used=3097.6MB, alloc=4.7MB, time=135.97 memory used=3101.4MB, alloc=4.7MB, time=136.13 memory used=3105.2MB, alloc=4.7MB, time=136.30 memory used=3109.0MB, alloc=4.7MB, time=136.47 memory used=3112.8MB, alloc=4.7MB, time=136.64 memory used=3116.6MB, alloc=4.7MB, time=136.81 memory used=3120.4MB, alloc=4.7MB, time=136.98 memory used=3124.3MB, alloc=4.7MB, time=137.14 memory used=3128.1MB, alloc=4.7MB, time=137.31 memory used=3131.9MB, alloc=4.7MB, time=137.47 memory used=3135.7MB, alloc=4.7MB, time=137.64 memory used=3139.5MB, alloc=4.7MB, time=137.81 memory used=3143.3MB, alloc=4.7MB, time=137.98 memory used=3147.1MB, alloc=4.7MB, time=138.15 memory used=3151.0MB, alloc=4.7MB, time=138.31 memory used=3154.8MB, alloc=4.7MB, time=138.48 memory used=3158.6MB, alloc=4.7MB, time=138.65 memory used=3162.4MB, alloc=4.7MB, time=138.82 memory used=3166.2MB, alloc=4.7MB, time=138.99 memory used=3170.0MB, alloc=4.7MB, time=139.16 memory used=3173.8MB, alloc=4.7MB, time=139.33 memory used=3177.7MB, alloc=4.7MB, time=139.50 memory used=3181.5MB, alloc=4.7MB, time=139.66 memory used=3185.3MB, alloc=4.7MB, time=139.83 memory used=3189.1MB, alloc=4.7MB, time=140.00 memory used=3192.9MB, alloc=4.7MB, time=140.17 memory used=3196.7MB, alloc=4.7MB, time=140.34 memory used=3200.6MB, alloc=4.7MB, time=140.50 memory used=3204.4MB, alloc=4.7MB, time=140.67 memory used=3208.2MB, alloc=4.7MB, time=140.84 memory used=3212.0MB, alloc=4.7MB, time=141.01 memory used=3215.8MB, alloc=4.7MB, time=141.18 memory used=3219.6MB, alloc=4.7MB, time=141.34 memory used=3223.4MB, alloc=4.7MB, time=141.51 memory used=3227.3MB, alloc=4.7MB, time=141.68 memory used=3231.1MB, alloc=4.7MB, time=141.84 memory used=3234.9MB, alloc=4.7MB, time=142.01 memory used=3238.7MB, alloc=4.7MB, time=142.18 memory used=3242.5MB, alloc=4.7MB, time=142.34 memory used=3246.3MB, alloc=4.7MB, time=142.51 memory used=3250.1MB, alloc=4.7MB, time=142.68 memory used=3254.0MB, alloc=4.7MB, time=142.84 memory used=3257.8MB, alloc=4.7MB, time=143.01 memory used=3261.6MB, alloc=4.7MB, time=143.18 memory used=3265.4MB, alloc=4.7MB, time=143.34 memory used=3269.2MB, alloc=4.7MB, time=143.51 memory used=3273.0MB, alloc=4.7MB, time=143.68 memory used=3276.8MB, alloc=4.7MB, time=143.85 memory used=3280.7MB, alloc=4.7MB, time=144.02 memory used=3284.5MB, alloc=4.7MB, time=144.18 memory used=3288.3MB, alloc=4.7MB, time=144.35 memory used=3292.1MB, alloc=4.7MB, time=144.52 memory used=3295.9MB, alloc=4.7MB, time=144.69 memory used=3299.7MB, alloc=4.7MB, time=144.85 memory used=3303.6MB, alloc=4.7MB, time=145.02 memory used=3307.4MB, alloc=4.7MB, time=145.19 memory used=3311.2MB, alloc=4.7MB, time=145.36 memory used=3315.0MB, alloc=4.7MB, time=145.52 memory used=3318.8MB, alloc=4.7MB, time=145.69 memory used=3322.6MB, alloc=4.7MB, time=145.86 memory used=3326.4MB, alloc=4.7MB, time=146.03 memory used=3330.3MB, alloc=4.7MB, time=146.20 memory used=3334.1MB, alloc=4.7MB, time=146.36 memory used=3337.9MB, alloc=4.7MB, time=146.53 memory used=3341.7MB, alloc=4.7MB, time=146.70 memory used=3345.5MB, alloc=4.7MB, time=146.87 memory used=3349.3MB, alloc=4.7MB, time=147.03 memory used=3353.1MB, alloc=4.7MB, time=147.20 memory used=3357.0MB, alloc=4.7MB, time=147.37 memory used=3360.8MB, alloc=4.7MB, time=147.54 memory used=3364.6MB, alloc=4.7MB, time=147.71 memory used=3368.4MB, alloc=4.7MB, time=147.87 memory used=3372.2MB, alloc=4.7MB, time=148.04 memory used=3376.0MB, alloc=4.7MB, time=148.21 memory used=3379.8MB, alloc=4.7MB, time=148.38 memory used=3383.7MB, alloc=4.7MB, time=148.54 memory used=3387.5MB, alloc=4.7MB, time=148.71 memory used=3391.3MB, alloc=4.7MB, time=148.88 memory used=3395.1MB, alloc=4.7MB, time=149.05 memory used=3398.9MB, alloc=4.7MB, time=149.21 memory used=3402.7MB, alloc=4.7MB, time=149.38 memory used=3406.6MB, alloc=4.7MB, time=149.55 memory used=3410.4MB, alloc=4.7MB, time=149.72 memory used=3414.2MB, alloc=4.7MB, time=149.88 memory used=3418.0MB, alloc=4.7MB, time=150.05 memory used=3421.8MB, alloc=4.7MB, time=150.22 memory used=3425.6MB, alloc=4.7MB, time=150.39 memory used=3429.4MB, alloc=4.7MB, time=150.56 memory used=3433.3MB, alloc=4.7MB, time=150.72 memory used=3437.1MB, alloc=4.7MB, time=150.89 memory used=3440.9MB, alloc=4.7MB, time=151.06 memory used=3444.7MB, alloc=4.7MB, time=151.23 memory used=3448.5MB, alloc=4.7MB, time=151.40 memory used=3452.3MB, alloc=4.7MB, time=151.56 memory used=3456.1MB, alloc=4.7MB, time=151.73 memory used=3460.0MB, alloc=4.7MB, time=151.90 memory used=3463.8MB, alloc=4.7MB, time=152.07 memory used=3467.6MB, alloc=4.7MB, time=152.24 memory used=3471.4MB, alloc=4.7MB, time=152.41 memory used=3475.2MB, alloc=4.7MB, time=152.57 memory used=3479.0MB, alloc=4.7MB, time=152.74 memory used=3482.8MB, alloc=4.7MB, time=152.91 memory used=3486.7MB, alloc=4.7MB, time=153.07 memory used=3490.5MB, alloc=4.7MB, time=153.24 memory used=3494.3MB, alloc=4.7MB, time=153.41 memory used=3498.1MB, alloc=4.7MB, time=153.58 memory used=3501.9MB, alloc=4.7MB, time=153.74 memory used=3505.7MB, alloc=4.7MB, time=153.91 memory used=3509.5MB, alloc=4.7MB, time=154.08 memory used=3513.4MB, alloc=4.7MB, time=154.25 memory used=3517.2MB, alloc=4.7MB, time=154.42 memory used=3521.0MB, alloc=4.7MB, time=154.59 memory used=3524.8MB, alloc=4.7MB, time=154.75 memory used=3528.6MB, alloc=4.7MB, time=154.92 memory used=3532.4MB, alloc=4.7MB, time=155.09 memory used=3536.3MB, alloc=4.7MB, time=155.26 memory used=3540.1MB, alloc=4.7MB, time=155.43 memory used=3543.9MB, alloc=4.7MB, time=155.59 memory used=3547.7MB, alloc=4.7MB, time=155.76 memory used=3551.5MB, alloc=4.7MB, time=155.93 memory used=3555.3MB, alloc=4.7MB, time=156.09 memory used=3559.1MB, alloc=4.7MB, time=156.26 memory used=3563.0MB, alloc=4.7MB, time=156.43 memory used=3566.8MB, alloc=4.7MB, time=156.60 memory used=3570.6MB, alloc=4.7MB, time=156.76 memory used=3574.4MB, alloc=4.7MB, time=156.93 memory used=3578.2MB, alloc=4.7MB, time=157.10 memory used=3582.0MB, alloc=4.7MB, time=157.27 memory used=3585.8MB, alloc=4.7MB, time=157.44 memory used=3589.7MB, alloc=4.7MB, time=157.60 memory used=3593.5MB, alloc=4.7MB, time=157.77 memory used=3597.3MB, alloc=4.7MB, time=157.94 memory used=3601.1MB, alloc=4.7MB, time=158.11 memory used=3604.9MB, alloc=4.7MB, time=158.28 memory used=3608.7MB, alloc=4.7MB, time=158.44 memory used=3612.5MB, alloc=4.7MB, time=158.61 memory used=3616.4MB, alloc=4.7MB, time=158.78 memory used=3620.2MB, alloc=4.7MB, time=158.95 memory used=3624.0MB, alloc=4.7MB, time=159.11 memory used=3627.8MB, alloc=4.7MB, time=159.28 memory used=3631.6MB, alloc=4.7MB, time=159.45 memory used=3635.4MB, alloc=4.7MB, time=159.62 memory used=3639.3MB, alloc=4.7MB, time=159.79 memory used=3643.1MB, alloc=4.7MB, time=159.96 memory used=3646.9MB, alloc=4.7MB, time=160.12 memory used=3650.7MB, alloc=4.7MB, time=160.29 memory used=3654.5MB, alloc=4.7MB, time=160.46 memory used=3658.3MB, alloc=4.7MB, time=160.62 memory used=3662.1MB, alloc=4.7MB, time=160.79 memory used=3666.0MB, alloc=4.7MB, time=160.96 memory used=3669.8MB, alloc=4.7MB, time=161.13 memory used=3673.6MB, alloc=4.7MB, time=161.29 memory used=3677.4MB, alloc=4.7MB, time=161.46 memory used=3681.2MB, alloc=4.7MB, time=161.63 memory used=3685.0MB, alloc=4.7MB, time=161.80 memory used=3688.8MB, alloc=4.7MB, time=161.97 memory used=3692.7MB, alloc=4.7MB, time=162.14 memory used=3696.5MB, alloc=4.7MB, time=162.30 memory used=3700.3MB, alloc=4.7MB, time=162.47 memory used=3704.1MB, alloc=4.7MB, time=162.64 memory used=3707.9MB, alloc=4.7MB, time=162.81 memory used=3711.7MB, alloc=4.7MB, time=162.98 memory used=3715.5MB, alloc=4.7MB, time=163.15 memory used=3719.4MB, alloc=4.7MB, time=163.32 memory used=3723.2MB, alloc=4.7MB, time=163.48 memory used=3727.0MB, alloc=4.7MB, time=163.65 memory used=3730.8MB, alloc=4.7MB, time=163.82 memory used=3734.6MB, alloc=4.7MB, time=163.98 memory used=3738.4MB, alloc=4.7MB, time=164.15 memory used=3742.3MB, alloc=4.7MB, time=164.32 memory used=3746.1MB, alloc=4.7MB, time=164.49 memory used=3749.9MB, alloc=4.7MB, time=164.66 memory used=3753.7MB, alloc=4.7MB, time=164.82 memory used=3757.5MB, alloc=4.7MB, time=164.99 memory used=3761.3MB, alloc=4.7MB, time=165.16 memory used=3765.1MB, alloc=4.7MB, time=165.33 memory used=3769.0MB, alloc=4.7MB, time=165.49 memory used=3772.8MB, alloc=4.7MB, time=165.66 memory used=3776.6MB, alloc=4.7MB, time=165.83 memory used=3780.4MB, alloc=4.7MB, time=166.00 memory used=3784.2MB, alloc=4.7MB, time=166.16 memory used=3788.0MB, alloc=4.7MB, time=166.33 memory used=3791.8MB, alloc=4.7MB, time=166.50 memory used=3795.7MB, alloc=4.7MB, time=166.67 memory used=3799.5MB, alloc=4.7MB, time=166.83 memory used=3803.3MB, alloc=4.7MB, time=167.00 memory used=3807.1MB, alloc=4.7MB, time=167.16 memory used=3810.9MB, alloc=4.7MB, time=167.33 memory used=3814.7MB, alloc=4.7MB, time=167.50 memory used=3818.5MB, alloc=4.7MB, time=167.66 memory used=3822.4MB, alloc=4.7MB, time=167.83 memory used=3826.2MB, alloc=4.7MB, time=167.99 memory used=3830.0MB, alloc=4.7MB, time=168.16 memory used=3833.8MB, alloc=4.7MB, time=168.32 memory used=3837.6MB, alloc=4.7MB, time=168.49 memory used=3841.4MB, alloc=4.7MB, time=168.65 memory used=3845.2MB, alloc=4.7MB, time=168.82 memory used=3849.1MB, alloc=4.7MB, time=168.99 memory used=3852.9MB, alloc=4.7MB, time=169.15 memory used=3856.7MB, alloc=4.7MB, time=169.32 memory used=3860.5MB, alloc=4.7MB, time=169.49 memory used=3864.3MB, alloc=4.7MB, time=169.65 memory used=3868.1MB, alloc=4.7MB, time=169.82 memory used=3872.0MB, alloc=4.7MB, time=169.98 memory used=3875.8MB, alloc=4.7MB, time=170.15 memory used=3879.6MB, alloc=4.7MB, time=170.31 memory used=3883.4MB, alloc=4.7MB, time=170.48 memory used=3887.2MB, alloc=4.7MB, time=170.64 memory used=3891.0MB, alloc=4.7MB, time=170.81 memory used=3894.8MB, alloc=4.7MB, time=170.97 memory used=3898.7MB, alloc=4.7MB, time=171.14 memory used=3902.5MB, alloc=4.7MB, time=171.30 memory used=3906.3MB, alloc=4.7MB, time=171.47 memory used=3910.1MB, alloc=4.7MB, time=171.64 memory used=3913.9MB, alloc=4.7MB, time=171.80 memory used=3917.7MB, alloc=4.7MB, time=171.97 memory used=3921.5MB, alloc=4.7MB, time=172.13 memory used=3925.4MB, alloc=4.7MB, time=172.30 memory used=3929.2MB, alloc=4.7MB, time=172.46 memory used=3933.0MB, alloc=4.7MB, time=172.63 memory used=3936.8MB, alloc=4.7MB, time=172.79 memory used=3940.6MB, alloc=4.7MB, time=172.96 memory used=3944.4MB, alloc=4.7MB, time=173.13 memory used=3948.2MB, alloc=4.7MB, time=173.29 memory used=3952.1MB, alloc=4.7MB, time=173.46 memory used=3955.9MB, alloc=4.7MB, time=173.62 memory used=3959.7MB, alloc=4.7MB, time=173.79 memory used=3963.5MB, alloc=4.7MB, time=173.95 memory used=3967.3MB, alloc=4.7MB, time=174.12 memory used=3971.1MB, alloc=4.7MB, time=174.28 memory used=3975.0MB, alloc=4.7MB, time=174.45 memory used=3978.8MB, alloc=4.7MB, time=174.62 memory used=3982.6MB, alloc=4.7MB, time=174.78 memory used=3986.4MB, alloc=4.7MB, time=174.95 memory used=3990.2MB, alloc=4.7MB, time=175.16 memory used=3994.0MB, alloc=4.7MB, time=175.56 memory used=3997.8MB, alloc=4.7MB, time=175.95 memory used=4001.7MB, alloc=4.7MB, time=176.34 memory used=4005.5MB, alloc=4.7MB, time=176.73 memory used=4009.3MB, alloc=4.7MB, time=177.13 memory used=4013.1MB, alloc=4.7MB, time=177.52 memory used=4016.9MB, alloc=4.7MB, time=177.91 memory used=4020.7MB, alloc=4.7MB, time=178.31 memory used=4024.5MB, alloc=4.7MB, time=178.70 memory used=4028.4MB, alloc=4.7MB, time=179.09 memory used=4032.2MB, alloc=4.7MB, time=179.48 memory used=4036.0MB, alloc=4.7MB, time=179.88 memory used=4039.8MB, alloc=4.7MB, time=180.27 Finished! Maximum Time Reached before Solution Completed! diff (x1,t,1) = 4.0 * x2 - 2.0 * diff (x2,t ,1) - 2.0 * x1; diff (x2,t,2) = 3.0 * diff(x2,t,1) - 2.0 * x2 - diff(x1,t,2) - diff (x1,t,1) + x1; Iterations = 892 Total Elapsed Time = 3 Minutes 0 Seconds Elapsed Time(since restart) = 3 Minutes 0 Seconds Expected Time Remaining = 8 Days 4 Hours 26 Minutes 16 Seconds Optimized Time Remaining = 8 Days 4 Hours 12 Minutes 56 Seconds Expected Total Time = 8 Days 4 Hours 15 Minutes 57 Seconds Time to Timeout Unknown Percent Done = 0.02551 % > quit memory used=4042.3MB, alloc=4.7MB, time=180.52