|\^/| Maple 11 (IBM INTEL LINUX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2007
\ MAPLE / All rights reserved. Maple is a trademark of
<____ ____> Waterloo Maple Inc.
| Type ? for help.
> #BEGIN OUTFILE1
> # Begin Function number 3
> display_poles := proc()
> global ALWAYS,glob_display_flag, glob_large_float, array_pole, glob_type_given_pole,array_given_rad_poles,array_given_ord_poles, array_complex_poles,array_poles,array_real_poles,array_x ;
> local rad_given;
> if (glob_type_given_pole = 4) then # if number 1
> rad_given := sqrt(expt(array_x[1] - array_given_rad_poles[1,1],2.0) + expt(array_given_rad_poles[1,2],2.0)) ;
> omniout_float(ALWAYS,"Radius of convergence (given) for eq 1 ",4, rad_given,4," ");
> omniout_float(ALWAYS,"Order of pole (given) ",4, array_given_ord_poles[1,1],4," ");
> elif
> (glob_type_given_pole = 3) then # if number 2
> omniout_str(ALWAYS,"NO POLE (given) for Equation 1");
> else
> omniout_str(ALWAYS,"NO INFO (given) for Equation 1");
> fi;# end if 2;
> if (array_poles[1,1] <> glob_large_float) then # if number 2
> omniout_float(ALWAYS,"Radius of convergence (ratio test) for eq 1 ",4, array_poles[1,1],4," ");
> omniout_str(ALWAYS,"Order of pole (ratio test) Not computed");
> else
> omniout_str(ALWAYS,"NO POLE (ratio test) for Equation 1");
> fi;# end if 2;
> if ((array_real_poles[1,1] > 0.0) and (array_real_poles[1,1] <> glob_large_float)) then # if number 2
> omniout_float(ALWAYS,"Radius of convergence (three term test) for eq 1 ",4, array_real_poles[1,1],4," ");
> omniout_float(ALWAYS,"Order of pole (three term test) ",4, array_real_poles[1,2],4," ");
> else
> omniout_str(ALWAYS,"NO REAL POLE (three term test) for Equation 1");
> fi;# end if 2;
> if ((array_complex_poles[1,1] > 0.0) and (array_complex_poles[1,1] <> glob_large_float)) then # if number 2
> omniout_float(ALWAYS,"Radius of convergence (six term test) for eq 1 ",4, array_complex_poles[1,1],4," ");
> omniout_float(ALWAYS,"Order of pole (six term test) ",4, array_complex_poles[1,2],4," ");
> else
> omniout_str(ALWAYS,"NO COMPLEX POLE (six term test) for Equation 1");
> fi;# end if 2
> ;
> if (glob_type_given_pole = 4) then # if number 2
> rad_given := sqrt(expt(array_x[1] - array_given_rad_poles[2,1],2.0) + expt(array_given_rad_poles[2,2],2.0)) ;
> omniout_float(ALWAYS,"Radius of convergence (given) for eq 2 ",4, rad_given,4," ");
> omniout_float(ALWAYS,"Order of pole (given) ",4, array_given_ord_poles[2,1],4," ");
> elif
> (glob_type_given_pole = 3) then # if number 3
> omniout_str(ALWAYS,"NO POLE (given) for Equation 2");
> else
> omniout_str(ALWAYS,"NO INFO (given) for Equation 2");
> fi;# end if 3;
> if (array_poles[2,1] <> glob_large_float) then # if number 3
> omniout_float(ALWAYS,"Radius of convergence (ratio test) for eq 2 ",4, array_poles[2,1],4," ");
> omniout_str(ALWAYS,"Order of pole (ratio test) Not computed");
> else
> omniout_str(ALWAYS,"NO POLE (ratio test) for Equation 2");
> fi;# end if 3;
> if ((array_real_poles[2,1] > 0.0) and (array_real_poles[2,1] <> glob_large_float)) then # if number 3
> omniout_float(ALWAYS,"Radius of convergence (three term test) for eq 2 ",4, array_real_poles[2,1],4," ");
> omniout_float(ALWAYS,"Order of pole (three term test) ",4, array_real_poles[2,2],4," ");
> else
> omniout_str(ALWAYS,"NO REAL POLE (three term test) for Equation 2");
> fi;# end if 3;
> if ((array_complex_poles[2,1] > 0.0) and (array_complex_poles[2,1] <> glob_large_float)) then # if number 3
> omniout_float(ALWAYS,"Radius of convergence (six term test) for eq 2 ",4, array_complex_poles[2,1],4," ");
> omniout_float(ALWAYS,"Order of pole (six term test) ",4, array_complex_poles[2,2],4," ");
> else
> omniout_str(ALWAYS,"NO COMPLEX POLE (six term test) for Equation 2");
> fi;# end if 3
> ;
> end;
display_poles := proc()
local rad_given;
global ALWAYS, glob_display_flag, glob_large_float, array_pole,
glob_type_given_pole, array_given_rad_poles, array_given_ord_poles,
array_complex_poles, array_poles, array_real_poles, array_x;
if glob_type_given_pole = 4 then
rad_given := sqrt(
expt(array_x[1] - array_given_rad_poles[1, 1], 2.0)
+ expt(array_given_rad_poles[1, 2], 2.0));
omniout_float(ALWAYS,
"Radius of convergence (given) for eq 1 ", 4,
rad_given, 4, " ");
omniout_float(ALWAYS,
"Order of pole (given) ", 4,
array_given_ord_poles[1, 1], 4, " ")
elif glob_type_given_pole = 3 then
omniout_str(ALWAYS, "NO POLE (given) for Equation 1")
else omniout_str(ALWAYS, "NO INFO (given) for Equation 1")
end if;
if array_poles[1, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (ratio test) for eq 1 ", 4,
array_poles[1, 1], 4, " ");
omniout_str(ALWAYS, "Order of pole (ratio test) \
Not computed")
else omniout_str(ALWAYS, "NO POLE (ratio test) for Equation 1")
end if;
if 0. < array_real_poles[1, 1] and
array_real_poles[1, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (three term test) for eq 1 ", 4,
array_real_poles[1, 1], 4, " ");
omniout_float(ALWAYS,
"Order of pole (three term test) ", 4,
array_real_poles[1, 2], 4, " ")
else omniout_str(ALWAYS,
"NO REAL POLE (three term test) for Equation 1")
end if;
if 0. < array_complex_poles[1, 1] and
array_complex_poles[1, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (six term test) for eq 1 ", 4,
array_complex_poles[1, 1], 4, " ");
omniout_float(ALWAYS,
"Order of pole (six term test) ", 4,
array_complex_poles[1, 2], 4, " ")
else omniout_str(ALWAYS,
"NO COMPLEX POLE (six term test) for Equation 1")
end if;
if glob_type_given_pole = 4 then
rad_given := sqrt(
expt(array_x[1] - array_given_rad_poles[2, 1], 2.0)
+ expt(array_given_rad_poles[2, 2], 2.0));
omniout_float(ALWAYS,
"Radius of convergence (given) for eq 2 ", 4,
rad_given, 4, " ");
omniout_float(ALWAYS,
"Order of pole (given) ", 4,
array_given_ord_poles[2, 1], 4, " ")
elif glob_type_given_pole = 3 then
omniout_str(ALWAYS, "NO POLE (given) for Equation 2")
else omniout_str(ALWAYS, "NO INFO (given) for Equation 2")
end if;
if array_poles[2, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (ratio test) for eq 2 ", 4,
array_poles[2, 1], 4, " ");
omniout_str(ALWAYS, "Order of pole (ratio test) \
Not computed")
else omniout_str(ALWAYS, "NO POLE (ratio test) for Equation 2")
end if;
if 0. < array_real_poles[2, 1] and
array_real_poles[2, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (three term test) for eq 2 ", 4,
array_real_poles[2, 1], 4, " ");
omniout_float(ALWAYS,
"Order of pole (three term test) ", 4,
array_real_poles[2, 2], 4, " ")
else omniout_str(ALWAYS,
"NO REAL POLE (three term test) for Equation 2")
end if;
if 0. < array_complex_poles[2, 1] and
array_complex_poles[2, 1] <> glob_large_float then
omniout_float(ALWAYS,
"Radius of convergence (six term test) for eq 2 ", 4,
array_complex_poles[2, 1], 4, " ");
omniout_float(ALWAYS,
"Order of pole (six term test) ", 4,
array_complex_poles[2, 2], 4, " ")
else omniout_str(ALWAYS,
"NO COMPLEX POLE (six term test) for Equation 2")
end if
end proc
> # End Function number 3
> # Begin Function number 4
> check_sign := proc( x0 ,xf)
> local ret;
> if (xf > x0) then # if number 3
> ret := 1.0;
> else
> ret := -1.0;
> fi;# end if 3;
> 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 4
> # Begin Function number 5
> est_size_answer := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local min_size;
> min_size := glob_large_float;
> if (omniabs(array_y2[1]) < min_size) then # if number 3
> min_size := omniabs(array_y2[1]);
> omniout_float(ALWAYS,"min_size",32,min_size,32,"");
> fi;# end if 3;
> if (omniabs(array_y1[1]) < min_size) then # if number 3
> min_size := omniabs(array_y1[1]);
> omniout_float(ALWAYS,"min_size",32,min_size,32,"");
> fi;# end if 3;
> if (min_size < 1.0) then # if number 3
> min_size := 1.0;
> omniout_float(ALWAYS,"min_size",32,min_size,32,"");
> fi;# end if 3;
> min_size;
> end;
est_size_answer := proc()
local min_size;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
min_size := glob_large_float;
if omniabs(array_y2[1]) < min_size then
min_size := omniabs(array_y2[1]);
omniout_float(ALWAYS, "min_size", 32, min_size, 32, "")
end if;
if omniabs(array_y1[1]) < min_size then
min_size := omniabs(array_y1[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 5
> # Begin Function number 6
> test_suggested_h := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local max_estimated_step_error,hn_div_ho,hn_div_ho_2,hn_div_ho_3,no_terms,est_tmp;
> max_estimated_step_error := 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,"");
> est_tmp := omniabs(array_y2[no_terms-3] + array_y2[no_terms - 2] * hn_div_ho + array_y2[no_terms - 1] * hn_div_ho_2 + array_y2[no_terms] * hn_div_ho_3);
> if (est_tmp >= max_estimated_step_error) then # if number 3
> max_estimated_step_error := est_tmp;
> fi;# end if 3;
> est_tmp := omniabs(array_y1[no_terms-3] + array_y1[no_terms - 2] * hn_div_ho + array_y1[no_terms - 1] * hn_div_ho_2 + array_y1[no_terms] * hn_div_ho_3);
> if (est_tmp >= max_estimated_step_error) then # if number 3
> max_estimated_step_error := est_tmp;
> fi;# end if 3;
> omniout_float(ALWAYS,"max_estimated_step_error",32,max_estimated_step_error,32,"");
> max_estimated_step_error;
> end;
test_suggested_h := proc()
local max_estimated_step_error, hn_div_ho, hn_div_ho_2, hn_div_ho_3,
no_terms, est_tmp;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
max_estimated_step_error := 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, "");
est_tmp := omniabs(array_y2[no_terms - 3]
+ array_y2[no_terms - 2]*hn_div_ho
+ array_y2[no_terms - 1]*hn_div_ho_2
+ array_y2[no_terms]*hn_div_ho_3);
if max_estimated_step_error <= est_tmp then
max_estimated_step_error := est_tmp
end if;
est_tmp := omniabs(array_y1[no_terms - 3]
+ array_y1[no_terms - 2]*hn_div_ho
+ array_y1[no_terms - 1]*hn_div_ho_2
+ array_y1[no_terms]*hn_div_ho_3);
if max_estimated_step_error <= est_tmp then
max_estimated_step_error := est_tmp
end if;
omniout_float(ALWAYS, "max_estimated_step_error", 32,
max_estimated_step_error, 32, "");
max_estimated_step_error
end proc
> # End Function number 6
> # Begin Function number 7
> reached_interval := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local ret;
> if (glob_check_sign * (array_x[1]) >= glob_check_sign * glob_next_display) then # if number 3
> ret := true;
> else
> ret := false;
> fi;# end if 3;
> return(ret);
> end;
reached_interval := proc()
local ret;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
if glob_check_sign*glob_next_display <= glob_check_sign*array_x[1] then
ret := true
else ret := false
end if;
return ret
end proc
> # End Function number 7
> # Begin Function number 8
> display_alot := proc(iter)
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> 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 3
> if (iter >= 0) then # if number 4
> ind_var := array_x[1];
> omniout_float(ALWAYS,"x[1] ",33,ind_var,20," ");
> analytic_val_y := exact_soln_y2(ind_var);
> omniout_float(ALWAYS,"y2[1] (analytic) ",33,analytic_val_y,20," ");
> term_no := 1;
> numeric_val := array_y2[term_no];
> abserr := omniabs(numeric_val - analytic_val_y);
> omniout_float(ALWAYS,"y2[1] (numeric) ",33,numeric_val,20," ");
> if (omniabs(analytic_val_y) <> 0.0) then # if number 5
> relerr := abserr*100.0/omniabs(analytic_val_y);
> if (relerr > 0.0000000000000000000000000000000001) then # if number 6
> glob_good_digits := -trunc(log10(relerr)) + 3;
> else
> glob_good_digits := Digits;
> fi;# end if 6;
> else
> relerr := -1.0 ;
> glob_good_digits := -1;
> fi;# end if 5;
> if (glob_iter = 1) then # if number 5
> array_1st_rel_error[1] := relerr;
> else
> array_last_rel_error[1] := relerr;
> fi;# end if 5;
> 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_y1(ind_var);
> omniout_float(ALWAYS,"y1[1] (analytic) ",33,analytic_val_y,20," ");
> term_no := 1;
> numeric_val := array_y1[term_no];
> abserr := omniabs(numeric_val - analytic_val_y);
> omniout_float(ALWAYS,"y1[1] (numeric) ",33,numeric_val,20," ");
> if (omniabs(analytic_val_y) <> 0.0) then # if number 5
> relerr := abserr*100.0/omniabs(analytic_val_y);
> if (relerr > 0.0000000000000000000000000000000001) then # if number 6
> glob_good_digits := -trunc(log10(relerr)) + 3;
> else
> glob_good_digits := Digits;
> fi;# end if 6;
> else
> relerr := -1.0 ;
> glob_good_digits := -1;
> fi;# end if 5;
> if (glob_iter = 1) then # if number 5
> array_1st_rel_error[2] := relerr;
> else
> array_last_rel_error[2] := relerr;
> fi;# end if 5;
> 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 4;
> #BOTTOM DISPLAY ALOT
> fi;# end if 3;
> end;
display_alot := proc(iter)
local abserr, analytic_val_y, ind_var, numeric_val, relerr, term_no;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
if reached_interval() then
if 0 <= iter then
ind_var := array_x[1];
omniout_float(ALWAYS, "x[1] ", 33,
ind_var, 20, " ");
analytic_val_y := exact_soln_y2(ind_var);
omniout_float(ALWAYS, "y2[1] (analytic) ", 33,
analytic_val_y, 20, " ");
term_no := 1;
numeric_val := array_y2[term_no];
abserr := omniabs(numeric_val - analytic_val_y);
omniout_float(ALWAYS, "y2[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)) + 3
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_y1(ind_var);
omniout_float(ALWAYS, "y1[1] (analytic) ", 33,
analytic_val_y, 20, " ");
term_no := 1;
numeric_val := array_y1[term_no];
abserr := omniabs(numeric_val - analytic_val_y);
omniout_float(ALWAYS, "y1[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)) + 3
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 8
> # Begin Function number 9
> adjust_for_pole := proc(h_param)
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local hnew, sz2, tmp;
> #TOP ADJUST FOR POLE
> hnew := h_param;
> glob_normmax := glob_small_float;
> if (omniabs(array_y2_higher[1,1]) > glob_small_float) then # if number 3
> tmp := omniabs(array_y2_higher[1,1]);
> if (tmp < glob_normmax) then # if number 4
> glob_normmax := tmp;
> fi;# end if 4
> fi;# end if 3;
> if (omniabs(array_y1_higher[1,1]) > glob_small_float) then # if number 3
> tmp := omniabs(array_y1_higher[1,1]);
> if (tmp < glob_normmax) then # if number 4
> glob_normmax := tmp;
> fi;# end if 4
> fi;# end if 3;
> if (glob_look_poles and (omniabs(array_pole[1]) > glob_small_float) and (array_pole[1] <> glob_large_float)) then # if number 3
> sz2 := array_pole[1]/10.0;
> if (sz2 < hnew) then # if number 4
> omniout_float(INFO,"glob_h adjusted to ",20,h_param,12,"due to singularity.");
> omniout_str(INFO,"Reached Optimal");
> return(hnew);
> fi;# end if 4
> fi;# end if 3;
> if ( not glob_reached_optimal_h) then # if number 3
> glob_reached_optimal_h := true;
> glob_curr_iter_when_opt := glob_current_iter;
> glob_optimal_clock_start_sec := elapsed_time_seconds();
> glob_optimal_start := array_x[1];
> fi;# end if 3;
> 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, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
hnew := h_param;
glob_normmax := glob_small_float;
if glob_small_float < omniabs(array_y2_higher[1, 1]) then
tmp := omniabs(array_y2_higher[1, 1]);
if tmp < glob_normmax then glob_normmax := tmp end if
end if;
if glob_small_float < omniabs(array_y1_higher[1, 1]) then
tmp := omniabs(array_y1_higher[1, 1]);
if tmp < glob_normmax then glob_normmax := tmp end if
end if;
if glob_look_poles and glob_small_float < omniabs(array_pole[1]) and
array_pole[1] <> glob_large_float then
sz2 := array_pole[1]/10.0;
if sz2 < hnew then
omniout_float(INFO, "glob_h adjusted to ", 20, h_param, 12,
"due to singularity.");
omniout_str(INFO, "Reached Optimal");
return hnew
end if
end if;
if not glob_reached_optimal_h then
glob_reached_optimal_h := true;
glob_curr_iter_when_opt := glob_current_iter;
glob_optimal_clock_start_sec := elapsed_time_seconds();
glob_optimal_start := array_x[1]
end if;
hnew := sz2;
return hnew
end proc
> # End Function number 9
> # Begin Function number 10
> prog_report := proc(x_start,x_end)
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local clock_sec, opt_clock_sec, clock_sec1, expect_sec, left_sec, percent_done, total_clock_sec;
> #TOP PROGRESS REPORT
> clock_sec1 := elapsed_time_seconds();
> total_clock_sec := convfloat(clock_sec1) - convfloat(glob_orig_start_sec);
> glob_clock_sec := convfloat(clock_sec1) - convfloat(glob_clock_start_sec);
> left_sec := convfloat(glob_max_sec) + convfloat(glob_orig_start_sec) - convfloat(clock_sec1);
> expect_sec := comp_expect_sec(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) + convfloat(glob_h) ,convfloat( clock_sec1) - convfloat(glob_orig_start_sec));
> opt_clock_sec := convfloat( clock_sec1) - convfloat(glob_optimal_clock_start_sec);
> glob_optimal_expect_sec := comp_expect_sec(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) +convfloat( glob_h) ,convfloat( opt_clock_sec));
> glob_total_exp_sec := glob_optimal_expect_sec + total_clock_sec;
> percent_done := comp_percent(convfloat(x_end),convfloat(x_start),convfloat(array_x[1]) + convfloat(glob_h));
> glob_percent_done := percent_done;
> omniout_str_noeol(INFO,"Total Elapsed Time ");
> omniout_timestr(convfloat(total_clock_sec));
> omniout_str_noeol(INFO,"Elapsed Time(since restart) ");
> omniout_timestr(convfloat(glob_clock_sec));
> if (convfloat(percent_done) < convfloat(100.0)) then # if number 3
> 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 3;
> 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(x_start, x_end)
local clock_sec, opt_clock_sec, clock_sec1, expect_sec, left_sec,
percent_done, total_clock_sec;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
clock_sec1 := elapsed_time_seconds();
total_clock_sec :=
convfloat(clock_sec1) - convfloat(glob_orig_start_sec);
glob_clock_sec :=
convfloat(clock_sec1) - convfloat(glob_clock_start_sec);
left_sec := convfloat(glob_max_sec) + convfloat(glob_orig_start_sec)
- convfloat(clock_sec1);
expect_sec := comp_expect_sec(convfloat(x_end), convfloat(x_start),
convfloat(array_x[1]) + convfloat(glob_h),
convfloat(clock_sec1) - convfloat(glob_orig_start_sec));
opt_clock_sec :=
convfloat(clock_sec1) - convfloat(glob_optimal_clock_start_sec);
glob_optimal_expect_sec := comp_expect_sec(convfloat(x_end),
convfloat(x_start), convfloat(array_x[1]) + convfloat(glob_h),
convfloat(opt_clock_sec));
glob_total_exp_sec := glob_optimal_expect_sec + total_clock_sec;
percent_done := comp_percent(convfloat(x_end), convfloat(x_start),
convfloat(array_x[1]) + convfloat(glob_h));
glob_percent_done := percent_done;
omniout_str_noeol(INFO, "Total Elapsed Time ");
omniout_timestr(convfloat(total_clock_sec));
omniout_str_noeol(INFO, "Elapsed Time(since restart) ");
omniout_timestr(convfloat(glob_clock_sec));
if convfloat(percent_done) < convfloat(100.0) then
omniout_str_noeol(INFO, "Expected Time Remaining ");
omniout_timestr(convfloat(expect_sec));
omniout_str_noeol(INFO, "Optimized Time Remaining ");
omniout_timestr(convfloat(glob_optimal_expect_sec));
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 10
> # Begin Function number 11
> check_for_pole := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term, local_test, tmp_rad, tmp_ratio, prev_tmp_rad;
> #TOP CHECK FOR POLE
> array_pole[1] := glob_large_float;
> array_pole[2] := glob_large_float;
> tmp_rad := glob_large_float;
> prev_tmp_rad := glob_large_float;
> tmp_ratio := glob_large_float;
> rad_c := glob_large_float;
> array_poles[1,1] := glob_large_float;
> array_poles[1,2] := glob_large_float;
> #TOP radius ratio test in Henrici1
> found_sing := 1;
> n := glob_max_terms - 5 - 10;
> cnt := 0;
> while ((cnt < 5) and (found_sing = 1)) do # do number 1
> if ((omniabs(array_y2_higher[1,n]) = 0.0) or (omniabs(array_y2_higher[1,n+1]) = 0.0)) then # if number 3
> found_sing := 0;
> else
> tmp_rad := omniabs(array_y2_higher[1,n] * glob_h / array_y2_higher[1,n + 1]);
> tmp_ratio := tmp_rad / prev_tmp_rad;
> if ((cnt > 0 ) and (tmp_ratio < 2.0) and (tmp_ratio > 0.5)) then # if number 4
> if (tmp_rad < rad_c) then # if number 5
> rad_c := tmp_rad;
> fi;# end if 5;
> elif
> (cnt = 0) then # if number 5
> if (tmp_rad < rad_c) then # if number 6
> rad_c := tmp_rad;
> fi;# end if 6;
> elif
> (cnt > 0) then # if number 6
> found_sing := 0;
> fi;# end if 6
> fi;# end if 5;
> prev_tmp_rad := tmp_rad;;
> cnt := cnt + 1;
> n := n + 1;
> od;# end do number 1;
> if (found_sing = 1) then # if number 5
> if (rad_c < array_pole[1]) then # if number 6
> array_pole[1] := rad_c;
> array_poles[1,1] := rad_c;
> fi;# end if 6;
> fi;# end if 5;
> #BOTTOM radius ratio test in Henrici1
> tmp_rad := glob_large_float;
> prev_tmp_rad := glob_large_float;
> tmp_ratio := glob_large_float;
> rad_c := glob_large_float;
> array_poles[2,1] := glob_large_float;
> array_poles[2,2] := glob_large_float;
> #TOP radius ratio test in Henrici2
> found_sing := 1;
> n := glob_max_terms - 1 - 10;
> cnt := 0;
> while ((cnt < 5) and (found_sing = 1)) do # do number 1
> if ((omniabs(array_y1_higher[1,n]) = 0.0) or (omniabs(array_y1_higher[1,n+1]) = 0.0)) then # if number 5
> found_sing := 0;
> else
> tmp_rad := omniabs(array_y1_higher[1,n] * glob_h / array_y1_higher[1,n + 1]);
> tmp_ratio := tmp_rad / prev_tmp_rad;
> if ((cnt > 0 ) and (tmp_ratio < 2.0) and (tmp_ratio > 0.5)) then # if number 6
> if (tmp_rad < rad_c) then # if number 7
> rad_c := tmp_rad;
> fi;# end if 7;
> elif
> (cnt = 0) then # if number 7
> if (tmp_rad < rad_c) then # if number 8
> rad_c := tmp_rad;
> fi;# end if 8;
> elif
> (cnt > 0) then # if number 8
> found_sing := 0;
> fi;# end if 8
> fi;# end if 7;
> prev_tmp_rad := tmp_rad;;
> cnt := cnt + 1;
> n := n + 1;
> od;# end do number 1;
> if (found_sing = 1) then # if number 7
> if (rad_c < array_pole[1]) then # if number 8
> array_pole[1] := rad_c;
> array_poles[2,1] := rad_c;
> fi;# end if 8;
> fi;# end if 7;
> #BOTTOM radius ratio test in Henrici2
> #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 - 5 - 1;
> while ((m >= 10) and ((omniabs(array_y2_higher[1,m]) = 0.0) or (omniabs(array_y2_higher[1,m-1]) = 0.0) or (omniabs(array_y2_higher[1,m-2]) = 0.0))) do # do number 1
> m := m - 1;
> od;# end do number 1;
> if (m > 10) then # if number 7
> rm0 := array_y2_higher[1,m]/array_y2_higher[1,m-1];
> rm1 := array_y2_higher[1,m-1]/array_y2_higher[1,m-2];
> hdrc := convfloat(m)*rm0-convfloat(m-1)*rm1;
> if (omniabs(hdrc) > 0.0) then # if number 8
> rcs := glob_h/hdrc;
> ord_no := (rm1*convfloat((m-2)*(m-2))-rm0*convfloat(m-3))/hdrc;
> array_real_poles[1,1] := rcs;
> array_real_poles[1,2] := ord_no;
> else
> array_real_poles[1,1] := glob_large_float;
> array_real_poles[1,2] := glob_large_float;
> fi;# end if 8
> else
> array_real_poles[1,1] := glob_large_float;
> array_real_poles[1,2] := glob_large_float;
> fi;# end if 7;
> #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 - 1 - 1;
> while ((m >= 10) and ((omniabs(array_y1_higher[1,m]) = 0.0) or (omniabs(array_y1_higher[1,m-1]) = 0.0) or (omniabs(array_y1_higher[1,m-2]) = 0.0))) do # do number 1
> m := m - 1;
> od;# end do number 1;
> if (m > 10) then # if number 7
> rm0 := array_y1_higher[1,m]/array_y1_higher[1,m-1];
> rm1 := array_y1_higher[1,m-1]/array_y1_higher[1,m-2];
> hdrc := convfloat(m)*rm0-convfloat(m-1)*rm1;
> if (omniabs(hdrc) > 0.0) then # if number 8
> rcs := glob_h/hdrc;
> ord_no := (rm1*convfloat((m-2)*(m-2))-rm0*convfloat(m-3))/hdrc;
> array_real_poles[2,1] := rcs;
> array_real_poles[2,2] := ord_no;
> else
> array_real_poles[2,1] := glob_large_float;
> array_real_poles[2,2] := glob_large_float;
> fi;# end if 8
> else
> array_real_poles[2,1] := glob_large_float;
> array_real_poles[2,2] := glob_large_float;
> fi;# end if 7;
> #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 - 5 - 1;
> cnt := 0;
> while ((cnt < 5) and (n >= 10)) do # do number 1
> if (omniabs(array_y2_higher[1,n]) <> 0.0) then # if number 7
> cnt := cnt + 1;
> else
> cnt := 0;
> fi;# end if 7;
> n := n - 1;
> od;# end do number 1;
> m := n + cnt;
> if (m <= 10) then # if number 7
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> else
> rm0 := (array_y2_higher[1,m])/(array_y2_higher[1,m-1]);
> rm1 := (array_y2_higher[1,m-1])/(array_y2_higher[1,m-2]);
> rm2 := (array_y2_higher[1,m-2])/(array_y2_higher[1,m-3]);
> rm3 := (array_y2_higher[1,m-3])/(array_y2_higher[1,m-4]);
> rm4 := (array_y2_higher[1,m-4])/(array_y2_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) = 0.0) or (omniabs(dr1) = 0.0)) then # if number 8
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> else
> if (omniabs(nr1*dr2 - nr2 * dr1) <> 0.0) then # if number 9
> 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) <> 0.0) then # if number 10
> if (rcs > 0.0) then # if number 11
> rad_c := sqrt(rcs) * omniabs(glob_h);
> else
> rad_c := glob_large_float;
> fi;# end if 11
> else
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> fi;# end if 10
> else
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> fi;# end if 9
> fi;# end if 8;
> array_complex_poles[1,1] := rad_c;
> array_complex_poles[1,2] := ord_no;
> fi;# end if 7;
> #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 - 1 - 1;
> cnt := 0;
> while ((cnt < 5) and (n >= 10)) do # do number 1
> if (omniabs(array_y1_higher[1,n]) <> 0.0) then # if number 7
> cnt := cnt + 1;
> else
> cnt := 0;
> fi;# end if 7;
> n := n - 1;
> od;# end do number 1;
> m := n + cnt;
> if (m <= 10) then # if number 7
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> else
> rm0 := (array_y1_higher[1,m])/(array_y1_higher[1,m-1]);
> rm1 := (array_y1_higher[1,m-1])/(array_y1_higher[1,m-2]);
> rm2 := (array_y1_higher[1,m-2])/(array_y1_higher[1,m-3]);
> rm3 := (array_y1_higher[1,m-3])/(array_y1_higher[1,m-4]);
> rm4 := (array_y1_higher[1,m-4])/(array_y1_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) = 0.0) or (omniabs(dr1) = 0.0)) then # if number 8
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> else
> if (omniabs(nr1*dr2 - nr2 * dr1) <> 0.0) then # if number 9
> 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) <> 0.0) then # if number 10
> if (rcs > 0.0) then # if number 11
> rad_c := sqrt(rcs) * omniabs(glob_h);
> else
> rad_c := glob_large_float;
> fi;# end if 11
> else
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> fi;# end if 10
> else
> rad_c := glob_large_float;
> ord_no := glob_large_float;
> fi;# end if 9
> fi;# end if 8;
> array_complex_poles[2,1] := rad_c;
> array_complex_poles[2,2] := ord_no;
> fi;# end if 7;
> #BOTTOM RADII COMPLEX EQ = 2
> #START ADJUST ALL SERIES
> if (array_pole[1] * glob_ratio_of_radius < omniabs(glob_h)) then # if number 7
> h_new := array_pole[1] * glob_ratio_of_radius;
> term := 1;
> ratio := 1.0;
> while (term <= glob_max_terms) do # do number 1
> array_y2[term] := array_y2[term]* ratio;
> array_y2_higher[1,term] := array_y2_higher[1,term]* ratio;
> array_x[term] := array_x[term]* ratio;
> array_y1[term] := array_y1[term]* ratio;
> array_y1_higher[1,term] := array_y1_higher[1,term]* ratio;
> array_x[term] := array_x[term]* ratio;
> ratio := ratio * h_new / omniabs(glob_h);
> term := term + 1;
> od;# end do number 1;
> glob_h := h_new;
> fi;# end if 7;
> #BOTTOM ADJUST ALL SERIES
> ;
> if (reached_interval()) then # if number 7
> display_poles();
> fi;# end if 7
> end;
check_for_pole := proc()
local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, rad_c, rcs,
rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term, local_test,
tmp_rad, tmp_ratio, prev_tmp_rad;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
array_pole[1] := glob_large_float;
array_pole[2] := glob_large_float;
tmp_rad := glob_large_float;
prev_tmp_rad := glob_large_float;
tmp_ratio := glob_large_float;
rad_c := glob_large_float;
array_poles[1, 1] := glob_large_float;
array_poles[1, 2] := glob_large_float;
found_sing := 1;
n := glob_max_terms - 15;
cnt := 0;
while cnt < 5 and found_sing = 1 do
if omniabs(array_y2_higher[1, n]) = 0. or
omniabs(array_y2_higher[1, n + 1]) = 0. then found_sing := 0
else
tmp_rad := omniabs(
array_y2_higher[1, n]*glob_h/array_y2_higher[1, n + 1]);
tmp_ratio := tmp_rad/prev_tmp_rad;
if 0 < cnt and tmp_ratio < 2.0 and 0.5 < tmp_ratio then
if tmp_rad < rad_c then rad_c := tmp_rad end if
elif cnt = 0 then
if tmp_rad < rad_c then rad_c := tmp_rad end if
elif 0 < cnt then found_sing := 0
end if
end if;
prev_tmp_rad := tmp_rad;
cnt := cnt + 1;
n := n + 1
end do;
if found_sing = 1 then
if rad_c < array_pole[1] then
array_pole[1] := rad_c; array_poles[1, 1] := rad_c
end if
end if;
tmp_rad := glob_large_float;
prev_tmp_rad := glob_large_float;
tmp_ratio := glob_large_float;
rad_c := glob_large_float;
array_poles[2, 1] := glob_large_float;
array_poles[2, 2] := glob_large_float;
found_sing := 1;
n := glob_max_terms - 11;
cnt := 0;
while cnt < 5 and found_sing = 1 do
if omniabs(array_y1_higher[1, n]) = 0. or
omniabs(array_y1_higher[1, n + 1]) = 0. then found_sing := 0
else
tmp_rad := omniabs(
array_y1_higher[1, n]*glob_h/array_y1_higher[1, n + 1]);
tmp_ratio := tmp_rad/prev_tmp_rad;
if 0 < cnt and tmp_ratio < 2.0 and 0.5 < tmp_ratio then
if tmp_rad < rad_c then rad_c := tmp_rad end if
elif cnt = 0 then
if tmp_rad < rad_c then rad_c := tmp_rad end if
elif 0 < cnt then found_sing := 0
end if
end if;
prev_tmp_rad := tmp_rad;
cnt := cnt + 1;
n := n + 1
end do;
if found_sing = 1 then
if rad_c < array_pole[1] then
array_pole[1] := rad_c; array_poles[2, 1] := rad_c
end if
end if;
n := glob_max_terms;
m := n - 6;
while 10 <= m and (omniabs(array_y2_higher[1, m]) = 0. or
omniabs(array_y2_higher[1, m - 1]) = 0. or
omniabs(array_y2_higher[1, m - 2]) = 0.) do m := m - 1
end do;
if 10 < m then
rm0 := array_y2_higher[1, m]/array_y2_higher[1, m - 1];
rm1 := array_y2_higher[1, m - 1]/array_y2_higher[1, m - 2];
hdrc := convfloat(m)*rm0 - convfloat(m - 1)*rm1;
if 0. < omniabs(hdrc) then
rcs := glob_h/hdrc;
ord_no := (
rm1*convfloat((m - 2)*(m - 2)) - rm0*convfloat(m - 3))/hdrc
;
array_real_poles[1, 1] := rcs;
array_real_poles[1, 2] := ord_no
else
array_real_poles[1, 1] := glob_large_float;
array_real_poles[1, 2] := glob_large_float
end if
else
array_real_poles[1, 1] := glob_large_float;
array_real_poles[1, 2] := glob_large_float
end if;
n := glob_max_terms;
m := n - 2;
while 10 <= m and (omniabs(array_y1_higher[1, m]) = 0. or
omniabs(array_y1_higher[1, m - 1]) = 0. or
omniabs(array_y1_higher[1, m - 2]) = 0.) do m := m - 1
end do;
if 10 < m then
rm0 := array_y1_higher[1, m]/array_y1_higher[1, m - 1];
rm1 := array_y1_higher[1, m - 1]/array_y1_higher[1, m - 2];
hdrc := convfloat(m)*rm0 - convfloat(m - 1)*rm1;
if 0. < omniabs(hdrc) then
rcs := glob_h/hdrc;
ord_no := (
rm1*convfloat((m - 2)*(m - 2)) - rm0*convfloat(m - 3))/hdrc
;
array_real_poles[2, 1] := rcs;
array_real_poles[2, 2] := ord_no
else
array_real_poles[2, 1] := glob_large_float;
array_real_poles[2, 2] := glob_large_float
end if
else
array_real_poles[2, 1] := glob_large_float;
array_real_poles[2, 2] := glob_large_float
end if;
n := glob_max_terms - 6;
cnt := 0;
while cnt < 5 and 10 <= n do
if omniabs(array_y2_higher[1, n]) <> 0. 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
else
rm0 := array_y2_higher[1, m]/array_y2_higher[1, m - 1];
rm1 := array_y2_higher[1, m - 1]/array_y2_higher[1, m - 2];
rm2 := array_y2_higher[1, m - 2]/array_y2_higher[1, m - 3];
rm3 := array_y2_higher[1, m - 3]/array_y2_higher[1, m - 4];
rm4 := array_y2_higher[1, m - 4]/array_y2_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) = 0. or omniabs(dr1) = 0. then
rad_c := glob_large_float; ord_no := glob_large_float
else
if omniabs(nr1*dr2 - nr2*dr1) <> 0. 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 omniabs(rcs) <> 0. 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_poles[1, 1] := rad_c;
array_complex_poles[1, 2] := ord_no
end if;
n := glob_max_terms - 2;
cnt := 0;
while cnt < 5 and 10 <= n do
if omniabs(array_y1_higher[1, n]) <> 0. 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
else
rm0 := array_y1_higher[1, m]/array_y1_higher[1, m - 1];
rm1 := array_y1_higher[1, m - 1]/array_y1_higher[1, m - 2];
rm2 := array_y1_higher[1, m - 2]/array_y1_higher[1, m - 3];
rm3 := array_y1_higher[1, m - 3]/array_y1_higher[1, m - 4];
rm4 := array_y1_higher[1, m - 4]/array_y1_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) = 0. or omniabs(dr1) = 0. then
rad_c := glob_large_float; ord_no := glob_large_float
else
if omniabs(nr1*dr2 - nr2*dr1) <> 0. 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 omniabs(rcs) <> 0. 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_poles[2, 1] := rad_c;
array_complex_poles[2, 2] := ord_no
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_y2[term] := array_y2[term]*ratio;
array_y2_higher[1, term] := array_y2_higher[1, term]*ratio;
array_x[term] := array_x[term]*ratio;
array_y1[term] := array_y1[term]*ratio;
array_y1_higher[1, term] := array_y1_higher[1, term]*ratio;
array_x[term] := array_x[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_poles() end if
end proc
> # End Function number 11
> # Begin Function number 12
> get_norms := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local iii;
> if ( not glob_initial_pass) then # if number 7
> iii := 1;
> while (iii <= glob_max_terms) do # do number 1
> array_norms[iii] := 0.0;
> iii := iii + 1;
> od;# end do number 1;
> #TOP GET NORMS
> iii := 1;
> while (iii <= glob_max_terms) do # do number 1
> if (omniabs(array_y2[iii]) > array_norms[iii]) then # if number 8
> array_norms[iii] := omniabs(array_y2[iii]);
> fi;# end if 8;
> iii := iii + 1;
> od;# end do number 1
> ;
> iii := 1;
> while (iii <= glob_max_terms) do # do number 1
> if (omniabs(array_y1[iii]) > array_norms[iii]) then # if number 8
> array_norms[iii] := omniabs(array_y1[iii]);
> fi;# end if 8;
> iii := iii + 1;
> od;# end do number 1
> #BOTTOM GET NORMS
> ;
> fi;# end if 7;
> end;
get_norms := proc()
local iii;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, 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_y2[iii]) then
array_norms[iii] := omniabs(array_y2[iii])
end if;
iii := iii + 1
end do;
iii := 1;
while iii <= glob_max_terms do
if array_norms[iii] < omniabs(array_y1[iii]) then
array_norms[iii] := omniabs(array_y1[iii])
end if;
iii := iii + 1
end do
end if
end proc
> # End Function number 12
> # Begin Function number 13
> atomall := proc()
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> array_fact_2,
> glob_last;
> local kkk, order_d, adj2, adj3 , temporary, term;
> #TOP ATOMALL
> #END OUTFILE1
> #BEGIN ATOMHDR1
> #emit pre add CONST FULL $eq_no = 1 i = 1
> array_tmp1[1] := array_const_0D0[1] + array_y1[1];
> #emit pre assign xxx $eq_no = 1 i = 1 $min_hdrs = 5
> if ( not array_y2_set_initial[1,6]) then # if number 1
> if (1 <= glob_max_terms) then # if number 2
> temporary := array_tmp1[1] * expt(glob_h , (5)) * factorial_3(0,5);
> array_y2[6] := temporary;
> array_y2_higher[1,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y2_higher[2,5] := temporary;
> temporary := temporary / glob_h * (4.0);
> array_y2_higher[3,4] := temporary;
> temporary := temporary / glob_h * (3.0);
> array_y2_higher[4,3] := temporary;
> temporary := temporary / glob_h * (2.0);
> array_y2_higher[5,2] := temporary;
> temporary := temporary / glob_h * (1.0);
> array_y2_higher[6,1] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 2;
> # emit pre mult FULL FULL $eq_no = 2 i = 1
> array_tmp3[1] := (array_m1[1] * (array_y2[1]));
> #emit pre assign xxx $eq_no = 2 i = 1 $min_hdrs = 5
> if ( not array_y1_set_initial[2,2]) then # if number 1
> if (1 <= glob_max_terms) then # if number 2
> temporary := array_tmp3[1] * expt(glob_h , (1)) * factorial_3(0,1);
> array_y1[2] := temporary;
> array_y1_higher[1,2] := temporary;
> temporary := temporary / glob_h * (1.0);
> array_y1_higher[2,1] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 2;
> #END ATOMHDR1
> #BEGIN ATOMHDR2
> #emit pre add CONST FULL $eq_no = 1 i = 2
> array_tmp1[2] := array_y1[2];
> #emit pre assign xxx $eq_no = 1 i = 2 $min_hdrs = 5
> if ( not array_y2_set_initial[1,7]) then # if number 1
> if (2 <= glob_max_terms) then # if number 2
> temporary := array_tmp1[2] * expt(glob_h , (5)) * factorial_3(1,6);
> array_y2[7] := temporary;
> array_y2_higher[1,7] := temporary;
> temporary := temporary / glob_h * (6.0);
> array_y2_higher[2,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y2_higher[3,5] := temporary;
> temporary := temporary / glob_h * (4.0);
> array_y2_higher[4,4] := temporary;
> temporary := temporary / glob_h * (3.0);
> array_y2_higher[5,3] := temporary;
> temporary := temporary / glob_h * (2.0);
> array_y2_higher[6,2] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 3;
> # emit pre mult FULL FULL $eq_no = 2 i = 2
> array_tmp3[2] := ats(2,array_m1,array_y2,1);
> #emit pre assign xxx $eq_no = 2 i = 2 $min_hdrs = 5
> if ( not array_y1_set_initial[2,3]) then # if number 1
> if (2 <= glob_max_terms) then # if number 2
> temporary := array_tmp3[2] * expt(glob_h , (1)) * factorial_3(1,2);
> array_y1[3] := temporary;
> array_y1_higher[1,3] := temporary;
> temporary := temporary / glob_h * (2.0);
> array_y1_higher[2,2] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 3;
> #END ATOMHDR2
> #BEGIN ATOMHDR3
> #emit pre add CONST FULL $eq_no = 1 i = 3
> array_tmp1[3] := array_y1[3];
> #emit pre assign xxx $eq_no = 1 i = 3 $min_hdrs = 5
> if ( not array_y2_set_initial[1,8]) then # if number 1
> if (3 <= glob_max_terms) then # if number 2
> temporary := array_tmp1[3] * expt(glob_h , (5)) * factorial_3(2,7);
> array_y2[8] := temporary;
> array_y2_higher[1,8] := temporary;
> temporary := temporary / glob_h * (7.0);
> array_y2_higher[2,7] := temporary;
> temporary := temporary / glob_h * (6.0);
> array_y2_higher[3,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y2_higher[4,5] := temporary;
> temporary := temporary / glob_h * (4.0);
> array_y2_higher[5,4] := temporary;
> temporary := temporary / glob_h * (3.0);
> array_y2_higher[6,3] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 4;
> # emit pre mult FULL FULL $eq_no = 2 i = 3
> array_tmp3[3] := ats(3,array_m1,array_y2,1);
> #emit pre assign xxx $eq_no = 2 i = 3 $min_hdrs = 5
> if ( not array_y1_set_initial[2,4]) then # if number 1
> if (3 <= glob_max_terms) then # if number 2
> temporary := array_tmp3[3] * expt(glob_h , (1)) * factorial_3(2,3);
> array_y1[4] := temporary;
> array_y1_higher[1,4] := temporary;
> temporary := temporary / glob_h * (3.0);
> array_y1_higher[2,3] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 4;
> #END ATOMHDR3
> #BEGIN ATOMHDR4
> #emit pre add CONST FULL $eq_no = 1 i = 4
> array_tmp1[4] := array_y1[4];
> #emit pre assign xxx $eq_no = 1 i = 4 $min_hdrs = 5
> if ( not array_y2_set_initial[1,9]) then # if number 1
> if (4 <= glob_max_terms) then # if number 2
> temporary := array_tmp1[4] * expt(glob_h , (5)) * factorial_3(3,8);
> array_y2[9] := temporary;
> array_y2_higher[1,9] := temporary;
> temporary := temporary / glob_h * (8.0);
> array_y2_higher[2,8] := temporary;
> temporary := temporary / glob_h * (7.0);
> array_y2_higher[3,7] := temporary;
> temporary := temporary / glob_h * (6.0);
> array_y2_higher[4,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y2_higher[5,5] := temporary;
> temporary := temporary / glob_h * (4.0);
> array_y2_higher[6,4] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 5;
> # emit pre mult FULL FULL $eq_no = 2 i = 4
> array_tmp3[4] := ats(4,array_m1,array_y2,1);
> #emit pre assign xxx $eq_no = 2 i = 4 $min_hdrs = 5
> if ( not array_y1_set_initial[2,5]) then # if number 1
> if (4 <= glob_max_terms) then # if number 2
> temporary := array_tmp3[4] * expt(glob_h , (1)) * factorial_3(3,4);
> array_y1[5] := temporary;
> array_y1_higher[1,5] := temporary;
> temporary := temporary / glob_h * (4.0);
> array_y1_higher[2,4] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 5;
> #END ATOMHDR4
> #BEGIN ATOMHDR5
> #emit pre add CONST FULL $eq_no = 1 i = 5
> array_tmp1[5] := array_y1[5];
> #emit pre assign xxx $eq_no = 1 i = 5 $min_hdrs = 5
> if ( not array_y2_set_initial[1,10]) then # if number 1
> if (5 <= glob_max_terms) then # if number 2
> temporary := array_tmp1[5] * expt(glob_h , (5)) * factorial_3(4,9);
> array_y2[10] := temporary;
> array_y2_higher[1,10] := temporary;
> temporary := temporary / glob_h * (9.0);
> array_y2_higher[2,9] := temporary;
> temporary := temporary / glob_h * (8.0);
> array_y2_higher[3,8] := temporary;
> temporary := temporary / glob_h * (7.0);
> array_y2_higher[4,7] := temporary;
> temporary := temporary / glob_h * (6.0);
> array_y2_higher[5,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y2_higher[6,5] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 6;
> # emit pre mult FULL FULL $eq_no = 2 i = 5
> array_tmp3[5] := ats(5,array_m1,array_y2,1);
> #emit pre assign xxx $eq_no = 2 i = 5 $min_hdrs = 5
> if ( not array_y1_set_initial[2,6]) then # if number 1
> if (5 <= glob_max_terms) then # if number 2
> temporary := array_tmp3[5] * expt(glob_h , (1)) * factorial_3(4,5);
> array_y1[6] := temporary;
> array_y1_higher[1,6] := temporary;
> temporary := temporary / glob_h * (5.0);
> array_y1_higher[2,5] := temporary;
> fi;# end if 2;
> fi;# end if 1;
> kkk := 6;
> #END ATOMHDR5
> #BEGIN OUTFILE3
> #Top Atomall While Loop-- outfile3
> while (kkk <= glob_max_terms) do # do number 1
> #END OUTFILE3
> #BEGIN OUTFILE4
> #emit NOT FULL - FULL add $eq_no = 1
> array_tmp1[kkk] := array_y1[kkk];
> #emit assign $eq_no = 1
> order_d := 5;
> if (kkk + order_d < glob_max_terms) then # if number 1
> if ( not array_y2_set_initial[1,kkk + order_d]) then # if number 2
> temporary := array_tmp1[kkk] * expt(glob_h , (order_d)) * factorial_3((kkk - 1),(kkk + order_d - 1));
> array_y2[kkk + order_d] := temporary;
> array_y2_higher[1,kkk + order_d] := temporary;
> term := kkk + order_d - 1;
> adj2 := kkk + order_d - 1;
> adj3 := 2;
> while (term >= 1) do # do number 1
> 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_y2_higher[adj3,term] := temporary;
> fi;# end if 3;
> term := term - 1;
> adj2 := adj2 - 1;
> adj3 := adj3 + 1;
> od;# end do number 1
> fi;# end if 2
> fi;# end if 1;
> #emit mult FULL FULL $eq_no = 2
> array_tmp3[kkk] := ats(kkk,array_m1,array_y2,1);
> #emit assign $eq_no = 2
> order_d := 1;
> if (kkk + order_d < glob_max_terms) then # if number 1
> if ( not array_y1_set_initial[2,kkk + order_d]) then # if number 2
> temporary := array_tmp3[kkk] * expt(glob_h , (order_d)) * factorial_3((kkk - 1),(kkk + order_d - 1));
> array_y1[kkk + order_d] := temporary;
> array_y1_higher[1,kkk + order_d] := temporary;
> term := kkk + order_d - 1;
> adj2 := kkk + order_d - 1;
> adj3 := 2;
> while (term >= 1) do # do number 1
> 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_y1_higher[adj3,term] := temporary;
> fi;# end if 3;
> term := term - 1;
> adj2 := adj2 - 1;
> adj3 := adj3 + 1;
> od;# end do number 1
> 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, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, array_fact_2,
glob_last;
array_tmp1[1] := array_const_0D0[1] + array_y1[1];
if not array_y2_set_initial[1, 6] then
if 1 <= glob_max_terms then
temporary := array_tmp1[1]*expt(glob_h, 5)*factorial_3(0, 5);
array_y2[6] := temporary;
array_y2_higher[1, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y2_higher[2, 5] := temporary;
temporary := temporary*4.0/glob_h;
array_y2_higher[3, 4] := temporary;
temporary := temporary*3.0/glob_h;
array_y2_higher[4, 3] := temporary;
temporary := temporary*2.0/glob_h;
array_y2_higher[5, 2] := temporary;
temporary := temporary*1.0/glob_h;
array_y2_higher[6, 1] := temporary
end if
end if;
kkk := 2;
array_tmp3[1] := array_m1[1]*array_y2[1];
if not array_y1_set_initial[2, 2] then
if 1 <= glob_max_terms then
temporary := array_tmp3[1]*expt(glob_h, 1)*factorial_3(0, 1);
array_y1[2] := temporary;
array_y1_higher[1, 2] := temporary;
temporary := temporary*1.0/glob_h;
array_y1_higher[2, 1] := temporary
end if
end if;
kkk := 2;
array_tmp1[2] := array_y1[2];
if not array_y2_set_initial[1, 7] then
if 2 <= glob_max_terms then
temporary := array_tmp1[2]*expt(glob_h, 5)*factorial_3(1, 6);
array_y2[7] := temporary;
array_y2_higher[1, 7] := temporary;
temporary := temporary*6.0/glob_h;
array_y2_higher[2, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y2_higher[3, 5] := temporary;
temporary := temporary*4.0/glob_h;
array_y2_higher[4, 4] := temporary;
temporary := temporary*3.0/glob_h;
array_y2_higher[5, 3] := temporary;
temporary := temporary*2.0/glob_h;
array_y2_higher[6, 2] := temporary
end if
end if;
kkk := 3;
array_tmp3[2] := ats(2, array_m1, array_y2, 1);
if not array_y1_set_initial[2, 3] then
if 2 <= glob_max_terms then
temporary := array_tmp3[2]*expt(glob_h, 1)*factorial_3(1, 2);
array_y1[3] := temporary;
array_y1_higher[1, 3] := temporary;
temporary := temporary*2.0/glob_h;
array_y1_higher[2, 2] := temporary
end if
end if;
kkk := 3;
array_tmp1[3] := array_y1[3];
if not array_y2_set_initial[1, 8] then
if 3 <= glob_max_terms then
temporary := array_tmp1[3]*expt(glob_h, 5)*factorial_3(2, 7);
array_y2[8] := temporary;
array_y2_higher[1, 8] := temporary;
temporary := temporary*7.0/glob_h;
array_y2_higher[2, 7] := temporary;
temporary := temporary*6.0/glob_h;
array_y2_higher[3, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y2_higher[4, 5] := temporary;
temporary := temporary*4.0/glob_h;
array_y2_higher[5, 4] := temporary;
temporary := temporary*3.0/glob_h;
array_y2_higher[6, 3] := temporary
end if
end if;
kkk := 4;
array_tmp3[3] := ats(3, array_m1, array_y2, 1);
if not array_y1_set_initial[2, 4] then
if 3 <= glob_max_terms then
temporary := array_tmp3[3]*expt(glob_h, 1)*factorial_3(2, 3);
array_y1[4] := temporary;
array_y1_higher[1, 4] := temporary;
temporary := temporary*3.0/glob_h;
array_y1_higher[2, 3] := temporary
end if
end if;
kkk := 4;
array_tmp1[4] := array_y1[4];
if not array_y2_set_initial[1, 9] then
if 4 <= glob_max_terms then
temporary := array_tmp1[4]*expt(glob_h, 5)*factorial_3(3, 8);
array_y2[9] := temporary;
array_y2_higher[1, 9] := temporary;
temporary := temporary*8.0/glob_h;
array_y2_higher[2, 8] := temporary;
temporary := temporary*7.0/glob_h;
array_y2_higher[3, 7] := temporary;
temporary := temporary*6.0/glob_h;
array_y2_higher[4, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y2_higher[5, 5] := temporary;
temporary := temporary*4.0/glob_h;
array_y2_higher[6, 4] := temporary
end if
end if;
kkk := 5;
array_tmp3[4] := ats(4, array_m1, array_y2, 1);
if not array_y1_set_initial[2, 5] then
if 4 <= glob_max_terms then
temporary := array_tmp3[4]*expt(glob_h, 1)*factorial_3(3, 4);
array_y1[5] := temporary;
array_y1_higher[1, 5] := temporary;
temporary := temporary*4.0/glob_h;
array_y1_higher[2, 4] := temporary
end if
end if;
kkk := 5;
array_tmp1[5] := array_y1[5];
if not array_y2_set_initial[1, 10] then
if 5 <= glob_max_terms then
temporary := array_tmp1[5]*expt(glob_h, 5)*factorial_3(4, 9);
array_y2[10] := temporary;
array_y2_higher[1, 10] := temporary;
temporary := temporary*9.0/glob_h;
array_y2_higher[2, 9] := temporary;
temporary := temporary*8.0/glob_h;
array_y2_higher[3, 8] := temporary;
temporary := temporary*7.0/glob_h;
array_y2_higher[4, 7] := temporary;
temporary := temporary*6.0/glob_h;
array_y2_higher[5, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y2_higher[6, 5] := temporary
end if
end if;
kkk := 6;
array_tmp3[5] := ats(5, array_m1, array_y2, 1);
if not array_y1_set_initial[2, 6] then
if 5 <= glob_max_terms then
temporary := array_tmp3[5]*expt(glob_h, 1)*factorial_3(4, 5);
array_y1[6] := temporary;
array_y1_higher[1, 6] := temporary;
temporary := temporary*5.0/glob_h;
array_y1_higher[2, 5] := temporary
end if
end if;
kkk := 6;
while kkk <= glob_max_terms do
array_tmp1[kkk] := array_y1[kkk];
order_d := 5;
if kkk + order_d < glob_max_terms then
if not array_y2_set_initial[1, kkk + order_d] then
temporary := array_tmp1[kkk]*expt(glob_h, order_d)*
factorial_3(kkk - 1, kkk + order_d - 1);
array_y2[kkk + order_d] := temporary;
array_y2_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_y2_higher[adj3, term] := temporary
end if;
term := term - 1;
adj2 := adj2 - 1;
adj3 := adj3 + 1
end do
end if
end if;
array_tmp3[kkk] := ats(kkk, array_m1, array_y2, 1);
order_d := 1;
if kkk + order_d < glob_max_terms then
if not array_y1_set_initial[2, kkk + order_d] then
temporary := array_tmp3[kkk]*expt(glob_h, order_d)*
factorial_3(kkk - 1, kkk + order_d - 1);
array_y1[kkk + order_d] := temporary;
array_y1_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_y1_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 13
> #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
", 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
", prelabel, value, postlabel)
else printf("%-30s = %-42.32g %s
", 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
", prelabel, value, postlabel)
else printf("%-30s = %-32d %s
", 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, " |
")
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 Mi\
nutes %d Seconds
", years_int, days_int, hours_int, minutes_int, sec_int)
elif 0 < days_int then printf(" = %d Days %d Hours %d Minutes %d\
Seconds
", days_int, hours_int, minutes_int, sec_int)
elif 0 < hours_int then printf(" = %d Hours %d Minutes %d Second\
s
", hours_int, minutes_int, sec_int)
elif 0 < minutes_int then printf(" = %d Minutes %d Seconds
", minutes_int, sec_int)
else printf(" = %d Seconds
", sec_int)
end if
else printf(" Unknown
")
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,m,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_int(ALWAYS,"m",4, m ,4," ");
> 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, m, 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_int(ALWAYS, "m", 4, m, 4, " ");
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
> 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 16
> # Begin Function number 17
> 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 17
> # Begin Function number 18
> 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 18
> # Begin Function number 19
> 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 19
> # Begin Function number 20
> log_revs := proc(file,revs)
> fprintf(file,revs);
> end;
log_revs := proc(file, revs) fprintf(file, revs) end proc
> # End Function number 20
> # Begin Function number 21
> 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 21
> # Begin Function number 22
> 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");
> elif
> (pole = 4) then # if number 9
> fprintf(file,"Yes");
> else
> fprintf(file,"No");
> fi;# end if 9
> 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")
elif pole = 4 then fprintf(file, "Yes")
else fprintf(file, "No")
end if;
fprintf(file, " | ")
end proc
> # End Function number 22
> # Begin Function number 23
> logstart := proc(file)
> fprintf(file,"");
> end;
logstart := proc(file) fprintf(file, "
") end proc
> # End Function number 23
> # Begin Function number 24
> logend := proc(file)
> fprintf(file,"
\n");
> end;
logend := proc(file)
fprintf(file, "
")
end proc
> # End Function number 24
> # Begin Function number 25
> 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 9
> omniout_str(ALWAYS,"Illegal max_terms = -- Using 30");
> glob_max_terms := 30;
> fi;# end if 9;
> if (glob_max_iter < 2) then # if number 9
> omniout_str(ALWAYS,"Illegal max_iter");
> errflag := true;
> fi;# end if 9;
> if (errflag) then # if number 9
> quit;
> fi;# end if 9
> 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 25
> # Begin Function number 26
> 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 9
> sec_left := 0.0;
> else
> if (sub2 > 0.0) then # if number 10
> rrr := (sub1/sub2);
> sec_left := rrr * ms2 - ms2;
> else
> sec_left := 0.0;
> fi;# end if 10
> fi;# end if 9;
> 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 26
> # Begin Function number 27
> 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 9
> rrr := (100.0*sub2)/sub1;
> else
> rrr := 0.0;
> fi;# end if 9;
> 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 27
> # Begin Function number 28
> factorial_2 := proc(nnn)
> nnn!;
> end;
factorial_2 := proc(nnn) nnn! end proc
> # End Function number 28
> # Begin Function number 29
> factorial_1 := proc(nnn)
> global glob_max_terms,array_fact_1;
> local ret;
> if (nnn <= glob_max_terms) then # if number 9
> if (array_fact_1[nnn] = 0) then # if number 10
> ret := factorial_2(nnn);
> array_fact_1[nnn] := ret;
> else
> ret := array_fact_1[nnn];
> fi;# end if 10;
> else
> ret := factorial_2(nnn);
> fi;# end if 9;
> 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 29
> # Begin Function number 30
> 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 9
> if (array_fact_2[mmm,nnn] = 0) then # if number 10
> ret := factorial_1(mmm)/factorial_1(nnn);
> array_fact_2[mmm,nnn] := ret;
> else
> ret := array_fact_2[mmm,nnn];
> fi;# end if 10;
> else
> ret := factorial_2(mmm)/factorial_2(nnn);
> fi;# end if 9;
> 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 30
> # Begin Function number 31
> convfp := proc(mmm)
> (mmm);
> end;
convfp := proc(mmm) mmm end proc
> # End Function number 31
> # Begin Function number 32
> convfloat := proc(mmm)
> (mmm);
> end;
convfloat := proc(mmm) mmm end proc
> # End Function number 32
> # Begin Function number 33
> elapsed_time_seconds := proc()
> time();
> end;
elapsed_time_seconds := proc() time() end proc
> # End Function number 33
> # Begin Function number 34
> omniabs := proc(x)
> abs(x);
> end;
omniabs := proc(x) abs(x) end proc
> # End Function number 34
> # Begin Function number 35
> expt := proc(x,y)
> (x^y);
> end;
expt := proc(x, y) x^y end proc
> # End Function number 35
> # Begin Function number 36
> 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 36
> #END ATS LIBRARY BLOCK
> #BEGIN USER DEF BLOCK
> #BEGIN USER DEF BLOCK
> exact_soln_y1 := proc(x)
> return( cos(x));
> end;
exact_soln_y1 := proc(x) return cos(x) end proc
> exact_soln_y2 := proc(x)
> return( sin(x));
> end;
exact_soln_y2 := proc(x) return sin(x) end proc
> exact_soln_y2p := proc(x)
> return( cos(x));
> end;
exact_soln_y2p := proc(x) return cos(x) end proc
> exact_soln_y2pp := proc(x)
> return( -sin(x));
> end;
exact_soln_y2pp := proc(x) return -sin(x) end proc
> exact_soln_y2ppp := proc(x)
> return( -cos(x));
> end;
exact_soln_y2ppp := proc(x) return -cos(x) end proc
> exact_soln_y2pppp := proc(x)
> return( sin(x));
> end;
exact_soln_y2pppp := proc(x) return sin(x) end proc
> #END USER DEF BLOCK
> #END USER DEF BLOCK
> #END OUTFILE5
> # Begin Function number 2
> main := proc()
> #BEGIN OUTFIEMAIN
> local d1,d2,d3,d4,est_err_2,niii,done_once,
> term,ord,order_diff,term_no,html_log_file,iiif,jjjf,
> rows,r_order,sub_iter,calc_term,iii,temp_sum,current_iter,
> x_start,x_end
> ,it, max_terms, opt_iter, tmp,subiter, est_needed_step_err,estimated_step_error,min_value,est_answer,best_h,found_h,repeat_it;
> global
> glob_max_terms,
> glob_iolevel,
> glob_yes_pole,
> glob_no_pole,
> glob_not_given,
> ALWAYS,
> INFO,
> DEBUGL,
> DEBUGMASSIVE,
> #Top Generate Globals Decl
> MAX_UNCHANGED,
> glob_check_sign,
> glob_desired_digits_correct,
> glob_max_estimated_step_error,
> 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_min_h,
> glob_type_given_pole,
> 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_5,
> array_const_0D0,
> array_const_1,
> #END CONST
> array_y2_init,
> array_y1_init,
> array_norms,
> array_fact_1,
> array_pole,
> array_real_pole,
> array_complex_pole,
> array_1st_rel_error,
> array_last_rel_error,
> array_type_pole,
> array_type_real_pole,
> array_type_complex_pole,
> array_y2,
> array_x,
> array_y1,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_m1,
> array_y2_higher,
> array_y2_higher_work,
> array_y2_higher_work2,
> array_y2_set_initial,
> array_y1_higher,
> array_y1_higher_work,
> array_y1_higher_work2,
> array_y1_set_initial,
> array_poles,
> array_given_rad_poles,
> array_given_ord_poles,
> array_real_poles,
> array_complex_poles,
> 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;
> glob_yes_pole := 4;
> glob_no_pole := 3;
> glob_not_given := 0;
> ALWAYS := 1;
> INFO := 2;
> DEBUGL := 3;
> DEBUGMASSIVE := 4;
> MAX_UNCHANGED := 10;
> glob_check_sign := 1.0;
> glob_desired_digits_correct := 8.0;
> glob_max_estimated_step_error := 0.0;
> glob_ratio_of_radius := 0.1;
> 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_min_h := 0.000001;
> glob_type_given_pole := 0;
> 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.0;
> glob_smallish_float := 0.0;
> 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/mtest7_sm_hpostode.ode#################");
> omniout_str(ALWAYS,"diff ( y2 , x , 5 ) = y1 ;");
> omniout_str(ALWAYS,"diff ( y1 , x , 1 ) = m1 * y2 ;");
> omniout_str(ALWAYS,"!");
> omniout_str(ALWAYS,"#BEGIN FIRST INPUT BLOCK");
> omniout_str(ALWAYS,"Digits:=32;");
> 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,"x_start := 0.0;");
> omniout_str(ALWAYS,"x_end := 0.5;");
> omniout_str(ALWAYS,"array_y1_init[0 + 1] := exact_soln_y1(x_start);");
> omniout_str(ALWAYS,"array_y2_init[0 + 1] := exact_soln_y2(x_start);");
> omniout_str(ALWAYS,"array_y2_init[1 + 1] := exact_soln_y2p(x_start);");
> omniout_str(ALWAYS,"array_y2_init[2 + 1] := exact_soln_y2pp(x_start);");
> omniout_str(ALWAYS,"array_y2_init[4 + 1] := exact_soln_y2pppp(x_start);");
> omniout_str(ALWAYS,"glob_look_poles := true;");
> omniout_str(ALWAYS,"glob_max_iter := 20;");
> omniout_str(ALWAYS,"glob_max_h := 0.0001;");
> 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.01;");
> 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_y1 := proc(x)");
> omniout_str(ALWAYS,"return( cos(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"exact_soln_y2 := proc(x)");
> omniout_str(ALWAYS,"return( sin(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"exact_soln_y2p := proc(x)");
> omniout_str(ALWAYS,"return( cos(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"exact_soln_y2pp := proc(x)");
> omniout_str(ALWAYS,"return( -sin(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"exact_soln_y2ppp := proc(x)");
> omniout_str(ALWAYS,"return( -cos(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"exact_soln_y2pppp := proc(x)");
> omniout_str(ALWAYS,"return( sin(x));");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"");
> omniout_str(ALWAYS,"#END USER DEF BLOCK");
> omniout_str(ALWAYS,"#######END OF ECHO OF PROBLEM#################");
> glob_unchanged_h_cnt := 0;
> glob_warned := false;
> glob_warned2 := false;
> glob_small_float := 0.0;
> glob_smallish_float := 0.0;
> glob_large_float := 1.0e100;
> glob_almost_1 := 0.99;
> #BEGIN FIRST INPUT BLOCK
> #BEGIN FIRST INPUT BLOCK
> Digits:=32;
> 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_y2_init:= Array(0..(max_terms + 1),[]);
> array_y1_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..(4 + 1),[]);
> array_real_pole:= Array(0..(4 + 1),[]);
> array_complex_pole:= Array(0..(4 + 1),[]);
> array_1st_rel_error:= Array(0..(3 + 1),[]);
> array_last_rel_error:= Array(0..(3 + 1),[]);
> array_type_pole:= Array(0..(3 + 1),[]);
> array_type_real_pole:= Array(0..(3 + 1),[]);
> array_type_complex_pole:= Array(0..(3 + 1),[]);
> array_y2:= Array(0..(max_terms + 1),[]);
> array_x:= Array(0..(max_terms + 1),[]);
> array_y1:= 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_m1:= Array(0..(max_terms + 1),[]);
> array_y2_higher := Array(0..(6+ 1) ,(0..max_terms+ 1),[]);
> array_y2_higher_work := Array(0..(6+ 1) ,(0..max_terms+ 1),[]);
> array_y2_higher_work2 := Array(0..(6+ 1) ,(0..max_terms+ 1),[]);
> array_y2_set_initial := Array(0..(3+ 1) ,(0..max_terms+ 1),[]);
> array_y1_higher := Array(0..(2+ 1) ,(0..max_terms+ 1),[]);
> array_y1_higher_work := Array(0..(2+ 1) ,(0..max_terms+ 1),[]);
> array_y1_higher_work2 := Array(0..(2+ 1) ,(0..max_terms+ 1),[]);
> array_y1_set_initial := Array(0..(3+ 1) ,(0..max_terms+ 1),[]);
> array_poles := Array(0..(3+ 1) ,(0..3+ 1),[]);
> array_given_rad_poles := Array(0..(3+ 1) ,(0..3+ 1),[]);
> array_given_ord_poles := Array(0..(3+ 1) ,(0..3+ 1),[]);
> array_real_poles := Array(0..(3+ 1) ,(0..3+ 1),[]);
> array_complex_poles := Array(0..(3+ 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 1
> array_y2_init[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_y1_init[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_norms[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_fact_1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 4) do # do number 1
> array_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 4) do # do number 1
> array_real_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 4) do # do number 1
> array_complex_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 3) do # do number 1
> array_1st_rel_error[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 3) do # do number 1
> array_last_rel_error[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 3) do # do number 1
> array_type_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 3) do # do number 1
> array_type_real_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 3) do # do number 1
> array_type_complex_pole[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_y2[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_x[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_y1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_tmp0[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_tmp1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_tmp2[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_tmp3[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= max_terms) do # do number 1
> array_m1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=6) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y2_higher[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=6) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y2_higher_work[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=6) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y2_higher_work2[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y2_set_initial[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=2) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y1_higher[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=2) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y1_higher_work[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=2) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y1_higher_work2[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_y1_set_initial[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= 3) do # do number 2
> array_poles[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= 3) do # do number 2
> array_given_rad_poles[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= 3) do # do number 2
> array_given_ord_poles[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= 3) do # do number 2
> array_real_poles[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=3) do # do number 1
> term := 1;
> while (term <= 3) do # do number 2
> array_complex_poles[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> ord := 1;
> while (ord <=max_terms) do # do number 1
> term := 1;
> while (term <= max_terms) do # do number 2
> array_fact_2[ord,term] := 0.0;
> term := term + 1;
> od;# end do number 2;
> ord := ord + 1;
> od;# end do number 1;
> #BEGIN ARRAYS DEFINED AND INITIALIZATED
> array_y2 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_y2[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_x := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_x[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_y1 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_y1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_m1 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_m1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_tmp0 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_tmp0[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_tmp1 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_tmp1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_tmp2 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_tmp2[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_tmp3 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_tmp3[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_const_5 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_const_5[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_const_5[1] := 5;
> array_const_0D0 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_const_0D0[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_const_0D0[1] := 0.0;
> array_const_1 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms + 1) do # do number 1
> array_const_1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_const_1[1] := 1;
> array_m1 := Array(1..(max_terms+1 + 1),[]);
> term := 1;
> while (term <= max_terms) do # do number 1
> array_m1[term] := 0.0;
> term := term + 1;
> od;# end do number 1;
> array_m1[1] := -1.0;
> #END ARRAYS DEFINED AND INITIALIZATED
> #Initing Factorial Tables
> iiif := 0;
> while (iiif <= glob_max_terms) do # do number 1
> jjjf := 0;
> while (jjjf <= glob_max_terms) do # do number 2
> array_fact_1[iiif] := 0;
> array_fact_2[iiif,jjjf] := 0;
> jjjf := jjjf + 1;
> od;# end do number 2;
> iiif := iiif + 1;
> od;# end do number 1;
> #Done Initing Factorial Tables
> #TOP SECOND INPUT BLOCK
> #BEGIN SECOND INPUT BLOCK
> #END FIRST INPUT BLOCK
> #BEGIN SECOND INPUT BLOCK
> x_start := 0.0;
> x_end := 0.5;
> array_y1_init[0 + 1] := exact_soln_y1(x_start);
> array_y2_init[0 + 1] := exact_soln_y2(x_start);
> array_y2_init[1 + 1] := exact_soln_y2p(x_start);
> array_y2_init[2 + 1] := exact_soln_y2pp(x_start);
> array_y2_init[4 + 1] := exact_soln_y2pppp(x_start);
> glob_look_poles := true;
> glob_max_iter := 20;
> glob_max_h := 0.0001;
> #END SECOND INPUT BLOCK
> #BEGIN OVERRIDE BLOCK
> glob_desired_digits_correct:=10;
> glob_display_interval:=0.01;
> 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_y2_set_initial[1,1] := true;
> array_y2_set_initial[1,2] := true;
> array_y2_set_initial[1,3] := true;
> array_y2_set_initial[1,4] := false;
> array_y2_set_initial[1,5] := true;
> array_y2_set_initial[1,6] := false;
> array_y2_set_initial[1,7] := false;
> array_y2_set_initial[1,8] := false;
> array_y2_set_initial[1,9] := false;
> array_y2_set_initial[1,10] := false;
> array_y2_set_initial[1,11] := false;
> array_y2_set_initial[1,12] := false;
> array_y2_set_initial[1,13] := false;
> array_y2_set_initial[1,14] := false;
> array_y2_set_initial[1,15] := false;
> array_y2_set_initial[1,16] := false;
> array_y2_set_initial[1,17] := false;
> array_y2_set_initial[1,18] := false;
> array_y2_set_initial[1,19] := false;
> array_y2_set_initial[1,20] := false;
> array_y2_set_initial[1,21] := false;
> array_y2_set_initial[1,22] := false;
> array_y2_set_initial[1,23] := false;
> array_y2_set_initial[1,24] := false;
> array_y2_set_initial[1,25] := false;
> array_y2_set_initial[1,26] := false;
> array_y2_set_initial[1,27] := false;
> array_y2_set_initial[1,28] := false;
> array_y2_set_initial[1,29] := false;
> array_y2_set_initial[1,30] := false;
> array_y1_set_initial[2,1] := true;
> array_y1_set_initial[2,2] := false;
> array_y1_set_initial[2,3] := false;
> array_y1_set_initial[2,4] := false;
> array_y1_set_initial[2,5] := false;
> array_y1_set_initial[2,6] := false;
> array_y1_set_initial[2,7] := false;
> array_y1_set_initial[2,8] := false;
> array_y1_set_initial[2,9] := false;
> array_y1_set_initial[2,10] := false;
> array_y1_set_initial[2,11] := false;
> array_y1_set_initial[2,12] := false;
> array_y1_set_initial[2,13] := false;
> array_y1_set_initial[2,14] := false;
> array_y1_set_initial[2,15] := false;
> array_y1_set_initial[2,16] := false;
> array_y1_set_initial[2,17] := false;
> array_y1_set_initial[2,18] := false;
> array_y1_set_initial[2,19] := false;
> array_y1_set_initial[2,20] := false;
> array_y1_set_initial[2,21] := false;
> array_y1_set_initial[2,22] := false;
> array_y1_set_initial[2,23] := false;
> array_y1_set_initial[2,24] := false;
> array_y1_set_initial[2,25] := false;
> array_y1_set_initial[2,26] := false;
> array_y1_set_initial[2,27] := false;
> array_y1_set_initial[2,28] := false;
> array_y1_set_initial[2,29] := false;
> array_y1_set_initial[2,30] := false;
> #BEGIN OPTIMIZE CODE
> omniout_str(ALWAYS,"START of Optimize");
> #Start Series -- INITIALIZE FOR OPTIMIZE
> glob_check_sign := check_sign(x_start,x_end);
> glob_h := check_sign(x_start,x_end);
> found_h := false;
> glob_h := glob_min_h;
> if (glob_max_h < glob_h) then # if number 7
> glob_h := glob_max_h;
> fi;# end if 7;
> if (glob_display_interval < glob_h) then # if number 7
> glob_h := glob_display_interval;
> fi;# end if 7;
> best_h := glob_h;
> min_value := glob_large_float;
> est_answer := est_size_answer();
> opt_iter := 1;
> est_needed_step_err := estimated_needed_step_error(x_start,x_end,glob_h,est_answer);
> omniout_float(ALWAYS,"est_needed_step_err",32,est_needed_step_err,16,"");
> estimated_step_error := 0.0;
> while ((opt_iter <= 100) and ( not found_h)) do # do number 1
> omniout_int(ALWAYS,"opt_iter",32,opt_iter,4,"");
> array_x[1] := x_start;
> array_x[2] := glob_h;
> glob_next_display := x_start;
> order_diff := 5;
> #Start Series array_y2
> term_no := 1;
> while (term_no <= order_diff) do # do number 2
> array_y2[term_no] := array_y2_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_y2_higher[r_order,term_no] := array_y2_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 := 1;
> #Start Series array_y1
> term_no := 1;
> while (term_no <= order_diff) do # do number 2
> array_y1[term_no] := array_y1_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_y1_higher[r_order,term_no] := array_y1_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
> ;
> if (glob_subiter_method = 1 ) then # if number 7
> atomall();
> elif
> (glob_subiter_method = 2 ) then # if number 8
> subiter := 1;
> while (subiter <= 6) do # do number 2
> atomall();
> subiter := subiter + 1;
> od;# end do number 2;
> else
> subiter := 1;
> while (subiter <= 6 + glob_max_terms) do # do number 2
> atomall();
> subiter := subiter + 1;
> od;# end do number 2;
> fi;# end if 8;
> estimated_step_error := test_suggested_h();
> omniout_float(ALWAYS,"estimated_step_error",32,estimated_step_error,32,"");
> if (((estimated_step_error > est_needed_step_err) and (opt_iter = 1)) or (glob_h >= glob_max_h )) then # if number 8
> found_h := true;
> glob_h := glob_max_h;
> best_h := glob_h;
> elif
> ((estimated_step_error > est_needed_step_err) and ( not found_h)) then # if number 9
> glob_h := glob_h/2.0;
> best_h := glob_h;
> found_h := true;
> else
> glob_h := glob_h*2.0;
> best_h := glob_h;
> fi;# end if 9;
> omniout_float(ALWAYS,"best_h",32,best_h,32,"");
> opt_iter := opt_iter + 1;
> od;# end do number 1;
> if (( not found_h) and (opt_iter = 1)) then # if number 9
> omniout_str(ALWAYS,"Beginning glob_h too large.");
> found_h := false;
> fi;# end if 9;
> if (opt_iter > 100) then # if number 9
> glob_h := glob_max_h;
> found_h := false;
> fi;# end if 9;
> if (glob_display_interval < glob_h) then # if number 9
> glob_h := glob_display_interval;
> fi;# end if 9;
> #END OPTIMIZE CODE
> if (glob_html_log) then # if number 9
> html_log_file := fopen("entry.html",WRITE,TEXT);
> fi;# end if 9;
> #BEGIN SOLUTION CODE
> if (found_h) then # if number 9
> omniout_str(ALWAYS,"START of Soultion");
> #Start Series -- INITIALIZE FOR SOLUTION
> array_x[1] := x_start;
> array_x[2] := glob_h;
> glob_next_display := x_start;
> order_diff := 5;
> #Start Series array_y2
> term_no := 1;
> while (term_no <= order_diff) do # do number 1
> array_y2[term_no] := array_y2_init[term_no] * expt(glob_h , (term_no - 1)) / factorial_1(term_no - 1);
> term_no := term_no + 1;
> od;# end do number 1;
> rows := order_diff;
> r_order := 1;
> while (r_order <= rows) do # do number 1
> term_no := 1;
> while (term_no <= (rows - r_order + 1)) do # do number 2
> it := term_no + r_order - 1;
> array_y2_higher[r_order,term_no] := array_y2_init[it]* expt(glob_h , (term_no - 1)) / ((factorial_1(term_no - 1)));
> term_no := term_no + 1;
> od;# end do number 2;
> r_order := r_order + 1;
> od;# end do number 1
> ;
> order_diff := 1;
> #Start Series array_y1
> term_no := 1;
> while (term_no <= order_diff) do # do number 1
> array_y1[term_no] := array_y1_init[term_no] * expt(glob_h , (term_no - 1)) / factorial_1(term_no - 1);
> term_no := term_no + 1;
> od;# end do number 1;
> rows := order_diff;
> r_order := 1;
> while (r_order <= rows) do # do number 1
> term_no := 1;
> while (term_no <= (rows - r_order + 1)) do # do number 2
> it := term_no + r_order - 1;
> array_y1_higher[r_order,term_no] := array_y1_init[it]* expt(glob_h , (term_no - 1)) / ((factorial_1(term_no - 1)));
> term_no := term_no + 1;
> od;# end do number 2;
> r_order := r_order + 1;
> od;# end do number 1
> ;
> 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_x[1]) < (glob_check_sign * x_end )) and ((convfloat(glob_clock_sec) - convfloat(glob_orig_start_sec)) < convfloat(glob_max_sec))) do # do number 1
> #left paren 0001C
> if (reached_interval()) then # if number 10
> omniout_str(INFO," ");
> omniout_str(INFO,"TOP MAIN SOLVE Loop");
> fi;# end if 10;
> 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 10
> atomall();
> elif
> (glob_subiter_method = 2 ) then # if number 11
> subiter := 1;
> while (subiter <= 6) do # do number 2
> atomall();
> subiter := subiter + 1;
> od;# end do number 2;
> else
> subiter := 1;
> while (subiter <= 6 + glob_max_terms) do # do number 2
> atomall();
> subiter := subiter + 1;
> od;# end do number 2;
> fi;# end if 11;
> display_alot(current_iter);
> if (glob_look_poles) then # if number 11
> #left paren 0004C
> check_for_pole();
> fi;# end if 11;#was right paren 0004C
> if (reached_interval()) then # if number 11
> glob_next_display := glob_next_display + glob_display_interval;
> fi;# end if 11;
> array_x[1] := array_x[1] + glob_h;
> array_x[2] := glob_h;
> #Jump Series array_y2;
> order_diff := 6;
> #START PART 1 SUM AND ADJUST
> #START SUM AND ADJUST EQ =1
> #sum_and_adjust array_y2
> #BEFORE ADJUST SUBSERIES EQ =1
> ord := 6;
> calc_term := 1;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[6,iii] := array_y2_higher[6,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 6;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 5;
> calc_term := 2;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[5,iii] := array_y2_higher[5,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 5;
> calc_term := 2;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 5;
> calc_term := 1;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[5,iii] := array_y2_higher[5,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 5;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 4;
> calc_term := 3;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 4;
> calc_term := 3;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 4;
> calc_term := 2;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 4;
> calc_term := 2;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 4;
> calc_term := 1;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 4;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 3;
> calc_term := 4;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 3;
> calc_term := 4;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 3;
> calc_term := 3;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 3;
> calc_term := 3;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 3;
> calc_term := 2;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 3;
> calc_term := 2;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 3;
> calc_term := 1;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 3;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 2;
> calc_term := 5;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 2;
> calc_term := 5;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 2;
> calc_term := 4;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 2;
> calc_term := 4;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 2;
> calc_term := 3;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 2;
> calc_term := 3;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 2;
> calc_term := 2;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 2;
> calc_term := 2;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 2;
> calc_term := 1;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 2;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 6;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 6;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 5;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 5;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 4;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 4;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 := 3;
> #adjust_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 3;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 2;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =1
> #BEFORE SUM SUBSERIES EQ =1
> temp_sum := 0.0;
> ord := 1;
> calc_term := 1;
> #sum_subseriesarray_y2
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y2_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y2_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 2
> array_y2[term_no] := array_y2_higher_work2[1,term_no];
> ord := 1;
> while (ord <= order_diff) do # do number 3
> array_y2_higher[ord,term_no] := array_y2_higher_work2[ord,term_no];
> ord := ord + 1;
> od;# end do number 3;
> term_no := term_no - 1;
> od;# end do number 2;
> #END PART 2 HEVE MOVED TERMS to REGULAR Array
> #Jump Series array_y1;
> order_diff := 2;
> #START PART 1 SUM AND ADJUST
> #START SUM AND ADJUST EQ =2
> #sum_and_adjust array_y1
> #BEFORE ADJUST SUBSERIES EQ =2
> ord := 2;
> calc_term := 1;
> #adjust_subseriesarray_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y1_higher_work[2,iii] := array_y1_higher[2,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =2
> #BEFORE SUM SUBSERIES EQ =2
> temp_sum := 0.0;
> ord := 2;
> calc_term := 1;
> #sum_subseriesarray_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y1_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y1_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_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y1_higher_work[1,iii] := array_y1_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =2
> #BEFORE SUM SUBSERIES EQ =2
> temp_sum := 0.0;
> ord := 1;
> calc_term := 2;
> #sum_subseriesarray_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y1_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y1_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_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> array_y1_higher_work[1,iii] := array_y1_higher[1,iii] / expt(glob_h , (calc_term - 1)) / factorial_3(iii - calc_term , iii - 1);
> iii := iii - 1;
> od;# end do number 2;
> #AFTER ADJUST SUBSERIES EQ =2
> #BEFORE SUM SUBSERIES EQ =2
> temp_sum := 0.0;
> ord := 1;
> calc_term := 1;
> #sum_subseriesarray_y1
> iii := glob_max_terms;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y1_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y1_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 2
> array_y1[term_no] := array_y1_higher_work2[1,term_no];
> ord := 1;
> while (ord <= order_diff) do # do number 3
> array_y1_higher[ord,term_no] := array_y1_higher_work2[ord,term_no];
> ord := ord + 1;
> od;# end do number 3;
> term_no := term_no - 1;
> od;# end do number 2;
> #END PART 2 HEVE MOVED TERMS to REGULAR Array
> ;
> od;# end do number 1;#right paren 0001C
> omniout_str(ALWAYS,"Finished!");
> if (glob_iter >= glob_max_iter) then # if number 11
> omniout_str(ALWAYS,"Maximum Iterations Reached before Solution Completed!");
> fi;# end if 11;
> if (elapsed_time_seconds() - convfloat(glob_orig_start_sec) >= convfloat(glob_max_sec )) then # if number 11
> omniout_str(ALWAYS,"Maximum Time Reached before Solution Completed!");
> fi;# end if 11;
> glob_clock_sec := elapsed_time_seconds();
> omniout_str(INFO,"diff ( y2 , x , 5 ) = y1 ;");
> omniout_str(INFO,"diff ( y1 , x , 1 ) = m1 * y2 ;");
> omniout_int(INFO,"Iterations ",32,glob_iter,4," ")
> ;
> prog_report(x_start,x_end);
> if (glob_html_log) then # if number 11
> logstart(html_log_file);
> logitem_str(html_log_file,"2013-05-26T03:47:21-05:00")
> ;
> logitem_str(html_log_file,"Maple")
> ;
> logitem_str(html_log_file,"mtest7_sm_h")
> ;
> logitem_str(html_log_file,"diff ( y2 , x , 5 ) = y1 ;")
> ;
> logitem_float(html_log_file,x_start)
> ;
> logitem_float(html_log_file,x_end)
> ;
> logitem_float(html_log_file,array_x[1])
> ;
> logitem_float(html_log_file,glob_h)
> ;
> logitem_integer(html_log_file,Digits)
> ;
> ;
> logitem_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_time(html_log_file,convfloat(glob_clock_sec))
> ;
> if (glob_percent_done < 100.0) then # if number 12
> logitem_time(html_log_file,convfloat(glob_total_exp_sec))
> ;
> 0;
> else
> logitem_str(html_log_file,"Done")
> ;
> 0;
> fi;# end if 12;
> log_revs(html_log_file," 189 | ")
> ;
> logitem_str(html_log_file,"mtest7_sm_h diffeq.mxt")
> ;
> logitem_str(html_log_file,"mtest7_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 ( y1 , x , 1 ) = m1 * y2 ;")
> ;
> 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)
> ;
> logditto(html_log_file)
> ;
> if (glob_percent_done < 100.0) then # if number 12
> logditto(html_log_file)
> ;
> 0;
> else
> logditto(html_log_file)
> ;
> 0;
> fi;# end if 12;
> logditto(html_log_file);
> ;
> logditto(html_log_file)
> ;
> logditto(html_log_file)
> ;
> logditto(html_log_file)
> ;
> logend(html_log_file)
> ;
> ;
> fi;# end if 11;
> if (glob_html_log) then # if number 11
> fclose(html_log_file);
> fi;# end if 11
> ;
> ;;
> fi;# end if 10
> #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, x_start, x_end, it, max_terms, opt_iter, tmp,
subiter, est_needed_step_err, estimated_step_error, min_value, est_answer,
best_h, found_h, repeat_it;
global glob_max_terms, glob_iolevel, glob_yes_pole, glob_no_pole,
glob_not_given, ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, MAX_UNCHANGED,
glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error,
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_min_h, glob_type_given_pole, 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_5, array_const_0D0, array_const_1,
array_y2_init, array_y1_init, array_norms, array_fact_1, array_pole,
array_real_pole, array_complex_pole, array_1st_rel_error,
array_last_rel_error, array_type_pole, array_type_real_pole,
array_type_complex_pole, array_y2, array_x, array_y1, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_m1, array_y2_higher,
array_y2_higher_work, array_y2_higher_work2, array_y2_set_initial,
array_y1_higher, array_y1_higher_work, array_y1_higher_work2,
array_y1_set_initial, array_poles, array_given_rad_poles,
array_given_ord_poles, array_real_poles, array_complex_poles, 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;
glob_yes_pole := 4;
glob_no_pole := 3;
glob_not_given := 0;
ALWAYS := 1;
INFO := 2;
DEBUGL := 3;
DEBUGMASSIVE := 4;
MAX_UNCHANGED := 10;
glob_check_sign := 1.0;
glob_desired_digits_correct := 8.0;
glob_max_estimated_step_error := 0.;
glob_ratio_of_radius := 0.1;
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_min_h := 0.1*10^(-5);
glob_type_given_pole := 0;
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.;
glob_smallish_float := 0.;
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/mtest7_sm_hpostode.ode#################");
omniout_str(ALWAYS, "diff ( y2 , x , 5 ) = y1 ;");
omniout_str(ALWAYS, "diff ( y1 , x , 1 ) = m1 * y2 ;");
omniout_str(ALWAYS, "!");
omniout_str(ALWAYS, "#BEGIN FIRST INPUT BLOCK");
omniout_str(ALWAYS, "Digits:=32;");
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, "x_start := 0.0;");
omniout_str(ALWAYS, "x_end := 0.5;");
omniout_str(ALWAYS, "array_y1_init[0 + 1] := exact_soln_y1(x_start);");
omniout_str(ALWAYS, "array_y2_init[0 + 1] := exact_soln_y2(x_start);");
omniout_str(ALWAYS, "array_y2_init[1 + 1] := exact_soln_y2p(x_start);")
;
omniout_str(ALWAYS, "array_y2_init[2 + 1] := exact_soln_y2pp(x_start);")
;
omniout_str(ALWAYS,
"array_y2_init[4 + 1] := exact_soln_y2pppp(x_start);");
omniout_str(ALWAYS, "glob_look_poles := true;");
omniout_str(ALWAYS, "glob_max_iter := 20;");
omniout_str(ALWAYS, "glob_max_h := 0.0001;");
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.01;");
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_y1 := proc(x)");
omniout_str(ALWAYS, "return( cos(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "exact_soln_y2 := proc(x)");
omniout_str(ALWAYS, "return( sin(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "exact_soln_y2p := proc(x)");
omniout_str(ALWAYS, "return( cos(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "exact_soln_y2pp := proc(x)");
omniout_str(ALWAYS, "return( -sin(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "exact_soln_y2ppp := proc(x)");
omniout_str(ALWAYS, "return( -cos(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "exact_soln_y2pppp := proc(x)");
omniout_str(ALWAYS, "return( sin(x));");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "");
omniout_str(ALWAYS, "#END USER DEF BLOCK");
omniout_str(ALWAYS, "#######END OF ECHO OF PROBLEM#################");
glob_unchanged_h_cnt := 0;
glob_warned := false;
glob_warned2 := false;
glob_small_float := 0.;
glob_smallish_float := 0.;
glob_large_float := 0.10*10^101;
glob_almost_1 := 0.99;
Digits := 32;
max_terms := 30;
glob_max_terms := max_terms;
glob_html_log := true;
array_y2_init := Array(0 .. max_terms + 1, []);
array_y1_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 .. 5, []);
array_real_pole := Array(0 .. 5, []);
array_complex_pole := Array(0 .. 5, []);
array_1st_rel_error := Array(0 .. 4, []);
array_last_rel_error := Array(0 .. 4, []);
array_type_pole := Array(0 .. 4, []);
array_type_real_pole := Array(0 .. 4, []);
array_type_complex_pole := Array(0 .. 4, []);
array_y2 := Array(0 .. max_terms + 1, []);
array_x := Array(0 .. max_terms + 1, []);
array_y1 := 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_m1 := Array(0 .. max_terms + 1, []);
array_y2_higher := Array(0 .. 7, 0 .. max_terms + 1, []);
array_y2_higher_work := Array(0 .. 7, 0 .. max_terms + 1, []);
array_y2_higher_work2 := Array(0 .. 7, 0 .. max_terms + 1, []);
array_y2_set_initial := Array(0 .. 4, 0 .. max_terms + 1, []);
array_y1_higher := Array(0 .. 3, 0 .. max_terms + 1, []);
array_y1_higher_work := Array(0 .. 3, 0 .. max_terms + 1, []);
array_y1_higher_work2 := Array(0 .. 3, 0 .. max_terms + 1, []);
array_y1_set_initial := Array(0 .. 4, 0 .. max_terms + 1, []);
array_poles := Array(0 .. 4, 0 .. 4, []);
array_given_rad_poles := Array(0 .. 4, 0 .. 4, []);
array_given_ord_poles := Array(0 .. 4, 0 .. 4, []);
array_real_poles := Array(0 .. 4, 0 .. 4, []);
array_complex_poles := Array(0 .. 4, 0 .. 4, []);
array_fact_2 := Array(0 .. max_terms + 1, 0 .. max_terms + 1, []);
term := 1;
while term <= max_terms do array_y2_init[term] := 0.; term := term + 1
end do;
term := 1;
while term <= max_terms do array_y1_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 <= 4 do array_pole[term] := 0.; term := term + 1 end do;
term := 1;
while term <= 4 do array_real_pole[term] := 0.; term := term + 1 end do
;
term := 1;
while term <= 4 do array_complex_pole[term] := 0.; term := term + 1
end do;
term := 1;
while term <= 3 do array_1st_rel_error[term] := 0.; term := term + 1
end do;
term := 1;
while term <= 3 do array_last_rel_error[term] := 0.; term := term + 1
end do;
term := 1;
while term <= 3 do array_type_pole[term] := 0.; term := term + 1 end do
;
term := 1;
while term <= 3 do array_type_real_pole[term] := 0.; term := term + 1
end do;
term := 1;
while term <= 3 do
array_type_complex_pole[term] := 0.; term := term + 1
end do;
term := 1;
while term <= max_terms do array_y2[term] := 0.; term := term + 1
end do;
term := 1;
while term <= max_terms do array_x[term] := 0.; term := term + 1 end do
;
term := 1;
while term <= max_terms do array_y1[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_m1[term] := 0.; term := term + 1
end do;
ord := 1;
while ord <= 6 do
term := 1;
while term <= max_terms do
array_y2_higher[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 6 do
term := 1;
while term <= max_terms do
array_y2_higher_work[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 6 do
term := 1;
while term <= max_terms do
array_y2_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_y2_set_initial[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 2 do
term := 1;
while term <= max_terms do
array_y1_higher[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 2 do
term := 1;
while term <= max_terms do
array_y1_higher_work[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 2 do
term := 1;
while term <= max_terms do
array_y1_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_y1_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 <= 3 do array_poles[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 3 do
term := 1;
while term <= 3 do
array_given_rad_poles[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 3 do
term := 1;
while term <= 3 do
array_given_ord_poles[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 3 do
term := 1;
while term <= 3 do
array_real_poles[ord, term] := 0.; term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 3 do
term := 1;
while term <= 3 do
array_complex_poles[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_y2 := Array(1 .. max_terms + 2, []);
term := 1;
while term <= max_terms + 1 do array_y2[term] := 0.; term := term + 1
end do;
array_x := Array(1 .. max_terms + 2, []);
term := 1;
while term <= max_terms + 1 do array_x[term] := 0.; term := term + 1
end do;
array_y1 := Array(1 .. max_terms + 2, []);
term := 1;
while term <= max_terms + 1 do array_y1[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_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_const_5 := Array(1 .. max_terms + 2, []);
term := 1;
while term <= max_terms + 1 do
array_const_5[term] := 0.; term := term + 1
end do;
array_const_5[1] := 5;
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_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_m1 := Array(1 .. max_terms + 2, []);
term := 1;
while term <= max_terms do array_m1[term] := 0.; term := term + 1
end do;
array_m1[1] := -1.0;
iiif := 0;
while iiif <= glob_max_terms do
jjjf := 0;
while jjjf <= glob_max_terms do
array_fact_1[iiif] := 0;
array_fact_2[iiif, jjjf] := 0;
jjjf := jjjf + 1
end do;
iiif := iiif + 1
end do;
x_start := 0.;
x_end := 0.5;
array_y1_init[1] := exact_soln_y1(x_start);
array_y2_init[1] := exact_soln_y2(x_start);
array_y2_init[2] := exact_soln_y2p(x_start);
array_y2_init[3] := exact_soln_y2pp(x_start);
array_y2_init[5] := exact_soln_y2pppp(x_start);
glob_look_poles := true;
glob_max_iter := 20;
glob_max_h := 0.0001;
glob_desired_digits_correct := 10;
glob_display_interval := 0.01;
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_y2_set_initial[1, 1] := true;
array_y2_set_initial[1, 2] := true;
array_y2_set_initial[1, 3] := true;
array_y2_set_initial[1, 4] := false;
array_y2_set_initial[1, 5] := true;
array_y2_set_initial[1, 6] := false;
array_y2_set_initial[1, 7] := false;
array_y2_set_initial[1, 8] := false;
array_y2_set_initial[1, 9] := false;
array_y2_set_initial[1, 10] := false;
array_y2_set_initial[1, 11] := false;
array_y2_set_initial[1, 12] := false;
array_y2_set_initial[1, 13] := false;
array_y2_set_initial[1, 14] := false;
array_y2_set_initial[1, 15] := false;
array_y2_set_initial[1, 16] := false;
array_y2_set_initial[1, 17] := false;
array_y2_set_initial[1, 18] := false;
array_y2_set_initial[1, 19] := false;
array_y2_set_initial[1, 20] := false;
array_y2_set_initial[1, 21] := false;
array_y2_set_initial[1, 22] := false;
array_y2_set_initial[1, 23] := false;
array_y2_set_initial[1, 24] := false;
array_y2_set_initial[1, 25] := false;
array_y2_set_initial[1, 26] := false;
array_y2_set_initial[1, 27] := false;
array_y2_set_initial[1, 28] := false;
array_y2_set_initial[1, 29] := false;
array_y2_set_initial[1, 30] := false;
array_y1_set_initial[2, 1] := true;
array_y1_set_initial[2, 2] := false;
array_y1_set_initial[2, 3] := false;
array_y1_set_initial[2, 4] := false;
array_y1_set_initial[2, 5] := false;
array_y1_set_initial[2, 6] := false;
array_y1_set_initial[2, 7] := false;
array_y1_set_initial[2, 8] := false;
array_y1_set_initial[2, 9] := false;
array_y1_set_initial[2, 10] := false;
array_y1_set_initial[2, 11] := false;
array_y1_set_initial[2, 12] := false;
array_y1_set_initial[2, 13] := false;
array_y1_set_initial[2, 14] := false;
array_y1_set_initial[2, 15] := false;
array_y1_set_initial[2, 16] := false;
array_y1_set_initial[2, 17] := false;
array_y1_set_initial[2, 18] := false;
array_y1_set_initial[2, 19] := false;
array_y1_set_initial[2, 20] := false;
array_y1_set_initial[2, 21] := false;
array_y1_set_initial[2, 22] := false;
array_y1_set_initial[2, 23] := false;
array_y1_set_initial[2, 24] := false;
array_y1_set_initial[2, 25] := false;
array_y1_set_initial[2, 26] := false;
array_y1_set_initial[2, 27] := false;
array_y1_set_initial[2, 28] := false;
array_y1_set_initial[2, 29] := false;
array_y1_set_initial[2, 30] := false;
omniout_str(ALWAYS, "START of Optimize");
glob_check_sign := check_sign(x_start, x_end);
glob_h := check_sign(x_start, x_end);
found_h := false;
glob_h := glob_min_h;
if glob_max_h < glob_h then glob_h := glob_max_h end if;
if glob_display_interval < glob_h then glob_h := glob_display_interval
end if;
best_h := glob_h;
min_value := glob_large_float;
est_answer := est_size_answer();
opt_iter := 1;
est_needed_step_err :=
estimated_needed_step_error(x_start, x_end, glob_h, est_answer);
omniout_float(ALWAYS, "est_needed_step_err", 32, est_needed_step_err,
16, "");
estimated_step_error := 0.;
while opt_iter <= 100 and not found_h do
omniout_int(ALWAYS, "opt_iter", 32, opt_iter, 4, "");
array_x[1] := x_start;
array_x[2] := glob_h;
glob_next_display := x_start;
order_diff := 5;
term_no := 1;
while term_no <= order_diff do
array_y2[term_no] := array_y2_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_y2_higher[r_order, term_no] := array_y2_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 := 1;
term_no := 1;
while term_no <= order_diff do
array_y1[term_no] := array_y1_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_y1_higher[r_order, term_no] := array_y1_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 <= 6 do atomall(); subiter := subiter + 1 end do
else
subiter := 1;
while subiter <= 6 + glob_max_terms do
atomall(); subiter := subiter + 1
end do
end if;
estimated_step_error := test_suggested_h();
omniout_float(ALWAYS, "estimated_step_error", 32,
estimated_step_error, 32, "");
if est_needed_step_err < estimated_step_error and opt_iter = 1 or
glob_max_h <= glob_h then
found_h := true; glob_h := glob_max_h; best_h := glob_h
elif est_needed_step_err < estimated_step_error and not found_h
then glob_h := glob_h/2.0; best_h := glob_h; found_h := true
else glob_h := glob_h*2.0; best_h := glob_h
end if;
omniout_float(ALWAYS, "best_h", 32, best_h, 32, "");
opt_iter := opt_iter + 1
end do;
if not found_h and opt_iter = 1 then
omniout_str(ALWAYS, "Beginning glob_h too large.");
found_h := false
end if;
if 100 < opt_iter then glob_h := glob_max_h; found_h := false end if;
if glob_display_interval < glob_h then glob_h := glob_display_interval
end if;
if glob_html_log then html_log_file := fopen("entry.html", WRITE, TEXT)
end if;
if found_h then
omniout_str(ALWAYS, "START of Soultion");
array_x[1] := x_start;
array_x[2] := glob_h;
glob_next_display := x_start;
order_diff := 5;
term_no := 1;
while term_no <= order_diff do
array_y2[term_no] := array_y2_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_y2_higher[r_order, term_no] := array_y2_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 := 1;
term_no := 1;
while term_no <= order_diff do
array_y1[term_no] := array_y1_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_y1_higher[r_order, term_no] := array_y1_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_x[1] < glob_check_sign*x_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 <= 6 do atomall(); subiter := subiter + 1
end do
else
subiter := 1;
while subiter <= 6 + 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_x[1] := array_x[1] + glob_h;
array_x[2] := glob_h;
order_diff := 6;
ord := 6;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[6, iii] := array_y2_higher[6, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 6;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 5;
calc_term := 2;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[5, iii] := array_y2_higher[5, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 5;
calc_term := 2;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 5;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[5, iii] := array_y2_higher[5, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 5;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 4;
calc_term := 3;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 4;
calc_term := 3;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 4;
calc_term := 2;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 4;
calc_term := 2;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 4;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/(
expt(glob_h, calc_term - 1)*
factorial_3(iii - calc_term, iii - 1));
iii := iii - 1
end do;
temp_sum := 0.;
ord := 4;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 3;
calc_term := 4;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[3, iii] := array_y2_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 := 4;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 3;
calc_term := 3;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[3, iii] := array_y2_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 := 3;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 3;
calc_term := 2;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[3, iii] := array_y2_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 := 2;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 3;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[3, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 2;
calc_term := 5;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[2, iii] := array_y2_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 := 5;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 2;
calc_term := 4;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[2, iii] := array_y2_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 := 4;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 2;
calc_term := 3;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[2, iii] := array_y2_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 := 3;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2_higher_work[2, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2_higher_work[2, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 1;
calc_term := 6;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[1, iii] := array_y2_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 := 6;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 1;
calc_term := 5;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[1, iii] := array_y2_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 := 5;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_higher_work2[ord, calc_term] := temp_sum*
expt(glob_h, calc_term - 1)/factorial_1(calc_term - 1);
ord := 1;
calc_term := 4;
iii := glob_max_terms;
while calc_term <= iii do
array_y2_higher_work[1, iii] := array_y2_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 := 4;
iii := glob_max_terms;
while calc_term <= iii do
temp_sum := temp_sum + array_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2_higher_work[1, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2_higher_work[1, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2_higher_work[1, iii] := array_y2_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_y2_higher_work[ord, iii];
iii := iii - 1
end do;
array_y2_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_y2[term_no] := array_y2_higher_work2[1, term_no];
ord := 1;
while ord <= order_diff do
array_y2_higher[ord, term_no] :=
array_y2_higher_work2[ord, term_no];
ord := ord + 1
end do;
term_no := term_no - 1
end do;
order_diff := 2;
ord := 2;
calc_term := 1;
iii := glob_max_terms;
while calc_term <= iii do
array_y1_higher_work[2, iii] := array_y1_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_y1_higher_work[ord, iii];
iii := iii - 1
end do;
array_y1_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_y1_higher_work[1, iii] := array_y1_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_y1_higher_work[ord, iii];
iii := iii - 1
end do;
array_y1_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_y1_higher_work[1, iii] := array_y1_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_y1_higher_work[ord, iii];
iii := iii - 1
end do;
array_y1_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_y1[term_no] := array_y1_higher_work2[1, term_no];
ord := 1;
while ord <= order_diff do
array_y1_higher[ord, term_no] :=
array_y1_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 ( y2 , x , 5 ) = y1 ;");
omniout_str(INFO, "diff ( y1 , x , 1 ) = m1 * y2 ;");
omniout_int(INFO, "Iterations ", 32,
glob_iter, 4, " ");
prog_report(x_start, x_end);
if glob_html_log then
logstart(html_log_file);
logitem_str(html_log_file, "2013-05-26T03:47:21-05:00");
logitem_str(html_log_file, "Maple");
logitem_str(html_log_file,
"mtest7_sm_h");
logitem_str(html_log_file, "diff ( y2 , x , 5 ) = y1 ;");
logitem_float(html_log_file, x_start);
logitem_float(html_log_file, x_end);
logitem_float(html_log_file, array_x[1]);
logitem_float(html_log_file, glob_h);
logitem_integer(html_log_file, Digits);
logitem_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_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, " 189 | ");
logitem_str(html_log_file, "mtest7_sm_h diffeq.mxt");
logitem_str(html_log_file, "mtest7_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 ( y1 , x , 1 ) = m1 * y2 ;");
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);
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 13
> main();
##############ECHO OF PROBLEM#################
##############temp/mtest7_sm_hpostode.ode#################
diff ( y2 , x , 5 ) = y1 ;
diff ( y1 , x , 1 ) = m1 * y2 ;
!
#BEGIN FIRST INPUT BLOCK
Digits:=32;
max_terms:=30;
!
#END FIRST INPUT BLOCK
#BEGIN SECOND INPUT BLOCK
x_start := 0.0;
x_end := 0.5;
array_y1_init[0 + 1] := exact_soln_y1(x_start);
array_y2_init[0 + 1] := exact_soln_y2(x_start);
array_y2_init[1 + 1] := exact_soln_y2p(x_start);
array_y2_init[2 + 1] := exact_soln_y2pp(x_start);
array_y2_init[4 + 1] := exact_soln_y2pppp(x_start);
glob_look_poles := true;
glob_max_iter := 20;
glob_max_h := 0.0001;
#END SECOND INPUT BLOCK
#BEGIN OVERRIDE BLOCK
glob_desired_digits_correct:=10;
glob_display_interval:=0.01;
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_y1 := proc(x)
return( cos(x));
end;
exact_soln_y2 := proc(x)
return( sin(x));
end;
exact_soln_y2p := proc(x)
return( cos(x));
end;
exact_soln_y2pp := proc(x)
return( -sin(x));
end;
exact_soln_y2ppp := proc(x)
return( -cos(x));
end;
exact_soln_y2pppp := proc(x)
return( sin(x));
end;
#END USER DEF BLOCK
#######END OF ECHO OF PROBLEM#################
START of Optimize
min_size = 0
min_size = 1
glob_desired_digits_correct = 10
desired_abs_gbl_error = 1.0000000000000000000000000000000e-10
range = 0.5
estimated_steps = 500000
step_error = 2.0000000000000000000000000000000e-16
est_needed_step_err = 2.0000000000000000000000000000000e-16
opt_iter = 1
bytes used=4002120, alloc=3210676, time=0.45
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 2.4795962632247974600749435458479e-183
estimated_step_error = 2.4795962632247974600749435458479e-183
best_h = 2.0e-06
opt_iter = 2
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 1.6640288840366113417571481622600e-175
estimated_step_error = 1.6640288840366113417571481622600e-175
best_h = 4.00e-06
opt_iter = 3
bytes used=8003708, alloc=4521156, time=0.99
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 1.1167108807088472155483797704896e-167
estimated_step_error = 1.1167108807088472155483797704896e-167
best_h = 8.000e-06
opt_iter = 4
bytes used=12004436, alloc=4521156, time=1.54
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 7.4941198620810251385014903438135e-160
estimated_step_error = 7.4941198620810251385014903438135e-160
best_h = 1.60000e-05
opt_iter = 5
bytes used=16005868, alloc=4521156, time=2.09
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 5.0292187062409427300027767928031e-152
estimated_step_error = 5.0292187062409427300027767928031e-152
best_h = 3.200000e-05
opt_iter = 6
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 3.3750515418337937689954506741052e-144
estimated_step_error = 3.3750515418337937689954506741052e-144
best_h = 6.4000000e-05
opt_iter = 7
bytes used=20006676, alloc=4521156, time=2.63
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 2.2649587491391437664756311590725e-136
estimated_step_error = 2.2649587491391437664756311590725e-136
best_h = 0.000128
opt_iter = 8
bytes used=24008952, alloc=4521156, time=3.16
hn_div_ho = 0.5
hn_div_ho_2 = 0.25
hn_div_ho_3 = 0.125
max_estimated_step_error = 1.5199880866158891610086089076835e-128
estimated_step_error = 1.5199880866158891610086089076835e-128
best_h = 0.0001
START of Soultion
TOP MAIN SOLVE Loop
bytes used=28009684, alloc=4521156, time=3.70
x[1] = 0
y2[1] (analytic) = 0
y2[1] (numeric) = 0
absolute error = 0
relative error = -1 %
Correct digits = -1
h = 0.0001
y1[1] (analytic) = 1
y1[1] (numeric) = 1
absolute error = 0
relative error = 0 %
Correct digits = 32
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
NO COMPLEX POLE (six term test) for Equation 1
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=32011352, alloc=4521156, time=4.16
bytes used=36012172, alloc=4586680, time=4.59
bytes used=40014056, alloc=4652204, time=5.02
bytes used=44015076, alloc=4652204, time=5.46
bytes used=48016804, alloc=4652204, time=5.90
bytes used=52017828, alloc=4652204, time=6.34
bytes used=56020448, alloc=4717728, time=6.78
bytes used=60021188, alloc=4717728, time=7.22
bytes used=64023036, alloc=4717728, time=7.68
bytes used=68024424, alloc=4717728, time=8.12
bytes used=72026316, alloc=4717728, time=8.57
bytes used=76027944, alloc=4717728, time=9.01
bytes used=80029076, alloc=4717728, time=9.45
bytes used=84031680, alloc=4717728, time=9.89
bytes used=88033892, alloc=4717728, time=10.33
bytes used=92035012, alloc=4717728, time=10.77
bytes used=96036076, alloc=4717728, time=11.21
bytes used=100036908, alloc=4717728, time=11.66
bytes used=104039668, alloc=4717728, time=12.11
bytes used=108042064, alloc=4717728, time=12.55
bytes used=112043740, alloc=4717728, time=13.00
bytes used=116044784, alloc=4717728, time=13.45
bytes used=120046528, alloc=4717728, time=13.89
bytes used=124048188, alloc=4717728, time=14.34
bytes used=128051000, alloc=4717728, time=14.78
bytes used=132053688, alloc=4717728, time=15.22
bytes used=136054468, alloc=4717728, time=15.66
bytes used=140058232, alloc=4783252, time=16.12
bytes used=144058988, alloc=4783252, time=16.56
bytes used=148060676, alloc=4783252, time=17.01
bytes used=152061664, alloc=4783252, time=17.45
bytes used=156062544, alloc=4783252, time=17.89
bytes used=160064624, alloc=4783252, time=18.33
bytes used=164065712, alloc=4783252, time=18.77
bytes used=168067036, alloc=4783252, time=19.22
bytes used=172068296, alloc=4783252, time=19.68
bytes used=176069012, alloc=4783252, time=20.12
bytes used=180069648, alloc=4783252, time=20.58
bytes used=184071232, alloc=4783252, time=21.02
bytes used=188072860, alloc=4783252, time=21.47
bytes used=192073828, alloc=4783252, time=21.91
bytes used=196075412, alloc=4783252, time=22.36
bytes used=200076896, alloc=4783252, time=22.80
bytes used=204080188, alloc=4783252, time=23.24
bytes used=208082780, alloc=4783252, time=23.69
bytes used=212084756, alloc=4783252, time=24.13
bytes used=216086292, alloc=4783252, time=24.57
bytes used=220089544, alloc=4783252, time=25.03
bytes used=224092352, alloc=4783252, time=25.49
bytes used=228095040, alloc=4783252, time=25.93
bytes used=232096628, alloc=4783252, time=26.38
bytes used=236098272, alloc=4783252, time=26.82
bytes used=240099096, alloc=4783252, time=27.26
bytes used=244101360, alloc=4783252, time=27.71
bytes used=248104276, alloc=4783252, time=28.15
bytes used=252105048, alloc=4783252, time=28.60
bytes used=256108088, alloc=4783252, time=29.04
bytes used=260108784, alloc=4783252, time=29.50
bytes used=264110108, alloc=4783252, time=29.95
bytes used=268112152, alloc=4783252, time=30.39
bytes used=272113396, alloc=4783252, time=30.83
bytes used=276115656, alloc=4783252, time=31.29
bytes used=280117560, alloc=4783252, time=31.73
bytes used=284118644, alloc=4783252, time=32.17
bytes used=288119640, alloc=4783252, time=32.62
bytes used=292120320, alloc=4783252, time=33.06
bytes used=296122956, alloc=4783252, time=33.50
bytes used=300123712, alloc=4783252, time=33.96
bytes used=304124488, alloc=4783252, time=34.41
bytes used=308125148, alloc=4783252, time=34.86
bytes used=312128588, alloc=4783252, time=35.31
bytes used=316129924, alloc=4783252, time=35.75
bytes used=320130776, alloc=4783252, time=36.19
bytes used=324132320, alloc=4783252, time=36.63
bytes used=328133624, alloc=4783252, time=37.09
bytes used=332135244, alloc=4783252, time=37.53
bytes used=336136928, alloc=4783252, time=37.97
bytes used=340138984, alloc=4783252, time=38.42
bytes used=344139820, alloc=4783252, time=38.87
bytes used=348140588, alloc=4783252, time=39.18
bytes used=352141368, alloc=4783252, time=39.37
bytes used=356142100, alloc=4783252, time=39.55
bytes used=360143052, alloc=4783252, time=39.74
bytes used=364144380, alloc=4783252, time=39.92
bytes used=368145136, alloc=4783252, time=40.11
bytes used=372145908, alloc=4783252, time=40.30
bytes used=376146796, alloc=4783252, time=40.48
bytes used=380148380, alloc=4783252, time=40.68
bytes used=384149340, alloc=4783252, time=40.87
bytes used=388151024, alloc=4783252, time=41.05
bytes used=392151812, alloc=4783252, time=41.24
bytes used=396152856, alloc=4783252, time=41.42
bytes used=400154004, alloc=4783252, time=41.61
bytes used=404154876, alloc=4783252, time=41.80
bytes used=408157872, alloc=4783252, time=41.98
bytes used=412158952, alloc=4783252, time=42.17
bytes used=416160620, alloc=4783252, time=42.35
bytes used=420161388, alloc=4783252, time=42.55
bytes used=424162256, alloc=4783252, time=42.74
bytes used=428163176, alloc=4783252, time=42.92
bytes used=432166624, alloc=4783252, time=43.11
bytes used=436167772, alloc=4783252, time=43.30
bytes used=440171040, alloc=4783252, time=43.49
bytes used=444172016, alloc=4783252, time=43.68
bytes used=448173420, alloc=4783252, time=43.86
bytes used=452175032, alloc=4783252, time=44.05
bytes used=456177432, alloc=4783252, time=44.23
bytes used=460178068, alloc=4783252, time=44.42
bytes used=464180432, alloc=4783252, time=44.61
bytes used=468182408, alloc=4783252, time=44.80
TOP MAIN SOLVE Loop
bytes used=472184180, alloc=4783252, time=44.99
x[1] = 0.01
y2[1] (analytic) = 0.0099998333341666646825424382690997
y2[1] (numeric) = 0.010000000000833331349206349203844
absolute error = 1.666666666666666639109347443e-07
relative error = 0.001666694444768521908103321926109 %
Correct digits = 5
h = 0.0001
y1[1] (analytic) = 0.99995000041666527778025793375221
y1[1] (numeric) = 0.99994999999999861111359126984124
absolute error = 4.1666666666666666391097e-10
relative error = 4.1668750086809085515696330309230e-08 %
Correct digits = 10
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.01
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=476185680, alloc=4783252, time=45.18
bytes used=480188716, alloc=4783252, time=45.36
bytes used=484189540, alloc=4783252, time=45.55
bytes used=488190648, alloc=4783252, time=45.73
bytes used=492193808, alloc=4783252, time=45.92
bytes used=496195320, alloc=4783252, time=46.11
bytes used=500197520, alloc=4783252, time=46.30
bytes used=504198748, alloc=4783252, time=46.49
bytes used=508199684, alloc=4783252, time=46.68
bytes used=512200644, alloc=4783252, time=46.86
bytes used=516201892, alloc=4783252, time=47.05
bytes used=520204340, alloc=4783252, time=47.24
bytes used=524206804, alloc=4783252, time=47.42
bytes used=528208520, alloc=4783252, time=47.61
bytes used=532211164, alloc=4783252, time=47.80
bytes used=536213836, alloc=4783252, time=47.98
bytes used=540214628, alloc=4783252, time=48.17
bytes used=544215944, alloc=4783252, time=48.36
bytes used=548218216, alloc=4783252, time=48.55
bytes used=552220984, alloc=4783252, time=48.73
bytes used=556221892, alloc=4783252, time=48.93
bytes used=560222768, alloc=4783252, time=49.12
bytes used=564224148, alloc=4783252, time=49.30
bytes used=568225160, alloc=4783252, time=49.49
bytes used=572225900, alloc=4783252, time=49.68
bytes used=576227152, alloc=4783252, time=49.87
bytes used=580230300, alloc=4848776, time=50.06
bytes used=584231392, alloc=4848776, time=50.25
bytes used=588232872, alloc=4848776, time=50.44
bytes used=592234548, alloc=4848776, time=50.62
bytes used=596236428, alloc=4848776, time=50.81
bytes used=600237872, alloc=4848776, time=51.00
bytes used=604239460, alloc=4848776, time=51.18
bytes used=608240728, alloc=4848776, time=51.37
bytes used=612242256, alloc=4848776, time=51.56
bytes used=616244836, alloc=4848776, time=51.74
bytes used=620245904, alloc=4848776, time=51.94
bytes used=624248240, alloc=4848776, time=52.13
bytes used=628251004, alloc=4848776, time=52.31
bytes used=632253012, alloc=4848776, time=52.50
bytes used=636253868, alloc=4848776, time=52.69
bytes used=640254856, alloc=4848776, time=52.87
bytes used=644257196, alloc=4848776, time=53.06
bytes used=648260096, alloc=4848776, time=53.25
bytes used=652261316, alloc=4848776, time=53.44
bytes used=656263704, alloc=4848776, time=53.62
bytes used=660264920, alloc=4848776, time=53.81
bytes used=664265964, alloc=4848776, time=54.00
bytes used=668266908, alloc=4848776, time=54.19
bytes used=672268172, alloc=4848776, time=54.37
bytes used=676269280, alloc=4848776, time=54.56
bytes used=680270680, alloc=4848776, time=54.75
bytes used=684271716, alloc=4848776, time=54.94
bytes used=688273328, alloc=4848776, time=55.13
bytes used=692274248, alloc=4848776, time=55.32
bytes used=696276412, alloc=4848776, time=55.51
bytes used=700277120, alloc=4848776, time=55.70
bytes used=704278656, alloc=4848776, time=55.89
bytes used=708280428, alloc=4848776, time=56.08
bytes used=712281104, alloc=4848776, time=56.26
bytes used=716284608, alloc=4848776, time=56.45
bytes used=720286512, alloc=4848776, time=56.63
bytes used=724287684, alloc=4848776, time=56.82
bytes used=728288380, alloc=4848776, time=57.01
bytes used=732290760, alloc=4848776, time=57.20
bytes used=736294456, alloc=4848776, time=57.39
bytes used=740295444, alloc=4848776, time=57.58
bytes used=744297984, alloc=4848776, time=57.77
bytes used=748298716, alloc=4848776, time=57.96
bytes used=752300024, alloc=4848776, time=58.15
bytes used=756301900, alloc=4848776, time=58.33
bytes used=760303280, alloc=4848776, time=58.52
bytes used=764305372, alloc=4848776, time=58.71
bytes used=768307568, alloc=4848776, time=58.90
bytes used=772309508, alloc=4848776, time=59.09
bytes used=776311440, alloc=4848776, time=59.27
bytes used=780312164, alloc=4848776, time=59.46
bytes used=784314120, alloc=4848776, time=59.65
bytes used=788316748, alloc=4848776, time=59.84
bytes used=792319688, alloc=4848776, time=60.03
bytes used=796321380, alloc=4848776, time=60.22
bytes used=800323060, alloc=4848776, time=60.41
bytes used=804325552, alloc=4848776, time=60.59
bytes used=808328956, alloc=4848776, time=60.79
bytes used=812330988, alloc=4848776, time=60.98
bytes used=816331920, alloc=4848776, time=61.16
bytes used=820332728, alloc=4848776, time=61.35
bytes used=824334564, alloc=4848776, time=61.54
bytes used=828336068, alloc=4848776, time=61.73
bytes used=832337544, alloc=4848776, time=61.92
bytes used=836339624, alloc=4848776, time=62.11
bytes used=840341096, alloc=4848776, time=62.29
bytes used=844342104, alloc=4848776, time=62.48
bytes used=848343132, alloc=4848776, time=62.67
bytes used=852345328, alloc=4848776, time=62.85
bytes used=856346356, alloc=4848776, time=63.04
bytes used=860347328, alloc=4848776, time=63.23
bytes used=864350076, alloc=4848776, time=63.42
bytes used=868351880, alloc=4848776, time=63.61
bytes used=872354620, alloc=4848776, time=63.80
bytes used=876356688, alloc=4848776, time=63.99
bytes used=880359080, alloc=4848776, time=64.17
bytes used=884360228, alloc=4848776, time=64.36
bytes used=888361060, alloc=4848776, time=64.55
bytes used=892361788, alloc=4848776, time=64.73
bytes used=896364004, alloc=4848776, time=64.92
bytes used=900364760, alloc=4848776, time=65.11
bytes used=904365468, alloc=4848776, time=65.30
bytes used=908367636, alloc=4848776, time=65.49
bytes used=912369640, alloc=4848776, time=65.68
TOP MAIN SOLVE Loop
bytes used=916371156, alloc=4848776, time=65.87
x[1] = 0.02
y2[1] (analytic) = 0.019998666693333079366490294692975
y2[1] (numeric) = 0.020000000026666412698412693282037
absolute error = 1.333333333333331922398589062e-06
relative error = 0.0066671111318527196120884422772758 %
Correct digits = 5
h = 0.0001
y1[1] (analytic) = 0.99980000666657777841269559083748
y1[1] (numeric) = 0.99979999999991111174603174604028
absolute error = 6.66666666666666384479720e-09
relative error = 6.6680002222583734113208767255779e-07 %
Correct digits = 9
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.02
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=920372184, alloc=4848776, time=66.05
bytes used=924374724, alloc=4848776, time=66.24
bytes used=928375600, alloc=4848776, time=66.43
bytes used=932377384, alloc=4848776, time=66.61
bytes used=936380332, alloc=4848776, time=66.80
bytes used=940381472, alloc=4848776, time=67.00
bytes used=944382228, alloc=4848776, time=67.19
bytes used=948384996, alloc=4848776, time=67.37
bytes used=952387204, alloc=4848776, time=67.56
bytes used=956388472, alloc=4848776, time=67.75
bytes used=960389780, alloc=4848776, time=67.93
bytes used=964390840, alloc=4848776, time=68.12
bytes used=968392116, alloc=4848776, time=68.31
bytes used=972393116, alloc=4848776, time=68.50
bytes used=976394952, alloc=4848776, time=68.69
bytes used=980395752, alloc=4848776, time=68.88
bytes used=984396592, alloc=4848776, time=69.07
bytes used=988398120, alloc=4848776, time=69.25
bytes used=992399076, alloc=4848776, time=69.44
bytes used=996399776, alloc=4848776, time=69.63
bytes used=1000401608, alloc=4848776, time=69.81
bytes used=1004404424, alloc=4848776, time=70.00
bytes used=1008405220, alloc=4848776, time=70.19
bytes used=1012406528, alloc=4848776, time=70.38
bytes used=1016407636, alloc=4848776, time=70.56
bytes used=1020410580, alloc=4848776, time=70.76
bytes used=1024411440, alloc=4848776, time=70.95
bytes used=1028413448, alloc=4848776, time=71.14
bytes used=1032415104, alloc=4848776, time=71.33
bytes used=1036418124, alloc=4848776, time=71.51
bytes used=1040418836, alloc=4848776, time=71.70
bytes used=1044420016, alloc=4848776, time=71.89
bytes used=1048421360, alloc=4848776, time=72.08
bytes used=1052422320, alloc=4848776, time=72.27
bytes used=1056423716, alloc=4848776, time=72.45
bytes used=1060424760, alloc=4848776, time=72.65
bytes used=1064425524, alloc=4848776, time=72.84
bytes used=1068426452, alloc=4848776, time=73.03
bytes used=1072428548, alloc=4848776, time=73.22
bytes used=1076430360, alloc=4848776, time=73.41
bytes used=1080431556, alloc=4848776, time=73.59
bytes used=1084433944, alloc=4848776, time=73.78
bytes used=1088436436, alloc=4848776, time=73.97
bytes used=1092437580, alloc=4848776, time=74.15
bytes used=1096439116, alloc=4848776, time=74.34
bytes used=1100441044, alloc=4848776, time=74.53
bytes used=1104441812, alloc=4848776, time=74.72
bytes used=1108442904, alloc=4848776, time=74.91
bytes used=1112444840, alloc=4848776, time=75.10
bytes used=1116447320, alloc=4848776, time=75.29
bytes used=1120449044, alloc=4848776, time=75.47
bytes used=1124450820, alloc=4848776, time=75.66
bytes used=1128452204, alloc=4848776, time=75.85
bytes used=1132453976, alloc=4848776, time=76.03
bytes used=1136455388, alloc=4848776, time=76.22
bytes used=1140456236, alloc=4848776, time=76.41
bytes used=1144456932, alloc=4848776, time=76.60
bytes used=1148458628, alloc=4848776, time=76.79
bytes used=1152459332, alloc=4848776, time=76.98
bytes used=1156460356, alloc=4848776, time=77.17
bytes used=1160461968, alloc=4848776, time=77.36
bytes used=1164464472, alloc=4848776, time=77.54
bytes used=1168466780, alloc=4848776, time=77.73
bytes used=1172469692, alloc=4848776, time=77.92
bytes used=1176471104, alloc=4848776, time=78.10
bytes used=1180472296, alloc=4848776, time=78.30
bytes used=1184473080, alloc=4848776, time=78.49
bytes used=1188474836, alloc=4848776, time=78.68
bytes used=1192476036, alloc=4848776, time=78.87
bytes used=1196476848, alloc=4848776, time=79.06
bytes used=1200479624, alloc=4848776, time=79.24
bytes used=1204481600, alloc=4848776, time=79.43
bytes used=1208483928, alloc=4848776, time=79.62
bytes used=1212484696, alloc=4848776, time=79.80
bytes used=1216486060, alloc=4848776, time=79.99
bytes used=1220487036, alloc=4848776, time=80.18
bytes used=1224488032, alloc=4848776, time=80.37
bytes used=1228488864, alloc=4848776, time=80.56
bytes used=1232490724, alloc=4848776, time=80.75
bytes used=1236492580, alloc=4848776, time=80.93
bytes used=1240494976, alloc=4848776, time=81.12
bytes used=1244497156, alloc=4848776, time=81.31
bytes used=1248498904, alloc=4848776, time=81.50
bytes used=1252500000, alloc=4848776, time=81.68
bytes used=1256501552, alloc=4848776, time=81.87
bytes used=1260504340, alloc=4848776, time=82.06
bytes used=1264505496, alloc=4848776, time=82.25
bytes used=1268506256, alloc=4848776, time=82.44
bytes used=1272509376, alloc=4848776, time=82.62
bytes used=1276510084, alloc=4848776, time=82.81
bytes used=1280511412, alloc=4848776, time=83.00
bytes used=1284514884, alloc=4848776, time=83.19
bytes used=1288516528, alloc=4848776, time=83.38
bytes used=1292518936, alloc=4848776, time=83.56
bytes used=1296520316, alloc=4848776, time=83.75
bytes used=1300521544, alloc=4848776, time=83.95
bytes used=1304522712, alloc=4848776, time=84.13
bytes used=1308523688, alloc=4848776, time=84.33
bytes used=1312525572, alloc=4848776, time=84.52
bytes used=1316527468, alloc=4848776, time=84.70
bytes used=1320529464, alloc=4848776, time=84.89
bytes used=1324531116, alloc=4848776, time=85.08
bytes used=1328531768, alloc=4848776, time=85.27
bytes used=1332532752, alloc=4848776, time=85.46
bytes used=1336533656, alloc=4848776, time=85.64
bytes used=1340534612, alloc=4848776, time=85.84
bytes used=1344537864, alloc=4848776, time=86.02
bytes used=1348538512, alloc=4848776, time=86.21
bytes used=1352540464, alloc=4848776, time=86.40
bytes used=1356541416, alloc=4848776, time=86.59
TOP MAIN SOLVE Loop
bytes used=1360542876, alloc=4848776, time=86.78
x[1] = 0.03
y2[1] (analytic) = 0.029995500202495660768526341926262
y2[1] (numeric) = 0.030000000202495660714285270497694
absolute error = 4.499999999999945758928571432e-06
relative error = 0.015002250236272240878936150155728 %
Correct digits = 4
h = 0.0001
y1[1] (analytic) = 0.99955003374898751627215870646661
y1[1] (numeric) = 0.99954999999898751627232142968088
absolute error = 3.374999999999983727678573e-08
relative error = 3.3765193197397582485415540700247e-06 %
Correct digits = 8
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.03001
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=1364543676, alloc=4848776, time=86.97
bytes used=1368544624, alloc=4848776, time=87.15
bytes used=1372545808, alloc=4848776, time=87.34
bytes used=1376548080, alloc=4848776, time=87.53
bytes used=1380549444, alloc=4848776, time=87.73
bytes used=1384550132, alloc=4848776, time=87.92
bytes used=1388551204, alloc=4848776, time=88.11
bytes used=1392552960, alloc=4848776, time=88.29
bytes used=1396554440, alloc=4848776, time=88.48
bytes used=1400555720, alloc=4848776, time=88.67
bytes used=1404556492, alloc=4848776, time=88.85
bytes used=1408557224, alloc=4848776, time=89.04
bytes used=1412559420, alloc=4848776, time=89.23
bytes used=1416560816, alloc=4848776, time=89.42
bytes used=1420562976, alloc=4848776, time=89.61
bytes used=1424563688, alloc=4848776, time=89.79
bytes used=1428565116, alloc=4848776, time=89.98
bytes used=1432566376, alloc=4848776, time=90.17
bytes used=1436568252, alloc=4848776, time=90.36
bytes used=1440569252, alloc=4848776, time=90.56
bytes used=1444570384, alloc=4848776, time=90.75
bytes used=1448573100, alloc=4848776, time=90.93
bytes used=1452574468, alloc=4848776, time=91.12
bytes used=1456575272, alloc=4848776, time=91.31
bytes used=1460578484, alloc=4848776, time=91.50
bytes used=1464580776, alloc=4848776, time=91.69
bytes used=1468582432, alloc=4848776, time=91.88
bytes used=1472584376, alloc=4848776, time=92.06
bytes used=1476585840, alloc=4848776, time=92.25
bytes used=1480587356, alloc=4848776, time=92.43
bytes used=1484588864, alloc=4848776, time=92.62
bytes used=1488590128, alloc=4848776, time=92.81
bytes used=1492591024, alloc=4848776, time=93.00
bytes used=1496592212, alloc=4848776, time=93.19
bytes used=1500594360, alloc=4848776, time=93.38
bytes used=1504595324, alloc=4848776, time=93.57
bytes used=1508596628, alloc=4848776, time=93.76
bytes used=1512597444, alloc=4848776, time=93.94
bytes used=1516598648, alloc=4848776, time=94.13
bytes used=1520599764, alloc=4848776, time=94.32
bytes used=1524601544, alloc=4848776, time=94.51
bytes used=1528602436, alloc=4848776, time=94.70
bytes used=1532603212, alloc=4848776, time=94.88
bytes used=1536604148, alloc=4848776, time=95.07
bytes used=1540606408, alloc=4848776, time=95.26
bytes used=1544607976, alloc=4848776, time=95.45
bytes used=1548609500, alloc=4848776, time=95.64
bytes used=1552610976, alloc=4848776, time=95.83
bytes used=1556611836, alloc=4848776, time=96.02
bytes used=1560613672, alloc=4848776, time=96.21
bytes used=1564615472, alloc=4848776, time=96.40
bytes used=1568616256, alloc=4848776, time=96.59
bytes used=1572618596, alloc=4848776, time=96.78
bytes used=1576620632, alloc=4848776, time=96.96
bytes used=1580622584, alloc=4848776, time=97.16
bytes used=1584624800, alloc=4848776, time=97.35
bytes used=1588625832, alloc=4848776, time=97.54
bytes used=1592626588, alloc=4848776, time=97.72
bytes used=1596627476, alloc=4848776, time=97.91
bytes used=1600629984, alloc=4848776, time=98.10
bytes used=1604630880, alloc=4848776, time=98.29
bytes used=1608632352, alloc=4848776, time=98.48
bytes used=1612634364, alloc=4848776, time=98.66
bytes used=1616638008, alloc=4848776, time=98.85
bytes used=1620638808, alloc=4848776, time=99.04
bytes used=1624639620, alloc=4848776, time=99.23
bytes used=1628641628, alloc=4848776, time=99.41
bytes used=1632644392, alloc=4848776, time=99.60
bytes used=1636646344, alloc=4848776, time=99.79
bytes used=1640647964, alloc=4848776, time=99.97
bytes used=1644650616, alloc=4848776, time=100.16
bytes used=1648651324, alloc=4848776, time=100.35
bytes used=1652652876, alloc=4848776, time=100.53
bytes used=1656654564, alloc=4848776, time=100.72
bytes used=1660656136, alloc=4848776, time=100.91
bytes used=1664657848, alloc=4848776, time=101.11
bytes used=1668660692, alloc=4848776, time=101.29
bytes used=1672662388, alloc=4848776, time=101.48
bytes used=1676663660, alloc=4848776, time=101.67
bytes used=1680665260, alloc=4848776, time=101.86
bytes used=1684667416, alloc=4848776, time=102.04
bytes used=1688669244, alloc=4848776, time=102.24
bytes used=1692670264, alloc=4848776, time=102.43
bytes used=1696671700, alloc=4848776, time=102.61
bytes used=1700672820, alloc=4848776, time=102.81
bytes used=1704674244, alloc=4848776, time=103.00
bytes used=1708674936, alloc=4848776, time=103.18
bytes used=1712675860, alloc=4848776, time=103.37
bytes used=1716677552, alloc=4848776, time=103.56
bytes used=1720679464, alloc=4848776, time=103.75
bytes used=1724681336, alloc=4848776, time=103.93
bytes used=1728683296, alloc=4848776, time=104.12
bytes used=1732685236, alloc=4848776, time=104.31
bytes used=1736686000, alloc=4848776, time=104.50
bytes used=1740686820, alloc=4848776, time=104.69
bytes used=1744688200, alloc=4848776, time=104.88
bytes used=1748690892, alloc=4848776, time=105.06
bytes used=1752692208, alloc=4848776, time=105.25
bytes used=1756694244, alloc=4848776, time=105.44
bytes used=1760695468, alloc=4848776, time=105.63
bytes used=1764696888, alloc=4848776, time=105.81
bytes used=1768699868, alloc=4848776, time=106.00
bytes used=1772701544, alloc=4848776, time=106.18
bytes used=1776703324, alloc=4848776, time=106.37
bytes used=1780705472, alloc=4848776, time=106.56
bytes used=1784707180, alloc=4848776, time=106.75
bytes used=1788709496, alloc=4848776, time=106.94
bytes used=1792711152, alloc=4848776, time=107.13
bytes used=1796712580, alloc=4848776, time=107.32
bytes used=1800713392, alloc=4848776, time=107.51
TOP MAIN SOLVE Loop
bytes used=1804714772, alloc=4848776, time=107.69
x[1] = 0.04
y2[1] (analytic) = 0.039989334186634159452546811715915
y2[1] (numeric) = 0.040000000853300825396814889317327
absolute error = 1.0666666666665944268077601412e-05
relative error = 0.026673779105407358973449061597588 %
Correct digits = 4
h = 0.0001
y1[1] (analytic) = 0.99920010666097794031457075812913
y1[1] (numeric) = 0.99919999999431127365079368581867
absolute error = 1.0666666666666377707231046e-07
relative error = 1.0675205692592572879597779356961e-05 %
Correct digits = 7
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.04002
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=1808715936, alloc=4848776, time=107.88
bytes used=1812716992, alloc=4848776, time=108.07
bytes used=1816717972, alloc=4848776, time=108.27
bytes used=1820719220, alloc=4848776, time=108.46
bytes used=1824721388, alloc=4848776, time=108.65
bytes used=1828723224, alloc=4848776, time=108.83
bytes used=1832724060, alloc=4848776, time=109.02
bytes used=1836724824, alloc=4848776, time=109.21
bytes used=1840727172, alloc=4848776, time=109.40
bytes used=1844728680, alloc=4848776, time=109.58
bytes used=1848729356, alloc=4848776, time=109.77
bytes used=1852730264, alloc=4848776, time=109.95
bytes used=1856731620, alloc=4848776, time=110.14
bytes used=1860733128, alloc=4848776, time=110.33
bytes used=1864734896, alloc=4848776, time=110.52
bytes used=1868736516, alloc=4848776, time=110.71
bytes used=1872737656, alloc=4848776, time=110.89
bytes used=1876740460, alloc=4848776, time=111.08
bytes used=1880741828, alloc=4848776, time=111.27
bytes used=1884742680, alloc=4848776, time=111.46
bytes used=1888745196, alloc=4848776, time=111.64
bytes used=1892748056, alloc=4848776, time=111.83
bytes used=1896749416, alloc=4848776, time=112.02
bytes used=1900751368, alloc=4848776, time=112.20
bytes used=1904752636, alloc=4848776, time=112.40
bytes used=1908753564, alloc=4848776, time=112.58
bytes used=1912755444, alloc=4848776, time=112.77
bytes used=1916756660, alloc=4848776, time=112.96
bytes used=1920758784, alloc=4848776, time=113.15
bytes used=1924760384, alloc=4848776, time=113.33
bytes used=1928761912, alloc=4848776, time=113.52
bytes used=1932763392, alloc=4848776, time=113.71
bytes used=1936764820, alloc=4848776, time=113.89
bytes used=1940768828, alloc=4848776, time=114.09
bytes used=1944770000, alloc=4848776, time=114.28
bytes used=1948771088, alloc=4848776, time=114.47
bytes used=1952771732, alloc=4848776, time=114.66
bytes used=1956773144, alloc=4848776, time=114.85
bytes used=1960774940, alloc=4848776, time=115.04
bytes used=1964777048, alloc=4848776, time=115.23
bytes used=1968778640, alloc=4848776, time=115.41
bytes used=1972780732, alloc=4848776, time=115.60
bytes used=1976782204, alloc=4848776, time=115.79
bytes used=1980783480, alloc=4848776, time=115.98
bytes used=1984785816, alloc=4848776, time=116.17
bytes used=1988788572, alloc=4848776, time=116.36
bytes used=1992789752, alloc=4848776, time=116.55
bytes used=1996790752, alloc=4848776, time=116.74
bytes used=2000791812, alloc=4848776, time=116.92
bytes used=2004793104, alloc=4848776, time=117.11
bytes used=2008794356, alloc=4848776, time=117.30
bytes used=2012795204, alloc=4848776, time=117.49
bytes used=2016797048, alloc=4848776, time=117.67
bytes used=2020798876, alloc=4848776, time=117.86
bytes used=2024800088, alloc=4848776, time=118.06
bytes used=2028801136, alloc=4848776, time=118.24
bytes used=2032803028, alloc=4848776, time=118.43
bytes used=2036804004, alloc=4848776, time=118.62
bytes used=2040806844, alloc=4848776, time=118.81
bytes used=2044807784, alloc=4848776, time=118.99
bytes used=2048808536, alloc=4848776, time=119.18
bytes used=2052809636, alloc=4848776, time=119.37
bytes used=2056811464, alloc=4848776, time=119.56
bytes used=2060812980, alloc=4848776, time=119.75
bytes used=2064814256, alloc=4848776, time=119.94
bytes used=2068815748, alloc=4848776, time=120.14
bytes used=2072817124, alloc=4848776, time=120.33
bytes used=2076818296, alloc=4848776, time=120.52
bytes used=2080819280, alloc=4848776, time=120.71
bytes used=2084820344, alloc=4848776, time=120.90
bytes used=2088821480, alloc=4848776, time=121.08
bytes used=2092822516, alloc=4848776, time=121.27
bytes used=2096823572, alloc=4848776, time=121.46
bytes used=2100824988, alloc=4848776, time=121.64
bytes used=2104827624, alloc=4848776, time=121.84
bytes used=2108830324, alloc=4848776, time=122.03
bytes used=2112831352, alloc=4848776, time=122.21
bytes used=2116832188, alloc=4848776, time=122.40
bytes used=2120833068, alloc=4848776, time=122.59
bytes used=2124834144, alloc=4848776, time=122.78
bytes used=2128835432, alloc=4848776, time=122.97
bytes used=2132836328, alloc=4848776, time=123.15
bytes used=2136837348, alloc=4848776, time=123.34
bytes used=2140839476, alloc=4848776, time=123.53
bytes used=2144840488, alloc=4848776, time=123.72
bytes used=2148842364, alloc=4848776, time=123.92
bytes used=2152843356, alloc=4848776, time=124.11
bytes used=2156844732, alloc=4848776, time=124.29
bytes used=2160845944, alloc=4848776, time=124.48
bytes used=2164846620, alloc=4848776, time=124.67
bytes used=2168849244, alloc=4848776, time=124.86
bytes used=2172851452, alloc=4848776, time=125.05
bytes used=2176852420, alloc=4848776, time=125.23
bytes used=2180853436, alloc=4848776, time=125.42
bytes used=2184855096, alloc=4848776, time=125.61
bytes used=2188856916, alloc=4848776, time=125.80
bytes used=2192858184, alloc=4848776, time=126.00
bytes used=2196861304, alloc=4848776, time=126.19
bytes used=2200862992, alloc=4848776, time=126.37
bytes used=2204864424, alloc=4848776, time=126.56
bytes used=2208866532, alloc=4848776, time=126.75
bytes used=2212867872, alloc=4848776, time=126.94
bytes used=2216868576, alloc=4848776, time=127.13
bytes used=2220869560, alloc=4848776, time=127.31
bytes used=2224874112, alloc=4848776, time=127.51
bytes used=2228875152, alloc=4848776, time=127.70
bytes used=2232877484, alloc=4848776, time=127.89
bytes used=2236878916, alloc=4848776, time=128.07
bytes used=2240880476, alloc=4848776, time=128.26
bytes used=2244881512, alloc=4848776, time=128.45
TOP MAIN SOLVE Loop
bytes used=2248882216, alloc=4848776, time=128.63
x[1] = 0.05
y2[1] (analytic) = 0.04997916927067832879486500084549
y2[1] (numeric) = 0.050000002604011656745909423244101
absolute error = 2.0833333333327951044422398611e-05
relative error = 0.041684032842759565632910281657025 %
Correct digits = 4
h = 0.0001
y1[1] (analytic) = 0.99875026039496624656287081115652
y1[1] (numeric) = 0.99874999997829957992311558904452
absolute error = 2.6041666666663975522211200e-07
relative error = 2.6074252692925983122301663207335e-05 %
Correct digits = 7
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.05004
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=2252883648, alloc=4848776, time=128.82
bytes used=2256885096, alloc=4848776, time=129.00
bytes used=2260887300, alloc=4848776, time=129.19
bytes used=2264888412, alloc=4848776, time=129.38
bytes used=2268890364, alloc=4848776, time=129.57
bytes used=2272891728, alloc=4848776, time=129.76
bytes used=2276893572, alloc=4848776, time=129.95
bytes used=2280894684, alloc=4848776, time=130.13
bytes used=2284896816, alloc=4848776, time=130.32
bytes used=2288899440, alloc=4848776, time=130.51
bytes used=2292901184, alloc=4848776, time=130.70
bytes used=2296904544, alloc=4848776, time=130.89
bytes used=2300905928, alloc=4848776, time=131.08
bytes used=2304908992, alloc=4848776, time=131.26
bytes used=2308910660, alloc=4848776, time=131.46
bytes used=2312914356, alloc=4848776, time=131.64
bytes used=2316915148, alloc=4848776, time=131.84
bytes used=2320917500, alloc=4848776, time=132.03
bytes used=2324918540, alloc=4848776, time=132.22
bytes used=2328919560, alloc=4848776, time=132.40
bytes used=2332920652, alloc=4848776, time=132.59
bytes used=2336921644, alloc=4848776, time=132.77
bytes used=2340922536, alloc=4848776, time=132.96
bytes used=2344924676, alloc=4848776, time=133.15
bytes used=2348925760, alloc=4848776, time=133.34
bytes used=2352928312, alloc=4848776, time=133.53
bytes used=2356929724, alloc=4848776, time=133.72
bytes used=2360930932, alloc=4848776, time=133.91
bytes used=2364932660, alloc=4848776, time=134.10
bytes used=2368933432, alloc=4848776, time=134.28
bytes used=2372935284, alloc=4848776, time=134.47
bytes used=2376936380, alloc=4848776, time=134.66
bytes used=2380937068, alloc=4848776, time=134.85
bytes used=2384939336, alloc=4848776, time=135.03
bytes used=2388942368, alloc=4848776, time=135.23
bytes used=2392944712, alloc=4848776, time=135.42
bytes used=2396947600, alloc=4848776, time=135.61
bytes used=2400949656, alloc=4848776, time=135.79
bytes used=2404950544, alloc=4848776, time=135.98
bytes used=2408951240, alloc=4848776, time=136.17
bytes used=2412953764, alloc=4848776, time=136.36
bytes used=2416954912, alloc=4848776, time=136.55
bytes used=2420955564, alloc=4848776, time=136.73
bytes used=2424957960, alloc=4848776, time=136.92
bytes used=2428959096, alloc=4848776, time=137.11
bytes used=2432959828, alloc=4848776, time=137.30
bytes used=2436961488, alloc=4848776, time=137.49
bytes used=2440963116, alloc=4848776, time=137.68
bytes used=2444964136, alloc=4848776, time=137.87
bytes used=2448965884, alloc=4848776, time=138.06
bytes used=2452966884, alloc=4848776, time=138.25
bytes used=2456968964, alloc=4848776, time=138.43
bytes used=2460970600, alloc=4848776, time=138.62
bytes used=2464971832, alloc=4848776, time=138.81
bytes used=2468972536, alloc=4848776, time=139.00
bytes used=2472973612, alloc=4848776, time=139.19
bytes used=2476974752, alloc=4848776, time=139.38
bytes used=2480976428, alloc=4848776, time=139.57
bytes used=2484977628, alloc=4848776, time=139.76
bytes used=2488978460, alloc=4848776, time=139.95
bytes used=2492980316, alloc=4848776, time=140.13
bytes used=2496981036, alloc=4848776, time=140.32
bytes used=2500981920, alloc=4848776, time=140.51
bytes used=2504982696, alloc=4848776, time=140.70
bytes used=2508983388, alloc=4848776, time=140.89
bytes used=2512984432, alloc=4848776, time=141.08
bytes used=2516988032, alloc=4848776, time=141.27
bytes used=2520988796, alloc=4848776, time=141.46
bytes used=2524991424, alloc=4848776, time=141.65
bytes used=2528992552, alloc=4848776, time=141.84
bytes used=2532995856, alloc=4848776, time=142.03
bytes used=2536996504, alloc=4848776, time=142.21
bytes used=2540997620, alloc=4848776, time=142.40
bytes used=2544998476, alloc=4848776, time=142.59
bytes used=2548999280, alloc=4848776, time=142.78
bytes used=2553000516, alloc=4848776, time=142.97
bytes used=2557001992, alloc=4848776, time=143.16
bytes used=2561002984, alloc=4848776, time=143.34
bytes used=2565004528, alloc=4848776, time=143.53
bytes used=2569005972, alloc=4848776, time=143.72
bytes used=2573008864, alloc=4848776, time=143.92
bytes used=2577009720, alloc=4848776, time=144.10
bytes used=2581011332, alloc=4848776, time=144.29
bytes used=2585013704, alloc=4848776, time=144.47
bytes used=2589015180, alloc=4848776, time=144.66
bytes used=2593018176, alloc=4848776, time=144.86
bytes used=2597019336, alloc=4848776, time=145.04
bytes used=2601021680, alloc=4848776, time=145.23
bytes used=2605022916, alloc=4848776, time=145.42
bytes used=2609023644, alloc=4848776, time=145.61
bytes used=2613027320, alloc=4848776, time=145.80
bytes used=2617028184, alloc=4848776, time=145.98
bytes used=2621029044, alloc=4848776, time=146.17
bytes used=2625031096, alloc=4848776, time=146.36
bytes used=2629032948, alloc=4848776, time=146.55
bytes used=2633033748, alloc=4848776, time=146.74
bytes used=2637036260, alloc=4848776, time=146.93
bytes used=2641036964, alloc=4848776, time=147.12
bytes used=2645038628, alloc=4848776, time=147.31
bytes used=2649040572, alloc=4848776, time=147.50
bytes used=2653041604, alloc=4848776, time=147.69
bytes used=2657042484, alloc=4848776, time=147.87
bytes used=2661044968, alloc=4848776, time=148.06
bytes used=2665046208, alloc=4848776, time=148.25
bytes used=2669048448, alloc=4848776, time=148.44
bytes used=2673049420, alloc=4848776, time=148.63
bytes used=2677050148, alloc=4848776, time=148.82
bytes used=2681051572, alloc=4848776, time=149.01
bytes used=2685053676, alloc=4848776, time=149.20
bytes used=2689055520, alloc=4848776, time=149.39
TOP MAIN SOLVE Loop
bytes used=2693057124, alloc=4848776, time=149.58
x[1] = 0.06
y2[1] (analytic) = 0.059964006479444599199091137856983
y2[1] (numeric) = 0.060000006479444571427662566428767
absolute error = 3.5999999999972228571428571784e-05
relative error = 0.060036015125695232031251105824904 %
Correct digits = 4
h = 0.0001
y1[1] (analytic) = 0.99820053993520416554766168718284
y1[1] (numeric) = 0.99819999993520416571429025861143
absolute error = 5.3999999999983337142857141e-07
relative error = 5.4097346013746516125381703560973e-05 %
Correct digits = 7
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.06008
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=2697059888, alloc=4848776, time=149.77
bytes used=2701060616, alloc=4848776, time=149.96
bytes used=2705061448, alloc=4848776, time=150.15
bytes used=2709062940, alloc=4848776, time=150.34
bytes used=2713065524, alloc=4848776, time=150.53
bytes used=2717067584, alloc=4848776, time=150.72
bytes used=2721069340, alloc=4848776, time=150.91
bytes used=2725071856, alloc=4848776, time=151.10
bytes used=2729072804, alloc=4848776, time=151.29
bytes used=2733074452, alloc=4848776, time=151.48
bytes used=2737076520, alloc=4848776, time=151.66
bytes used=2741079028, alloc=4848776, time=151.85
bytes used=2745079940, alloc=4848776, time=152.04
bytes used=2749080716, alloc=4848776, time=152.23
bytes used=2753081588, alloc=4848776, time=152.42
bytes used=2757082304, alloc=4848776, time=152.61
bytes used=2761083424, alloc=4848776, time=152.80
bytes used=2765085272, alloc=4848776, time=152.99
bytes used=2769086280, alloc=4848776, time=153.18
bytes used=2773087440, alloc=4848776, time=153.37
bytes used=2777091320, alloc=4848776, time=153.56
bytes used=2781093016, alloc=4848776, time=153.75
bytes used=2785094344, alloc=4848776, time=153.93
bytes used=2789095464, alloc=4848776, time=154.12
bytes used=2793098032, alloc=4848776, time=154.31
bytes used=2797100240, alloc=4848776, time=154.50
bytes used=2801102256, alloc=4848776, time=154.69
bytes used=2805104736, alloc=4848776, time=154.88
bytes used=2809105744, alloc=4848776, time=155.07
bytes used=2813106484, alloc=4848776, time=155.25
bytes used=2817107280, alloc=4848776, time=155.44
bytes used=2821108408, alloc=4848776, time=155.63
bytes used=2825109228, alloc=4848776, time=155.82
bytes used=2829110264, alloc=4848776, time=156.01
bytes used=2833111236, alloc=4848776, time=156.20
bytes used=2837111988, alloc=4848776, time=156.39
bytes used=2841113856, alloc=4848776, time=156.58
bytes used=2845116496, alloc=4848776, time=156.77
bytes used=2849117692, alloc=4848776, time=156.96
bytes used=2853119620, alloc=4848776, time=157.15
bytes used=2857120556, alloc=4848776, time=157.34
bytes used=2861121828, alloc=4848776, time=157.52
bytes used=2865125052, alloc=4848776, time=157.71
bytes used=2869127044, alloc=4848776, time=157.90
bytes used=2873127988, alloc=4848776, time=158.09
bytes used=2877128840, alloc=4848776, time=158.28
bytes used=2881129996, alloc=4848776, time=158.47
bytes used=2885131116, alloc=4848776, time=158.66
bytes used=2889132120, alloc=4848776, time=158.84
bytes used=2893133524, alloc=4848776, time=159.03
bytes used=2897134260, alloc=4848776, time=159.22
bytes used=2901135824, alloc=4848776, time=159.40
bytes used=2905137360, alloc=4848776, time=159.59
bytes used=2909138300, alloc=4848776, time=159.78
bytes used=2913139024, alloc=4848776, time=159.97
bytes used=2917140076, alloc=4848776, time=160.16
bytes used=2921141104, alloc=4848776, time=160.35
bytes used=2925142140, alloc=4848776, time=160.53
bytes used=2929143224, alloc=4848776, time=160.72
bytes used=2933145244, alloc=4848776, time=160.91
bytes used=2937147000, alloc=4848776, time=161.10
bytes used=2941149260, alloc=4848776, time=161.28
bytes used=2945151960, alloc=4848776, time=161.47
bytes used=2949152664, alloc=4848776, time=161.66
bytes used=2953155272, alloc=4848776, time=161.85
bytes used=2957156252, alloc=4848776, time=162.04
bytes used=2961158912, alloc=4848776, time=162.24
bytes used=2965162972, alloc=4848776, time=162.42
bytes used=2969166908, alloc=4848776, time=162.61
bytes used=2973168332, alloc=4848776, time=162.80
bytes used=2977169092, alloc=4848776, time=162.99
bytes used=2981171548, alloc=4848776, time=163.18
bytes used=2985173284, alloc=4848776, time=163.37
bytes used=2989174296, alloc=4848776, time=163.56
bytes used=2993175072, alloc=4848776, time=163.75
bytes used=2997176112, alloc=4848776, time=163.93
bytes used=3001177212, alloc=4848776, time=164.13
bytes used=3005179360, alloc=4848776, time=164.31
bytes used=3009180592, alloc=4848776, time=164.50
bytes used=3013181744, alloc=4848776, time=164.69
bytes used=3017182816, alloc=4848776, time=164.87
bytes used=3021183800, alloc=4848776, time=165.06
bytes used=3025184848, alloc=4848776, time=165.25
bytes used=3029185668, alloc=4848776, time=165.43
bytes used=3033186700, alloc=4848776, time=165.62
bytes used=3037188592, alloc=4848776, time=165.81
bytes used=3041189756, alloc=4848776, time=166.00
bytes used=3045190788, alloc=4848776, time=166.19
bytes used=3049193100, alloc=4848776, time=166.38
bytes used=3053193984, alloc=4848776, time=166.56
bytes used=3057194844, alloc=4848776, time=166.75
bytes used=3061196892, alloc=4848776, time=166.94
bytes used=3065197828, alloc=4848776, time=167.12
bytes used=3069199896, alloc=4848776, time=167.31
bytes used=3073201600, alloc=4848776, time=167.50
bytes used=3077202488, alloc=4848776, time=167.69
bytes used=3081205324, alloc=4848776, time=167.88
bytes used=3085206672, alloc=4848776, time=168.07
bytes used=3089208084, alloc=4848776, time=168.26
bytes used=3093210140, alloc=4848776, time=168.44
bytes used=3097212332, alloc=4848776, time=168.63
bytes used=3101214288, alloc=4848776, time=168.82
bytes used=3105216336, alloc=4848776, time=169.01
bytes used=3109218284, alloc=4848776, time=169.20
bytes used=3113219840, alloc=4848776, time=169.38
bytes used=3117220676, alloc=4848776, time=169.57
bytes used=3121223692, alloc=4848776, time=169.76
bytes used=3125225324, alloc=4848776, time=169.95
bytes used=3129226548, alloc=4848776, time=170.14
bytes used=3133228140, alloc=4848776, time=170.33
TOP MAIN SOLVE Loop
bytes used=3137229820, alloc=4848776, time=170.52
x[1] = 0.07
y2[1] (analytic) = 0.069942847337532763976547306807887
y2[1] (numeric) = 0.070000014004199319439490979651023
absolute error = 5.7166666666555462943672843136e-05
relative error = 0.081733399257651695729992627279052 %
Correct digits = 4
h = 0.0001
y1[1] (analytic) = 0.99755100025327957462090838993974
y1[1] (numeric) = 0.9975499998366129087326677842299
absolute error = 1.00041666666588824060570984e-06
relative error = 0.00010028727016582421042440828706974 %
Correct digits = 6
h = 0.0001
NO INFO (given) for Equation 1
NO POLE (ratio test) for Equation 1
NO REAL POLE (three term test) for Equation 1
Radius of convergence (six term test) for eq 1 = 0.07012
Order of pole (six term test) = -9.5
NO INFO (given) for Equation 2
NO POLE (ratio test) for Equation 2
NO REAL POLE (three term test) for Equation 2
NO COMPLEX POLE (six term test) for Equation 2
bytes used=3141231220, alloc=4848776, time=170.70
bytes used=3145232596, alloc=4848776, time=170.89
bytes used=3149234140, alloc=4848776, time=171.08
bytes used=3153235436, alloc=4848776, time=171.27
bytes used=3157236388, alloc=4848776, time=171.45
bytes used=3161237320, alloc=4848776, time=171.64
bytes used=3165238184, alloc=4848776, time=171.83
bytes used=3169240344, alloc=4848776, time=172.02
bytes used=3173241128, alloc=4848776, time=172.21
bytes used=3177242716, alloc=4848776, time=172.40
bytes used=3181244676, alloc=4848776, time=172.58
bytes used=3185245492, alloc=4848776, time=172.77
bytes used=3189246648, alloc=4848776, time=172.96
bytes used=3193247700, alloc=4848776, time=173.15
bytes used=3197248336, alloc=4848776, time=173.34
bytes used=3201249172, alloc=4848776, time=173.52
bytes used=3205250408, alloc=4848776, time=173.72
bytes used=3209251580, alloc=4848776, time=173.91
bytes used=3213252636, alloc=4848776, time=174.09
bytes used=3217254556, alloc=4848776, time=174.28
bytes used=3221255212, alloc=4848776, time=174.47
bytes used=3225256052, alloc=4848776, time=174.66
bytes used=3229258376, alloc=4848776, time=174.85
bytes used=3233259356, alloc=4848776, time=175.03
bytes used=3237260168, alloc=4848776, time=175.22
bytes used=3241264564, alloc=4848776, time=175.41
bytes used=3245266656, alloc=4848776, time=175.60
bytes used=3249269080, alloc=4848776, time=175.79
bytes used=3253271364, alloc=4848776, time=175.98
bytes used=3257272812, alloc=4848776, time=176.17
bytes used=3261274448, alloc=4848776, time=176.35
bytes used=3265276056, alloc=4848776, time=176.54
bytes used=3269276920, alloc=4848776, time=176.73
bytes used=3273278324, alloc=4848776, time=176.92
bytes used=3277280340, alloc=4848776, time=177.10
bytes used=3281281276, alloc=4848776, time=177.29
bytes used=3285283068, alloc=4848776, time=177.48
bytes used=3289284532, alloc=4848776, time=177.67
bytes used=3293285432, alloc=4848776, time=177.86
bytes used=3297286964, alloc=4848776, time=178.05
bytes used=3301287760, alloc=4848776, time=178.24
bytes used=3305289804, alloc=4848776, time=178.42
bytes used=3309290632, alloc=4848776, time=178.61
bytes used=3313292580, alloc=4848776, time=178.80
bytes used=3317294500, alloc=4848776, time=178.99
bytes used=3321295204, alloc=4848776, time=179.18
bytes used=3325296300, alloc=4848776, time=179.37
bytes used=3329298792, alloc=4848776, time=179.56
bytes used=3333300372, alloc=4848776, time=179.75
bytes used=3337302304, alloc=4848776, time=179.94
bytes used=3341303524, alloc=4848776, time=180.13
bytes used=3345304664, alloc=4848776, time=180.32
Finished!
Maximum Time Reached before Solution Completed!
diff ( y2 , x , 5 ) = y1 ;
diff ( y1 , x , 1 ) = m1 * y2 ;
Iterations = 748
Total Elapsed Time = 3 Minutes 0 Seconds
Elapsed Time(since restart) = 2 Minutes 57 Seconds
Expected Time Remaining = 17 Minutes 3 Seconds
Optimized Time Remaining = 16 Minutes 44 Seconds
Expected Total Time = 19 Minutes 45 Seconds
Time to Timeout Unknown
Percent Done = 14.98 %
> quit
bytes used=3347820936, alloc=4848776, time=180.43