|\^/| Maple 18 (X86 64 WINDOWS) ._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2014 \ MAPLE / All rights reserved. Maple is a trademark of <____ ____> Waterloo Maple Inc. | Type ? for help. #BEGIN OUTFILE1 # before write maple top matter # before write_ats library and user def block #BEGIN ATS LIBRARY BLOCK # Begin Function number 2 > omniout_str := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > printf("%s\n",str); > fi;# end if 1; > end; omniout_str := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s\n", str) end if end proc # End Function number 2 # Begin Function number 3 > omniout_str_noeol := proc(iolevel,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > printf("%s",str); > fi;# end if 1; > end; omniout_str_noeol := proc(iolevel, str) global glob_iolevel; if iolevel <= glob_iolevel then printf("%s", str) end if end proc # End Function number 3 # Begin Function number 4 > omniout_labstr := proc(iolevel,label,str) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > print(label,str); > fi;# end if 1; > end; omniout_labstr := proc(iolevel, label, str) global glob_iolevel; if iolevel <= glob_iolevel then print(label, str) end if end proc # End Function number 4 # Begin Function number 5 > omniout_float := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 1 > if vallen = 4 then > printf("%-30s = %-42.4g %s \n",prelabel,value, postlabel); > else > printf("%-30s = %-42.32g %s \n",prelabel,value, postlabel); > fi;# end if 1; > fi;# end if 0; > end; omniout_float := proc(iolevel, prelabel, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then if vallen = 4 then printf("%-30s = %-42.4g %s \n", prelabel, value, postlabel) else printf("%-30s = %-42.32g %s \n", prelabel, value, postlabel) end if end if end proc # End Function number 5 # Begin Function number 6 > omniout_int := proc(iolevel,prelabel,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 0 > if vallen = 5 then # if number 1 > printf("%-30s = %-32d %s\n",prelabel,value, postlabel); > else > printf("%-30s = %-32d %s \n",prelabel,value, postlabel); > fi;# end if 1; > fi;# end if 0; > end; omniout_int := proc(iolevel, prelabel, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then if vallen = 5 then printf("%-30s = %-32d %s\n", prelabel, value, postlabel) else printf("%-30s = %-32d %s \n", prelabel, value, postlabel) end if end if end proc # End Function number 6 # Begin Function number 7 > omniout_float_arr := proc(iolevel,prelabel,elemnt,prelen,value,vallen,postlabel) > global glob_iolevel; > if (glob_iolevel >= iolevel) then # if number 0 > print(prelabel,"[",elemnt,"]",value, postlabel); > fi;# end if 0; > end; omniout_float_arr := proc( iolevel, prelabel, elemnt, prelen, value, vallen, postlabel) global glob_iolevel; if iolevel <= glob_iolevel then print(prelabel, "[", elemnt, "]", value, postlabel) end if end proc # End Function number 7 # Begin Function number 8 > 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 := int_trunc(secs_in / glob_sec_in_year); > sec_temp := int_trunc(secs_in) mod int_trunc(glob_sec_in_year); > days_int := int_trunc(sec_temp / glob_sec_in_day) ; > sec_temp := sec_temp mod int_trunc(glob_sec_in_day) ; > hours_int := int_trunc(sec_temp / glob_sec_in_hour); > sec_temp := sec_temp mod int_trunc(glob_sec_in_hour); > minutes_int := int_trunc(sec_temp / glob_sec_in_minute); > sec_int := sec_temp mod int_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," 0.0 Seconds"); > 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 := int_trunc(secs_in/glob_sec_in_year); sec_temp := int_trunc(secs_in) mod int_trunc(glob_sec_in_year); days_int := int_trunc(sec_temp/glob_sec_in_day); sec_temp := sec_temp mod int_trunc(glob_sec_in_day); hours_int := int_trunc(sec_temp/glob_sec_in_hour); sec_temp := sec_temp mod int_trunc(glob_sec_in_hour); minutes_int := int_trunc(sec_temp/glob_sec_in_minute); sec_int := sec_temp mod int_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, " 0.0 Seconds") end if; fprintf(fd, "\n") end proc # End Function number 8 # Begin Function number 9 > 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 := int_trunc(secs_in / glob_sec_in_year); > sec_temp := (int_trunc(secs_in) mod int_trunc(glob_sec_in_year)); > days_int := int_trunc(sec_temp / glob_sec_in_day) ; > sec_temp := (sec_temp mod int_trunc(glob_sec_in_day)) ; > hours_int := int_trunc(sec_temp / glob_sec_in_hour); > sec_temp := (sec_temp mod int_trunc(glob_sec_in_hour)); > minutes_int := int_trunc(sec_temp / glob_sec_in_minute); > sec_int := (sec_temp mod int_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(" 0.0 Seconds\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 := int_trunc(secs_in/glob_sec_in_year); sec_temp := int_trunc(secs_in) mod int_trunc(glob_sec_in_year); days_int := int_trunc(sec_temp/glob_sec_in_day); sec_temp := sec_temp mod int_trunc(glob_sec_in_day); hours_int := int_trunc(sec_temp/glob_sec_in_hour); sec_temp := sec_temp mod int_trunc(glob_sec_in_hour); minutes_int := int_trunc(sec_temp/glob_sec_in_minute); sec_int := sec_temp mod int_trunc(glob_sec_in_minute); if 0 < years_int then printf( " = %d Years %d Days %d Hours %d Minutes %d Seconds\n", years_int, days_int, hours_int, minutes_int, sec_int) elif 0 < days_int then printf( " = %d Days %d Hours %d Minutes %d Seconds\n", days_int, hours_int, minutes_int, sec_int) elif 0 < hours_int then printf( " = %d Hours %d Minutes %d Seconds\n", hours_int, minutes_int, sec_int) elif 0 < minutes_int then printf(" = %d Minutes %d Seconds\n", minutes_int, sec_int) else printf(" = %d Seconds\n", sec_int) end if else printf(" 0.0 Seconds\n") end if end proc # End Function number 9 # Begin Function number 10 > zero_ats_ar := proc(arr_a) > global ATS_MAX_TERMS; > local iii; > iii := 1; > while (iii <= ATS_MAX_TERMS) do # do number 1 > arr_a [iii] := glob__0; > iii := iii + 1; > od;# end do number 1 > end; zero_ats_ar := proc(arr_a) local iii; global ATS_MAX_TERMS; iii := 1; while iii <= ATS_MAX_TERMS do arr_a[iii] := glob__0; iii := iii + 1 end do end proc # End Function number 10 # Begin Function number 11 > ats := proc(mmm_ats,arr_a,arr_b,jjj_ats) > global ATS_MAX_TERMS; > local iii_ats, lll_ats,ma_ats, ret_ats; > ret_ats := glob__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; > if ((lll_ats <= ATS_MAX_TERMS and (iii_ats <= ATS_MAX_TERMS) )) then # if number 7 > ret_ats := ret_ats + c(arr_a[iii_ats])*c(arr_b[lll_ats]); > fi;# end if 7; > 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; global ATS_MAX_TERMS; ret_ats := glob__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; if lll_ats <= ATS_MAX_TERMS and iii_ats <= ATS_MAX_TERMS then ret_ats := ret_ats + c(arr_a[iii_ats])*c(arr_b[lll_ats]) end if; iii_ats := iii_ats + 1 end do end if; ret_ats end proc # End Function number 11 # Begin Function number 12 > att := proc(mmm_att,arr_aa,arr_bb,jjj_att) > global ATS_MAX_TERMS; > local al_att, iii_att,lll_att, ma_att, ret_att; > ret_att := glob__0; > if (jjj_att < mmm_att) then # if number 6 > ma_att := mmm_att + 2; > iii_att := jjj_att; > while ((iii_att < mmm_att) and (iii_att <= ATS_MAX_TERMS) ) do # do number 1 > lll_att := ma_att - iii_att; > al_att := (lll_att - 1); > if ((lll_att <= ATS_MAX_TERMS and (iii_att <= ATS_MAX_TERMS) )) then # if number 7 > ret_att := ret_att + c(arr_aa[iii_att])*c(arr_bb[lll_att])* c(al_att); > fi;# end if 7; > iii_att := iii_att + 1; > od;# end do number 1; > ret_att := ret_att / c(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 ATS_MAX_TERMS; ret_att := glob__0; if jjj_att < mmm_att then ma_att := mmm_att + 2; iii_att := jjj_att; while iii_att < mmm_att and iii_att <= ATS_MAX_TERMS do lll_att := ma_att - iii_att; al_att := lll_att - 1; if lll_att <= ATS_MAX_TERMS and iii_att <= ATS_MAX_TERMS then ret_att := ret_att + c(arr_aa[iii_att])*c(arr_bb[lll_att])*c(al_att) end if; iii_att := iii_att + 1 end do; ret_att := ret_att/c(mmm_att) end if; ret_att end proc # End Function number 12 # Begin Function number 13 > 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 13 # Begin Function number 14 > 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 14 # Begin Function number 15 > 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 15 # Begin Function number 16 > logitem_good_digits := proc(file,rel_error) > global glob_small_float,glob_prec; > local good_digits; > fprintf(file,""); > fprintf(file,"%d",glob_min_good_digits); > fprintf(file,""); > end; logitem_good_digits := proc(file, rel_error) local good_digits; global glob_small_float, glob_prec; fprintf(file, ""); fprintf(file, "%d", glob_min_good_digits); fprintf(file, "") end proc # End Function number 16 # Begin Function number 17 > log_revs := proc(file,revs) > fprintf(file,revs); > end; log_revs := proc(file, revs) fprintf(file, revs) end proc # End Function number 17 # Begin Function number 18 > 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 18 # Begin Function number 19 > logitem_h_reason := proc(file) > global glob_h_reason; > fprintf(file,""); > if (glob_h_reason = 1) then # if number 6 > fprintf(file,"Max H"); > elif > (glob_h_reason = 2) then # if number 7 > fprintf(file,"Display Interval"); > elif > (glob_h_reason = 3) then # if number 8 > fprintf(file,"Optimal"); > elif > (glob_h_reason = 4) then # if number 9 > fprintf(file,"Pole Accuracy"); > elif > (glob_h_reason = 5) then # if number 10 > fprintf(file,"Min H (Pole)"); > elif > (glob_h_reason = 6) then # if number 11 > fprintf(file,"Pole"); > elif > (glob_h_reason = 7) then # if number 12 > fprintf(file,"Opt Iter"); > else > fprintf(file,"Impossible"); > fi;# end if 12 > fprintf(file,""); > end; logitem_h_reason := proc(file) global glob_h_reason; fprintf(file, ""); if glob_h_reason = 1 then fprintf(file, "Max H") elif glob_h_reason = 2 then fprintf(file, "Display Interval") elif glob_h_reason = 3 then fprintf(file, "Optimal") elif glob_h_reason = 4 then fprintf(file, "Pole Accuracy") elif glob_h_reason = 5 then fprintf(file, "Min H (Pole)") elif glob_h_reason = 6 then fprintf(file, "Pole") elif glob_h_reason = 7 then fprintf(file, "Opt Iter") else fprintf(file, "Impossible") end if; fprintf(file, "") end proc # End Function number 19 # Begin Function number 20 > logstart := proc(file) > fprintf(file,""); > end; logstart := proc(file) fprintf(file, "") end proc # End Function number 20 # Begin Function number 21 > logend := proc(file) > fprintf(file,"\n"); > end; logend := proc(file) fprintf(file, "\n") end proc # End Function number 21 # Begin Function number 22 > chk_data := proc() > global glob_max_iter,ALWAYS, ATS_MAX_TERMS; > local errflag; > errflag := false; > if (glob_max_iter < 2) then # if number 12 > omniout_str(ALWAYS,"Illegal max_iter"); > errflag := true; > fi;# end if 12; > if (errflag) then # if number 12 > quit; > fi;# end if 12 > end; chk_data := proc() local errflag; global glob_max_iter, ALWAYS, ATS_MAX_TERMS; errflag := false; 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 22 # Begin Function number 23 > comp_expect_sec := proc(t_end2,t_start2,t2,clock_sec2) > global glob_small_float; > local ms2, rrr, sec_left, sub1, sub2; > ; > ms2 := c(clock_sec2); > sub1 := c(t_end2-t_start2); > sub2 := c(t2-t_start2); > if (sub1 = glob__0) then # if number 12 > sec_left := glob__0; > else > if (sub2 > glob__0) then # if number 13 > rrr := (sub1/sub2); > sec_left := rrr * c(ms2) - c(ms2); > else > sec_left := glob__0; > fi;# end if 13 > fi;# end if 12; > 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 := c(clock_sec2); sub1 := c(t_end2 - t_start2); sub2 := c(t2 - t_start2); if sub1 = glob__0 then sec_left := glob__0 else if glob__0 < sub2 then rrr := sub1/sub2; sec_left := rrr*c(ms2) - c(ms2) else sec_left := glob__0 end if end if; sec_left end proc # End Function number 23 # Begin Function number 24 > 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 12 > rrr := (glob__100*sub2)/sub1; > else > rrr := 0.0; > fi;# end if 12; > 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 := glob__100*sub2/sub1 else rrr := 0. end if; rrr end proc # End Function number 24 # Begin Function number 25 > comp_rad_from_ratio := proc(term1,term2,last_no) > #TOP TWO TERM RADIUS ANALYSIS > global glob_h,glob_larger_float; > local ret; > if (float_abs(term2) > glob__0) then # if number 12 > ret := float_abs(term1 * glob_h / term2); > else > ret := glob_larger_float; > fi;# end if 12; > ret; > #BOTTOM TWO TERM RADIUS ANALYSIS > end; comp_rad_from_ratio := proc(term1, term2, last_no) local ret; global glob_h, glob_larger_float; if glob__0 < float_abs(term2) then ret := float_abs(term1*glob_h/term2) else ret := glob_larger_float end if; ret end proc # End Function number 25 # Begin Function number 26 > comp_ord_from_ratio := proc(term1,term2,last_no) > #TOP TWO TERM ORDER ANALYSIS > global glob_h,glob_larger_float; > local ret; > if (float_abs(term2) > glob__0) then # if number 12 > ret := glob__1 + float_abs(term2) * c(last_no) * ln(float_abs(term1 * glob_h / term2))/ln(c(last_no)); > else > ret := glob_larger_float; > fi;# end if 12; > ret; > #BOTTOM TWO TERM ORDER ANALYSIS > end; comp_ord_from_ratio := proc(term1, term2, last_no) local ret; global glob_h, glob_larger_float; if glob__0 < float_abs(term2) then ret := glob__1 + float_abs(term2)* c(last_no)*ln(float_abs(term1*glob_h/term2))/ln(c(last_no)) else ret := glob_larger_float end if; ret end proc # End Function number 26 # Begin Function number 27 > c := proc(in_val) > #To Force Conversion when needed > local ret; > ret := evalf(in_val); > ret; > #End Conversion > end; c := proc(in_val) local ret; ret := evalf(in_val); ret end proc # End Function number 27 # Begin Function number 28 > comp_rad_from_three_terms := proc(term1,term2,term3,last_no) > #TOP THREE TERM RADIUS ANALYSIS > global glob_h,glob_larger_float; > local ret,temp; > temp := float_abs(term2*term2*c(last_no)+glob__m2*term2*term2-term1*term3*c(last_no)+term1*term3); > if (float_abs(temp) > glob__0) then # if number 12 > ret := float_abs((term2*glob_h*term1)/(temp)); > else > ret := glob_larger_float; > fi;# end if 12; > ret; > #BOTTOM THREE TERM RADIUS ANALYSIS > end; comp_rad_from_three_terms := proc(term1, term2, term3, last_no) local ret, temp; global glob_h, glob_larger_float; temp := float_abs(term2*term2*c(last_no) + glob__m2*term2*term2 - term1*term3*c(last_no) + term1*term3); if glob__0 < float_abs(temp) then ret := float_abs(term2*glob_h*term1/temp) else ret := glob_larger_float end if; ret end proc # End Function number 28 # Begin Function number 29 > comp_ord_from_three_terms := proc(term1,term2,term3,last_no) > #TOP THREE TERM ORDER ANALYSIS > local ret; > ret := float_abs((glob__4*term1*term3*c(last_no)-glob__3*term1*term3-glob__4*term2*term2*c(last_no)+glob__4*term2*term2+term2*term2*c(last_no*last_no)-term1*term3*c(last_no*last_no))/(term2*term2*c(last_no)-glob__2*term2*term2-term1*term3*c(last_no)+term1*term3)); > ret; > #TOP THREE TERM ORDER ANALYSIS > end; comp_ord_from_three_terms := proc(term1, term2, term3, last_no) local ret; ret := float_abs((glob__4*term1*term3*c(last_no) - glob__3*term1*term3 - glob__4*term2*term2*c(last_no) + glob__4*term2*term2 + term2*term2*c(last_no*last_no) - term1*term3*c(last_no*last_no)) /(term2*term2*c(last_no) - glob__2*term2*term2 - term1*term3*c(last_no) + term1*term3)); ret end proc # End Function number 29 # Begin Function number 30 > comp_rad_from_six_terms := proc(term1,term2,term3,term4,term5,term6,last_no) > #TOP SIX TERM RADIUS ANALYSIS > global glob_h,glob_larger_float,glob_six_term_ord_save; > local ret,rm0,rm1,rm2,rm3,rm4,nr1,nr2,dr1,dr2,ds2,rad_c,ord_no,ds1,rcs; > if ((term5 <> glob__0) and (term4 <> glob__0) and (term3 <> glob__0) and (term2 <> glob__0) and (term1 <> glob__0)) then # if number 12 > rm0 := term6/term5; > rm1 := term5/term4; > rm2 := term4/term3; > rm3 := term3/term2; > rm4 := term2/term1; > nr1 := c(last_no-1)*rm0 - glob__2*c(last_no-2)*rm1 + c(last_no-3)*rm2; > nr2 := c(last_no-2)*rm1 - glob__2*c(last_no-3)*rm2 + c(last_no-4)*rm3; > dr1 := glob__m1/rm1 + glob__2/rm2 - glob__1/rm3; > dr2 := glob__m1/rm2 + glob__2/rm3 - glob__1/rm4; > ds1 := glob__3/rm1 - glob__8/rm2 + glob__5/rm3; > ds2 := glob__3/rm2 - glob__8/rm3 + glob__5/rm4; > if ((float_abs(nr1 * dr2 - nr2 * dr1) = glob__0) or (float_abs(dr1) = glob__0)) then # if number 13 > rad_c := glob_larger_float; > ord_no := glob_larger_float; > else > if (float_abs(nr1*dr2 - nr2 * dr1) > glob__0) then # if number 14 > 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)/(glob__2*dr1) -c(last_no)/glob__2; > if (float_abs(rcs) <> glob__0) then # if number 15 > if (rcs > glob__0) then # if number 16 > rad_c := sqrt(rcs) * float_abs(glob_h); > else > rad_c := glob_larger_float; > ord_no := glob_larger_float; > fi;# end if 16 > else > rad_c := glob_larger_float; > ord_no := glob_larger_float; > fi;# end if 15 > else > rad_c := glob_larger_float; > ord_no := glob_larger_float; > fi;# end if 14 > fi;# end if 13 > else > rad_c := glob_larger_float; > ord_no := glob_larger_float; > fi;# end if 12; > glob_six_term_ord_save := ord_no; > rad_c; > #BOTTOM SIX TERM RADIUS ANALYSIS > end; comp_rad_from_six_terms := proc( term1, term2, term3, term4, term5, term6, last_no) local ret, rm0, rm1, rm2, rm3, rm4, nr1, nr2, dr1, dr2, ds2, rad_c, ord_no, ds1, rcs; global glob_h, glob_larger_float, glob_six_term_ord_save; if term5 <> glob__0 and term4 <> glob__0 and term3 <> glob__0 and term2 <> glob__0 and term1 <> glob__0 then rm0 := term6/term5; rm1 := term5/term4; rm2 := term4/term3; rm3 := term3/term2; rm4 := term2/term1; nr1 := c(last_no - 1)*rm0 - glob__2*c(last_no - 2)*rm1 + c(last_no - 3)*rm2; nr2 := c(last_no - 2)*rm1 - glob__2*c(last_no - 3)*rm2 + c(last_no - 4)*rm3; dr1 := glob__m1/rm1 + glob__2/rm2 - glob__1/rm3; dr2 := glob__m1/rm2 + glob__2/rm3 - glob__1/rm4; ds1 := glob__3/rm1 - glob__8/rm2 + glob__5/rm3; ds2 := glob__3/rm2 - glob__8/rm3 + glob__5/rm4; if float_abs(nr1*dr2 - nr2*dr1) = glob__0 or float_abs(dr1) = glob__0 then rad_c := glob_larger_float; ord_no := glob_larger_float else if glob__0 < float_abs(nr1*dr2 - nr2*dr1) then rcs := (ds1*dr2 - ds2*dr1 + dr1*dr2)/(nr1*dr2 - nr2*dr1); ord_no := (rcs*nr1 - ds1)/(glob__2*dr1) - c(last_no)/glob__2; if float_abs(rcs) <> glob__0 then if glob__0 < rcs then rad_c := sqrt(rcs)*float_abs(glob_h) else rad_c := glob_larger_float; ord_no := glob_larger_float end if else rad_c := glob_larger_float; ord_no := glob_larger_float end if else rad_c := glob_larger_float; ord_no := glob_larger_float end if end if else rad_c := glob_larger_float; ord_no := glob_larger_float end if; glob_six_term_ord_save := ord_no; rad_c end proc # End Function number 30 # Begin Function number 31 > comp_ord_from_six_terms := proc(term1,term2,term3,term4,term5,term6,last_no) > global glob_six_term_ord_save; > #TOP SIX TERM ORDER ANALYSIS > #TOP SAVED FROM SIX TERM RADIUS ANALYSIS > glob_six_term_ord_save; > #BOTTOM SIX TERM ORDER ANALYSIS > end; comp_ord_from_six_terms := proc( term1, term2, term3, term4, term5, term6, last_no) global glob_six_term_ord_save; glob_six_term_ord_save end proc # End Function number 31 # Begin Function number 32 > factorial_2 := proc(nnn) > ret := nnn!; > ret;; > end; Warning, `ret` is implicitly declared local to procedure `factorial_2` factorial_2 := proc(nnn) local ret; ret := nnn!; ret end proc # End Function number 32 # Begin Function number 33 > factorial_1 := proc(nnn) > global ATS_MAX_TERMS,array_fact_1; > local ret; > if (nnn <= ATS_MAX_TERMS) then # if number 12 > if (array_fact_1[nnn] = 0) then # if number 13 > ret := factorial_2(nnn); > array_fact_1[nnn] := ret; > else > ret := array_fact_1[nnn]; > fi;# end if 13; > else > ret := factorial_2(nnn); > fi;# end if 12; > ret; > end; factorial_1 := proc(nnn) local ret; global ATS_MAX_TERMS, array_fact_1; if nnn <= ATS_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 33 # Begin Function number 34 > factorial_3 := proc(mmm,nnn) > global ATS_MAX_TERMS,array_fact_2; > local ret; > if ((nnn <= ATS_MAX_TERMS) and (mmm <= ATS_MAX_TERMS)) then # if number 12 > if (array_fact_2[mmm,nnn] = 0) then # if number 13 > ret := factorial_1(mmm)/factorial_1(nnn); > array_fact_2[mmm,nnn] := ret; > else > ret := array_fact_2[mmm,nnn]; > fi;# end if 13; > else > ret := factorial_2(mmm)/factorial_2(nnn); > fi;# end if 12; > ret; > end; factorial_3 := proc(mmm, nnn) local ret; global ATS_MAX_TERMS, array_fact_2; if nnn <= ATS_MAX_TERMS and mmm <= ATS_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 34 # Begin Function number 35 > convfloat := proc(mmm) > (mmm); > end; convfloat := proc(mmm) mmm end proc # End Function number 35 # Begin Function number 36 > elapsed_time_seconds := proc() > time(); > end; elapsed_time_seconds := proc() time() end proc # End Function number 36 # Begin Function number 37 > float_abs := proc(x) > abs(x); > end; float_abs := proc(x) abs(x) end proc # End Function number 37 # Begin Function number 38 > expt := proc(x,y) > x^y; > end; expt := proc(x, y) x^y end proc # End Function number 38 # Begin Function number 39 > neg := proc(x) > -x; > end; neg := proc(x) -x end proc # End Function number 39 # Begin Function number 40 > int_trunc := proc(x) > trunc(x); > end; int_trunc := proc(x) trunc(x) end proc # End Function number 40 # Begin Function number 41 > 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,ATS_MAX_TERMS; > omniout_float(ALWAYS,"glob_desired_digits_correct",32,glob_desired_digits_correct,32,""); > desired_abs_gbl_error := expt(glob__10,c( -glob_desired_digits_correct)) * c(float_abs(c(estimated_answer))); > omniout_float(ALWAYS,"estimated_h",32,estimated_h,32,""); > omniout_float(ALWAYS,"estimated_answer",32,estimated_answer,32,""); > 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 := (c(float_abs(desired_abs_gbl_error) /sqrt(c( estimated_steps))/c(ATS_MAX_TERMS))); > 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, ATS_MAX_TERMS; omniout_float(ALWAYS, "glob_desired_digits_correct", 32, glob_desired_digits_correct, 32, ""); desired_abs_gbl_error := expt(glob__10, c(-glob_desired_digits_correct))* c(float_abs(c(estimated_answer))); omniout_float(ALWAYS, "estimated_h", 32, estimated_h, 32, ""); omniout_float(ALWAYS, "estimated_answer", 32, estimated_answer, 32, "") ; 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 := c(float_abs(desired_abs_gbl_error)/( sqrt(c(estimated_steps))*c(ATS_MAX_TERMS))); omniout_float(ALWAYS, "step_error", 32, step_error, 32, ""); step_error end proc # End Function number 41 #END ATS LIBRARY BLOCK #BEGIN USER FUNCTION BLOCK #BEGIN BLOCK 3 #BEGIN USER DEF BLOCK > exact_soln_y1 := proc(x) > return( cos(c(x)) ); > end; exact_soln_y1 := proc(x) return cos(c(x)) end proc > exact_soln_y2 := proc(x) > return( sin(c(x)) + c(10.0) * c(x) + c(10.0)); > end; exact_soln_y2 := proc(x) return sin(c(x)) + c(10.0)*c(x) + c(10.0) end proc > exact_soln_y2p := proc(x) > return( cos(c(x)) + c(10.0)); > end; exact_soln_y2p := proc(x) return cos(c(x)) + c(10.0) end proc > exact_soln_y2pp := proc(x) > return( neg(sin(c(x)))); > end; exact_soln_y2pp := proc(x) return neg(sin(c(x))) end proc > exact_soln_y2ppp := proc(x) > return( neg(cos(c(x)))); > end; exact_soln_y2ppp := proc(x) return neg(cos(c(x))) end proc > exact_soln_y2pppp := proc(x) > return( sin(c(x))); > end; exact_soln_y2pppp := proc(x) return sin(c(x)) end proc #END USER DEF BLOCK #END BLOCK 3 #END USER FUNCTION BLOCK # before write_aux functions # Begin Function number 2 > display_poles := proc() > local rad_given; > global ALWAYS,glob_display_flag,glob_larger_float, glob_large_float, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_guess_error_ord, glob_guess_error_rc, glob_type_given_pole,array_given_rad_poles,array_given_ord_poles,array_rad_test_poles,array_ord_test_poles,glob_least_3_sing,glob_least_6_sing,glob_least_given_sing,glob_least_ratio_sing,array_x ; > if ((glob_type_given_pole = 1) or (glob_type_given_pole = 2)) then # if number 1 > rad_given := sqrt((array_x[1] - array_given_rad_poles[1,1]) * (array_x[1] - array_given_rad_poles[1,1]) + array_given_rad_poles[1,2] * array_given_rad_poles[1,2]); > 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," "); > if (rad_given < glob_least_given_sing) then # if number 2 > glob_least_given_sing := rad_given; > fi;# end if 2; > elif > (glob_type_given_pole = 3) then # if number 2 > omniout_str(ALWAYS,"NO POLE (given) for Equation 1"); > elif > (glob_type_given_pole = 5) then # if number 3 > omniout_str(ALWAYS,"SOME POLE (given) for Equation 1"); > else > omniout_str(ALWAYS,"NO INFO (given) for Equation 1"); > fi;# end if 3; > if (array_rad_test_poles[1,1] < glob_large_float) then # if number 3 > omniout_float(ALWAYS,"Radius of convergence (ratio test) for eq 1 ",4,array_rad_test_poles[1,1],4," "); > if (array_rad_test_poles[1,1]< glob_least_ratio_sing) then # if number 4 > glob_least_ratio_sing := array_rad_test_poles[1,1]; > fi;# end if 4; > omniout_float(ALWAYS,"Order of pole (ratio test) ",4, array_ord_test_poles[1,1],4," "); > else > omniout_str(ALWAYS,"NO POLE (ratio test) for Equation 1"); > fi;# end if 3; > if ((array_rad_test_poles[1,2] > glob__small) and (array_rad_test_poles[1,2] < glob_large_float)) then # if number 3 > omniout_float(ALWAYS,"Radius of convergence (three term test) for eq 1 ",4,array_rad_test_poles[1,2],4," "); > if (array_rad_test_poles[1,2]< glob_least_3_sing) then # if number 4 > glob_least_3_sing := array_rad_test_poles[1,2]; > fi;# end if 4; > omniout_float(ALWAYS,"Order of pole (three term test) ",4, array_ord_test_poles[1,2],4," "); > else > omniout_str(ALWAYS,"NO REAL POLE (three term test) for Equation 1"); > fi;# end if 3; > if ((array_rad_test_poles[1,3] > glob__small) and (array_rad_test_poles[1,3] < glob_large_float)) then # if number 3 > omniout_float(ALWAYS,"Radius of convergence (six term test) for eq 1 ",4,array_rad_test_poles[1,3],4," "); > if (array_rad_test_poles[1,3]< glob_least_6_sing) then # if number 4 > glob_least_6_sing := array_rad_test_poles[1,3]; > fi;# end if 4; > omniout_float(ALWAYS,"Order of pole (six term test) ",4, array_ord_test_poles[1,3],4," "); > else > omniout_str(ALWAYS,"NO COMPLEX POLE (six term test) for Equation 1"); > fi;# end if 3 > ; > if ((glob_type_given_pole = 1) or (glob_type_given_pole = 2)) then # if number 3 > rad_given := sqrt((array_x[1] - array_given_rad_poles[2,1]) * (array_x[1] - array_given_rad_poles[2,1]) + array_given_rad_poles[2,2] * array_given_rad_poles[2,2]); > 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," "); > if (rad_given < glob_least_given_sing) then # if number 4 > glob_least_given_sing := rad_given; > fi;# end if 4; > elif > (glob_type_given_pole = 3) then # if number 4 > omniout_str(ALWAYS,"NO POLE (given) for Equation 2"); > elif > (glob_type_given_pole = 5) then # if number 5 > omniout_str(ALWAYS,"SOME POLE (given) for Equation 2"); > else > omniout_str(ALWAYS,"NO INFO (given) for Equation 2"); > fi;# end if 5; > if (array_rad_test_poles[2,1] < glob_large_float) then # if number 5 > omniout_float(ALWAYS,"Radius of convergence (ratio test) for eq 2 ",4,array_rad_test_poles[2,1],4," "); > if (array_rad_test_poles[2,1]< glob_least_ratio_sing) then # if number 6 > glob_least_ratio_sing := array_rad_test_poles[2,1]; > fi;# end if 6; > omniout_float(ALWAYS,"Order of pole (ratio test) ",4, array_ord_test_poles[2,1],4," "); > else > omniout_str(ALWAYS,"NO POLE (ratio test) for Equation 2"); > fi;# end if 5; > if ((array_rad_test_poles[2,2] > glob__small) and (array_rad_test_poles[2,2] < glob_large_float)) then # if number 5 > omniout_float(ALWAYS,"Radius of convergence (three term test) for eq 2 ",4,array_rad_test_poles[2,2],4," "); > if (array_rad_test_poles[2,2]< glob_least_3_sing) then # if number 6 > glob_least_3_sing := array_rad_test_poles[2,2]; > fi;# end if 6; > omniout_float(ALWAYS,"Order of pole (three term test) ",4, array_ord_test_poles[2,2],4," "); > else > omniout_str(ALWAYS,"NO REAL POLE (three term test) for Equation 2"); > fi;# end if 5; > if ((array_rad_test_poles[2,3] > glob__small) and (array_rad_test_poles[2,3] < glob_large_float)) then # if number 5 > omniout_float(ALWAYS,"Radius of convergence (six term test) for eq 2 ",4,array_rad_test_poles[2,3],4," "); > if (array_rad_test_poles[2,3]< glob_least_6_sing) then # if number 6 > glob_least_6_sing := array_rad_test_poles[2,3]; > fi;# end if 6; > omniout_float(ALWAYS,"Order of pole (six term test) ",4, array_ord_test_poles[2,3],4," "); > else > omniout_str(ALWAYS,"NO COMPLEX POLE (six term test) for Equation 2"); > fi;# end if 5 > ; > end; display_poles := proc() local rad_given; global ALWAYS, glob_display_flag, glob_larger_float, glob_large_float, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_guess_error_ord, glob_guess_error_rc, glob_type_given_pole, array_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, glob_least_3_sing, glob_least_6_sing, glob_least_given_sing, glob_least_ratio_sing, array_x; if glob_type_given_pole = 1 or glob_type_given_pole = 2 then rad_given := sqrt((array_x[1] - array_given_rad_poles[1, 1])* (array_x[1] - array_given_rad_poles[1, 1]) + array_given_rad_poles[1, 2]*array_given_rad_poles[1, 2]); 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, " "); if rad_given < glob_least_given_sing then glob_least_given_sing := rad_given end if elif glob_type_given_pole = 3 then omniout_str(ALWAYS, "NO POLE (given) for Equation 1") elif glob_type_given_pole = 5 then omniout_str(ALWAYS, "SOME POLE (given) for Equation 1") else omniout_str(ALWAYS, "NO INFO (given) for Equation 1") end if; if array_rad_test_poles[1, 1] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (ratio test) for eq 1 ", 4, array_rad_test_poles[1, 1], 4, " "); if array_rad_test_poles[1, 1] < glob_least_ratio_sing then glob_least_ratio_sing := array_rad_test_poles[1, 1] end if; omniout_float(ALWAYS, "Order of pole (ratio test) ", 4, array_ord_test_poles[1, 1], 4, " ") else omniout_str(ALWAYS, "NO POLE (ratio test) for Equation 1") end if; if glob__small < array_rad_test_poles[1, 2] and array_rad_test_poles[1, 2] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (three term test) for eq 1 ", 4, array_rad_test_poles[1, 2], 4, " "); if array_rad_test_poles[1, 2] < glob_least_3_sing then glob_least_3_sing := array_rad_test_poles[1, 2] end if; omniout_float(ALWAYS, "Order of pole (three term test) ", 4, array_ord_test_poles[1, 2], 4, " ") else omniout_str(ALWAYS, "NO REAL POLE (three term test) for Equation 1") end if; if glob__small < array_rad_test_poles[1, 3] and array_rad_test_poles[1, 3] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (six term test) for eq 1 ", 4, array_rad_test_poles[1, 3], 4, " "); if array_rad_test_poles[1, 3] < glob_least_6_sing then glob_least_6_sing := array_rad_test_poles[1, 3] end if; omniout_float(ALWAYS, "Order of pole (six term test) ", 4, array_ord_test_poles[1, 3], 4, " ") else omniout_str(ALWAYS, "NO COMPLEX POLE (six term test) for Equation 1") end if; if glob_type_given_pole = 1 or glob_type_given_pole = 2 then rad_given := sqrt((array_x[1] - array_given_rad_poles[2, 1])* (array_x[1] - array_given_rad_poles[2, 1]) + array_given_rad_poles[2, 2]*array_given_rad_poles[2, 2]); 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, " "); if rad_given < glob_least_given_sing then glob_least_given_sing := rad_given end if elif glob_type_given_pole = 3 then omniout_str(ALWAYS, "NO POLE (given) for Equation 2") elif glob_type_given_pole = 5 then omniout_str(ALWAYS, "SOME POLE (given) for Equation 2") else omniout_str(ALWAYS, "NO INFO (given) for Equation 2") end if; if array_rad_test_poles[2, 1] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (ratio test) for eq 2 ", 4, array_rad_test_poles[2, 1], 4, " "); if array_rad_test_poles[2, 1] < glob_least_ratio_sing then glob_least_ratio_sing := array_rad_test_poles[2, 1] end if; omniout_float(ALWAYS, "Order of pole (ratio test) ", 4, array_ord_test_poles[2, 1], 4, " ") else omniout_str(ALWAYS, "NO POLE (ratio test) for Equation 2") end if; if glob__small < array_rad_test_poles[2, 2] and array_rad_test_poles[2, 2] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (three term test) for eq 2 ", 4, array_rad_test_poles[2, 2], 4, " "); if array_rad_test_poles[2, 2] < glob_least_3_sing then glob_least_3_sing := array_rad_test_poles[2, 2] end if; omniout_float(ALWAYS, "Order of pole (three term test) ", 4, array_ord_test_poles[2, 2], 4, " ") else omniout_str(ALWAYS, "NO REAL POLE (three term test) for Equation 2") end if; if glob__small < array_rad_test_poles[2, 3] and array_rad_test_poles[2, 3] < glob_large_float then omniout_float(ALWAYS, "Radius of convergence (six term test) for eq 2 ", 4, array_rad_test_poles[2, 3], 4, " "); if array_rad_test_poles[2, 3] < glob_least_6_sing then glob_least_6_sing := array_rad_test_poles[2, 3] end if; omniout_float(ALWAYS, "Order of pole (six term test) ", 4, array_ord_test_poles[2, 3], 4, " ") else omniout_str(ALWAYS, "NO COMPLEX POLE (six term test) for Equation 2") end if end proc # End Function number 2 # Begin Function number 3 > my_check_sign := proc( x0 ,xf) > local ret; > if (xf > x0) then # if number 5 > ret := glob__1; > else > ret := glob__m1; > fi;# end if 5; > ret;; > end; my_check_sign := proc(x0, xf) local ret; if x0 < xf then ret := glob__1 else ret := glob__m1 end if; ret end proc # End Function number 3 # Begin Function number 4 > est_size_answer := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local min_size; > min_size := glob_estimated_size_answer; > if (float_abs(array_y2[1]) < min_size) then # if number 5 > min_size := float_abs(array_y2[1]); > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 5; > if (float_abs(array_y1[1]) < min_size) then # if number 5 > min_size := float_abs(array_y1[1]); > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 5; > if (min_size < glob__1) then # if number 5 > min_size := glob__1; > omniout_float(ALWAYS,"min_size",32,min_size,32,""); > fi;# end if 5; > min_size; > end; est_size_answer := proc() local min_size; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; min_size := glob_estimated_size_answer; if float_abs(array_y2[1]) < min_size then min_size := float_abs(array_y2[1]); omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; if float_abs(array_y1[1]) < min_size then min_size := float_abs(array_y1[1]); omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; if min_size < glob__1 then min_size := glob__1; omniout_float(ALWAYS, "min_size", 32, min_size, 32, "") end if; min_size end proc # End Function number 4 # Begin Function number 5 > test_suggested_h := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > 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 := glob__small; > no_terms := ATS_MAX_TERMS; > hn_div_ho := glob__0_5; > hn_div_ho_2 := glob__0_25; > hn_div_ho_3 := glob__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 := float_abs(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 5 > max_estimated_step_error := est_tmp; > fi;# end if 5; > est_tmp := float_abs(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 5 > max_estimated_step_error := est_tmp; > fi;# end if 5; > 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 ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; max_estimated_step_error := glob__small; no_terms := ATS_MAX_TERMS; hn_div_ho := glob__0_5; hn_div_ho_2 := glob__0_25; hn_div_ho_3 := glob__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 := float_abs(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 := float_abs(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 5 # Begin Function number 6 > track_estimated_error := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local hn_div_ho,hn_div_ho_2,hn_div_ho_3,no_terms,est_tmp; > no_terms := ATS_MAX_TERMS; > hn_div_ho := glob__0_5; > hn_div_ho_2 := glob__0_25; > hn_div_ho_3 := glob__0_125; > est_tmp := c(float_abs(array_y2[no_terms-3])) + c(float_abs(array_y2[no_terms - 2])) * c(hn_div_ho) + c(float_abs(array_y2[no_terms - 1])) * c(hn_div_ho_2) + c(float_abs(array_y2[no_terms])) * c(hn_div_ho_3); > if (glob_prec * c(float_abs(array_y2[1])) > c(est_tmp)) then # if number 5 > est_tmp := c(glob_prec) * c(float_abs(array_y2[1])); > fi;# end if 5; > if (c(est_tmp) >= c(array_max_est_error[1])) then # if number 5 > array_max_est_error[1] := c(est_tmp); > fi;# end if 5 > ; > est_tmp := c(float_abs(array_y1[no_terms-3])) + c(float_abs(array_y1[no_terms - 2])) * c(hn_div_ho) + c(float_abs(array_y1[no_terms - 1])) * c(hn_div_ho_2) + c(float_abs(array_y1[no_terms])) * c(hn_div_ho_3); > if (glob_prec * c(float_abs(array_y1[1])) > c(est_tmp)) then # if number 5 > est_tmp := c(glob_prec) * c(float_abs(array_y1[1])); > fi;# end if 5; > if (c(est_tmp) >= c(array_max_est_error[2])) then # if number 5 > array_max_est_error[2] := c(est_tmp); > fi;# end if 5 > ; > end; track_estimated_error := proc() local hn_div_ho, hn_div_ho_2, hn_div_ho_3, no_terms, est_tmp; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; no_terms := ATS_MAX_TERMS; hn_div_ho := glob__0_5; hn_div_ho_2 := glob__0_25; hn_div_ho_3 := glob__0_125; est_tmp := c(float_abs(array_y2[no_terms - 3])) + c(float_abs(array_y2[no_terms - 2]))*c(hn_div_ho) + c(float_abs(array_y2[no_terms - 1]))*c(hn_div_ho_2) + c(float_abs(array_y2[no_terms]))*c(hn_div_ho_3); if c(est_tmp) < glob_prec*c(float_abs(array_y2[1])) then est_tmp := c(glob_prec)*c(float_abs(array_y2[1])) end if; if c(array_max_est_error[1]) <= c(est_tmp) then array_max_est_error[1] := c(est_tmp) end if; est_tmp := c(float_abs(array_y1[no_terms - 3])) + c(float_abs(array_y1[no_terms - 2]))*c(hn_div_ho) + c(float_abs(array_y1[no_terms - 1]))*c(hn_div_ho_2) + c(float_abs(array_y1[no_terms]))*c(hn_div_ho_3); if c(est_tmp) < glob_prec*c(float_abs(array_y1[1])) then est_tmp := c(glob_prec)*c(float_abs(array_y1[1])) end if; if c(array_max_est_error[2]) <= c(est_tmp) then array_max_est_error[2] := c(est_tmp) end if end proc # End Function number 6 # Begin Function number 7 > reached_interval := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local ret; > if ((glob_check_sign * array_x[1]) >= (glob_check_sign * glob_next_display - glob_h/glob__10)) then # if number 5 > ret := true; > else > ret := false; > fi;# end if 5; > return(ret); > end; reached_interval := proc() local ret; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; if glob_check_sign*glob_next_display - glob_h/glob__10 <= 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 > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local abserr, closed_form_val_y, ind_var, numeric_val, relerr, term_no, est_rel_err; > #TOP DISPLAY ALOT > if (reached_interval()) then # if number 5 > if (iter >= 0) then # if number 6 > ind_var := array_x[1]; > omniout_float(ALWAYS,"x[1] ",33,ind_var,20," "); > closed_form_val_y := evalf(exact_soln_y2(ind_var)); > omniout_float(ALWAYS,"y2[1] (closed_form) ",33,closed_form_val_y,20," "); > term_no := 1; > numeric_val := array_y2[term_no]; > abserr := float_abs(numeric_val - closed_form_val_y); > omniout_float(ALWAYS,"y2[1] (numeric) ",33,numeric_val,20," "); > if (c(float_abs(closed_form_val_y)) > c(glob_prec)) then # if number 7 > relerr := abserr*glob__100/float_abs(closed_form_val_y); > if (c(relerr) > c(glob_prec)) then # if number 8 > glob_good_digits := -int_trunc(log10(c(relerr))) + 3; > else > glob_good_digits := Digits; > fi;# end if 8; > else > relerr := glob__m1 ; > glob_good_digits := -16; > fi;# end if 7; > if (glob_good_digits < glob_min_good_digits) then # if number 7 > glob_min_good_digits := glob_good_digits; > fi;# end if 7; > if (glob_apfp_est_good_digits < glob_min_apfp_est_good_digits) then # if number 7 > glob_min_apfp_est_good_digits := glob_apfp_est_good_digits; > fi;# end if 7; > if (evalf(float_abs(numeric_val)) > glob_prec) then # if number 7 > est_rel_err := evalf(array_max_est_error[1]*100.0 * sqrt(glob_iter)*36*ATS_MAX_TERMS/float_abs(numeric_val)); > if (evalf(est_rel_err) > glob_prec) then # if number 8 > glob_est_digits := -int_trunc(log10(est_rel_err)) + 3; > else > glob_est_digits := Digits; > fi;# end if 8; > else > relerr := glob__m1 ; > glob_est_digits := -16; > fi;# end if 7; > array_est_digits[1] := glob_est_digits; > if (glob_iter = 1) then # if number 7 > array_1st_rel_error[1] := relerr; > else > array_last_rel_error[1] := relerr; > fi;# end if 7; > array_est_rel_error[1] := est_rel_err; > omniout_float(ALWAYS,"absolute error ",4,abserr,20," "); > omniout_float(ALWAYS,"relative error ",4,relerr,20,"%"); > omniout_int(INFO,"Desired digits ",32,glob_desired_digits_correct,4," "); > omniout_int(INFO,"Estimated correct digits ",32,glob_est_digits,4," "); > omniout_int(INFO,"Correct digits ",32,glob_good_digits,4," ") > ; > omniout_float(ALWAYS,"h ",4,glob_h,20," "); > ; > closed_form_val_y := evalf(exact_soln_y1(ind_var)); > omniout_float(ALWAYS,"y1[1] (closed_form) ",33,closed_form_val_y,20," "); > term_no := 1; > numeric_val := array_y1[term_no]; > abserr := float_abs(numeric_val - closed_form_val_y); > omniout_float(ALWAYS,"y1[1] (numeric) ",33,numeric_val,20," "); > if (c(float_abs(closed_form_val_y)) > c(glob_prec)) then # if number 7 > relerr := abserr*glob__100/float_abs(closed_form_val_y); > if (c(relerr) > c(glob_prec)) then # if number 8 > glob_good_digits := -int_trunc(log10(c(relerr))) + 3; > else > glob_good_digits := Digits; > fi;# end if 8; > else > relerr := glob__m1 ; > glob_good_digits := -16; > fi;# end if 7; > if (glob_good_digits < glob_min_good_digits) then # if number 7 > glob_min_good_digits := glob_good_digits; > fi;# end if 7; > if (glob_apfp_est_good_digits < glob_min_apfp_est_good_digits) then # if number 7 > glob_min_apfp_est_good_digits := glob_apfp_est_good_digits; > fi;# end if 7; > if (evalf(float_abs(numeric_val)) > glob_prec) then # if number 7 > est_rel_err := evalf(array_max_est_error[2]*100.0 * sqrt(glob_iter)*36*ATS_MAX_TERMS/float_abs(numeric_val)); > if (evalf(est_rel_err) > glob_prec) then # if number 8 > glob_est_digits := -int_trunc(log10(est_rel_err)) + 3; > else > glob_est_digits := Digits; > fi;# end if 8; > else > relerr := glob__m1 ; > glob_est_digits := -16; > fi;# end if 7; > array_est_digits[2] := glob_est_digits; > if (glob_iter = 1) then # if number 7 > array_1st_rel_error[2] := relerr; > else > array_last_rel_error[2] := relerr; > fi;# end if 7; > array_est_rel_error[2] := est_rel_err; > omniout_float(ALWAYS,"absolute error ",4,abserr,20," "); > omniout_float(ALWAYS,"relative error ",4,relerr,20,"%"); > omniout_int(INFO,"Desired digits ",32,glob_desired_digits_correct,4," "); > omniout_int(INFO,"Estimated correct digits ",32,glob_est_digits,4," "); > omniout_int(INFO,"Correct digits ",32,glob_good_digits,4," ") > ; > omniout_float(ALWAYS,"h ",4,glob_h,20," "); > fi;# end if 6; > #BOTTOM DISPLAY ALOT > fi;# end if 5; > end; display_alot := proc(iter) local abserr, closed_form_val_y, ind_var, numeric_val, relerr, term_no, est_rel_err; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; if reached_interval() then if 0 <= iter then ind_var := array_x[1]; omniout_float(ALWAYS, "x[1] ", 33, ind_var, 20, " "); closed_form_val_y := evalf(exact_soln_y2(ind_var)); omniout_float(ALWAYS, "y2[1] (closed_form) ", 33, closed_form_val_y, 20, " "); term_no := 1; numeric_val := array_y2[term_no]; abserr := float_abs(numeric_val - closed_form_val_y); omniout_float(ALWAYS, "y2[1] (numeric) ", 33, numeric_val, 20, " "); if c(glob_prec) < c(float_abs(closed_form_val_y)) then relerr := abserr*glob__100/float_abs(closed_form_val_y); if c(glob_prec) < c(relerr) then glob_good_digits := -int_trunc(log10(c(relerr))) + 3 else glob_good_digits := Digits end if else relerr := glob__m1; glob_good_digits := -16 end if; if glob_good_digits < glob_min_good_digits then glob_min_good_digits := glob_good_digits end if; if glob_apfp_est_good_digits < glob_min_apfp_est_good_digits then glob_min_apfp_est_good_digits := glob_apfp_est_good_digits end if; if glob_prec < evalf(float_abs(numeric_val)) then est_rel_err := evalf(array_max_est_error[1]*100.0* sqrt(glob_iter)*36*ATS_MAX_TERMS/float_abs(numeric_val)) ; if glob_prec < evalf(est_rel_err) then glob_est_digits := -int_trunc(log10(est_rel_err)) + 3 else glob_est_digits := Digits end if else relerr := glob__m1; glob_est_digits := -16 end if; array_est_digits[1] := glob_est_digits; if glob_iter = 1 then array_1st_rel_error[1] := relerr else array_last_rel_error[1] := relerr end if; array_est_rel_error[1] := est_rel_err; omniout_float(ALWAYS, "absolute error ", 4, abserr, 20, " "); omniout_float(ALWAYS, "relative error ", 4, relerr, 20, "%"); omniout_int(INFO, "Desired digits ", 32, glob_desired_digits_correct, 4, " "); omniout_int(INFO, "Estimated correct digits ", 32, glob_est_digits, 4, " "); omniout_int(INFO, "Correct digits ", 32, glob_good_digits, 4, " "); omniout_float(ALWAYS, "h ", 4, glob_h, 20, " "); closed_form_val_y := evalf(exact_soln_y1(ind_var)); omniout_float(ALWAYS, "y1[1] (closed_form) ", 33, closed_form_val_y, 20, " "); term_no := 1; numeric_val := array_y1[term_no]; abserr := float_abs(numeric_val - closed_form_val_y); omniout_float(ALWAYS, "y1[1] (numeric) ", 33, numeric_val, 20, " "); if c(glob_prec) < c(float_abs(closed_form_val_y)) then relerr := abserr*glob__100/float_abs(closed_form_val_y); if c(glob_prec) < c(relerr) then glob_good_digits := -int_trunc(log10(c(relerr))) + 3 else glob_good_digits := Digits end if else relerr := glob__m1; glob_good_digits := -16 end if; if glob_good_digits < glob_min_good_digits then glob_min_good_digits := glob_good_digits end if; if glob_apfp_est_good_digits < glob_min_apfp_est_good_digits then glob_min_apfp_est_good_digits := glob_apfp_est_good_digits end if; if glob_prec < evalf(float_abs(numeric_val)) then est_rel_err := evalf(array_max_est_error[2]*100.0* sqrt(glob_iter)*36*ATS_MAX_TERMS/float_abs(numeric_val)) ; if glob_prec < evalf(est_rel_err) then glob_est_digits := -int_trunc(log10(est_rel_err)) + 3 else glob_est_digits := Digits end if else relerr := glob__m1; glob_est_digits := -16 end if; array_est_digits[2] := glob_est_digits; if glob_iter = 1 then array_1st_rel_error[2] := relerr else array_last_rel_error[2] := relerr end if; array_est_rel_error[2] := est_rel_err; omniout_float(ALWAYS, "absolute error ", 4, abserr, 20, " "); omniout_float(ALWAYS, "relative error ", 4, relerr, 20, "%"); omniout_int(INFO, "Desired digits ", 32, glob_desired_digits_correct, 4, " "); omniout_int(INFO, "Estimated correct digits ", 32, glob_est_digits, 4, " "); 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 > prog_report := proc(x_start,x_end) > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > 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 := (clock_sec1) - (glob_orig_start_sec); > glob_clock_sec := (clock_sec1) - (glob_clock_start_sec); > left_sec := (glob_max_sec) + (glob_orig_start_sec) - (clock_sec1); > expect_sec := comp_expect_sec((x_end),(x_start),(array_x[1]) + (glob_h) ,( clock_sec1) - (glob_orig_start_sec)); > opt_clock_sec := ( clock_sec1) - (glob_optimal_clock_start_sec); > glob_optimal_expect_sec := comp_expect_sec((x_end),(x_start),(array_x[1]) +( glob_h) ,( opt_clock_sec)); > glob_total_exp_sec := glob_optimal_expect_sec + c(total_clock_sec); > percent_done := comp_percent((x_end),(x_start),(array_x[1]) + (glob_h)); > glob_percent_done := percent_done; > omniout_str_noeol(INFO,"Total Elapsed Time "); > omniout_timestr((total_clock_sec)); > omniout_str_noeol(INFO,"Elapsed Time(since restart) "); > omniout_timestr((glob_clock_sec)); > if (c(percent_done) < glob__100) then # if number 5 > omniout_str_noeol(INFO,"Expected Time Remaining "); > omniout_timestr((expect_sec)); > omniout_str_noeol(INFO,"Optimized Time Remaining "); > omniout_timestr((glob_optimal_expect_sec)); > omniout_str_noeol(INFO,"Expected Total Time "); > omniout_timestr((glob_total_exp_sec)); > fi;# end if 5; > omniout_str_noeol(INFO,"Time to Timeout "); > omniout_timestr((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 ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; clock_sec1 := elapsed_time_seconds(); total_clock_sec := clock_sec1 - glob_orig_start_sec; glob_clock_sec := clock_sec1 - glob_clock_start_sec; left_sec := glob_max_sec + glob_orig_start_sec - clock_sec1; expect_sec := comp_expect_sec(x_end, x_start, array_x[1] + glob_h, clock_sec1 - glob_orig_start_sec); opt_clock_sec := clock_sec1 - glob_optimal_clock_start_sec; glob_optimal_expect_sec := comp_expect_sec(x_end, x_start, array_x[1] + glob_h, opt_clock_sec) ; glob_total_exp_sec := glob_optimal_expect_sec + c(total_clock_sec); percent_done := comp_percent(x_end, x_start, array_x[1] + glob_h); glob_percent_done := percent_done; omniout_str_noeol(INFO, "Total Elapsed Time "); omniout_timestr(total_clock_sec); omniout_str_noeol(INFO, "Elapsed Time(since restart) "); omniout_timestr(glob_clock_sec); if c(percent_done) < glob__100 then omniout_str_noeol(INFO, "Expected Time Remaining "); omniout_timestr(expect_sec); omniout_str_noeol(INFO, "Optimized Time Remaining "); omniout_timestr(glob_optimal_expect_sec); omniout_str_noeol(INFO, "Expected Total Time "); omniout_timestr(glob_total_exp_sec) end if; omniout_str_noeol(INFO, "Time to Timeout "); omniout_timestr(left_sec); omniout_float(INFO, "Percent Done ", 33, percent_done, 4, "%") end proc # End Function number 9 # Begin Function number 10 > check_for_pole := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, term1, term2, term3, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term, local_test, tmp_rad,tmp_ord, tmp_ratio, prev_tmp_rad, last_no; > #TOP CHECK FOR POLE > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[1,1] := glob_larger_float; > array_ord_test_poles[1,1] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 5 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-3 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_ratio(array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 5 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 5; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 5 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 6 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 7 > found_sing := 0; > fi;# end if 7; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 7 > if (rad_c < array_rad_test_poles[1,1]) then # if number 8 > array_rad_test_poles[1,1] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_ratio(array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > array_rad_test_poles[1,1] := rad_c; > array_ord_test_poles[1,1] := tmp_ord; > fi;# end if 8; > fi;# end if 7; > #BOTTOM general radius test1 > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[2,1] := glob_larger_float; > array_ord_test_poles[2,1] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 1 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-3 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_ratio(array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 7 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 7; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 7 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 8 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 9 > found_sing := 0; > fi;# end if 9; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 9 > if (rad_c < array_rad_test_poles[2,1]) then # if number 10 > array_rad_test_poles[2,1] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_ratio(array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > array_rad_test_poles[2,1] := rad_c; > array_ord_test_poles[2,1] := tmp_ord; > fi;# end if 10; > fi;# end if 9; > #BOTTOM general radius test2 > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[1,2] := glob_larger_float; > array_ord_test_poles[1,2] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 5 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-4 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_three_terms(array_y2_higher[1,last_no-2],array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 9 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 9; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 9 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 10 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 11 > found_sing := 0; > fi;# end if 11; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 11 > if (rad_c < array_rad_test_poles[1,2]) then # if number 12 > array_rad_test_poles[1,2] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_three_terms(array_y2_higher[1,last_no-2],array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > array_rad_test_poles[1,2] := rad_c; > if (rad_c < glob_min_pole_est) then # if number 13 > glob_min_pole_est := rad_c; > fi;# end if 13; > array_ord_test_poles[1,2] := tmp_ord; > fi;# end if 12; > fi;# end if 11; > #BOTTOM general radius test1 > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[2,2] := glob_larger_float; > array_ord_test_poles[2,2] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 1 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-4 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_three_terms(array_y1_higher[1,last_no-2],array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 11 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 11; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 11 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 12 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 13 > found_sing := 0; > fi;# end if 13; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 13 > if (rad_c < array_rad_test_poles[2,2]) then # if number 14 > array_rad_test_poles[2,2] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_three_terms(array_y1_higher[1,last_no-2],array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > array_rad_test_poles[2,2] := rad_c; > if (rad_c < glob_min_pole_est) then # if number 15 > glob_min_pole_est := rad_c; > fi;# end if 15; > array_ord_test_poles[2,2] := tmp_ord; > fi;# end if 14; > fi;# end if 13; > #BOTTOM general radius test2 > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[1,3] := glob_larger_float; > array_ord_test_poles[1,3] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 5 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-7 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_six_terms(array_y2_higher[1,last_no-5],array_y2_higher[1,last_no-4],array_y2_higher[1,last_no-3],array_y2_higher[1,last_no-2],array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 13 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 13; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 13 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 14 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 15 > found_sing := 0; > fi;# end if 15; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 15 > if (rad_c < array_rad_test_poles[1,3]) then # if number 16 > array_rad_test_poles[1,3] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_six_terms(array_y2_higher[1,last_no-5],array_y2_higher[1,last_no-4],array_y2_higher[1,last_no-3],array_y2_higher[1,last_no-2],array_y2_higher[1,last_no-1],array_y2_higher[1,last_no],last_no); > array_rad_test_poles[1,3] := rad_c; > if (rad_c < glob_min_pole_est) then # if number 17 > glob_min_pole_est := rad_c; > fi;# end if 17; > array_ord_test_poles[1,3] := tmp_ord; > fi;# end if 16; > fi;# end if 15; > #BOTTOM general radius test1 > tmp_rad := glob_larger_float; > prev_tmp_rad := glob_larger_float; > tmp_ratio := glob_larger_float; > rad_c := glob_larger_float; > array_rad_test_poles[2,3] := glob_larger_float; > array_ord_test_poles[2,3] := glob_larger_float; > found_sing := 1; > last_no := ATS_MAX_TERMS - 1 - 10; > cnt := 0; > while (last_no < ATS_MAX_TERMS-7 and found_sing = 1) do # do number 1 > tmp_rad := comp_rad_from_six_terms(array_y1_higher[1,last_no-5],array_y1_higher[1,last_no-4],array_y1_higher[1,last_no-3],array_y1_higher[1,last_no-2],array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > if (float_abs(prev_tmp_rad) > glob__0) then # if number 15 > tmp_ratio := tmp_rad / prev_tmp_rad; > else > tmp_ratio := glob_large_float; > fi;# end if 15; > if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 15 > rad_c := tmp_rad; > elif > (cnt = 0) then # if number 16 > rad_c := tmp_rad; > elif > (cnt > 0) then # if number 17 > found_sing := 0; > fi;# end if 17; > prev_tmp_rad := tmp_rad;; > cnt := cnt + 1; > last_no := last_no + 1; > od;# end do number 1; > if (found_sing = 1) then # if number 17 > if (rad_c < array_rad_test_poles[2,3]) then # if number 18 > array_rad_test_poles[2,3] := rad_c; > last_no := last_no - 1; > tmp_ord := comp_ord_from_six_terms(array_y1_higher[1,last_no-5],array_y1_higher[1,last_no-4],array_y1_higher[1,last_no-3],array_y1_higher[1,last_no-2],array_y1_higher[1,last_no-1],array_y1_higher[1,last_no],last_no); > array_rad_test_poles[2,3] := rad_c; > if (rad_c < glob_min_pole_est) then # if number 19 > glob_min_pole_est := rad_c; > fi;# end if 19; > array_ord_test_poles[2,3] := tmp_ord; > fi;# end if 18; > fi;# end if 17; > #BOTTOM general radius test2 > #START ADJUST ALL SERIES > if (float_abs(glob_min_pole_est) * glob_ratio_of_radius < float_abs(glob_h)) then # if number 17 > h_new := glob_check_sign * glob_min_pole_est * glob_ratio_of_radius; > omniout_str(ALWAYS,"SETTING H FOR POLE"); > glob_h_reason := 6; > if (glob_check_sign * glob_min_h > glob_check_sign * h_new) then # if number 18 > omniout_str(ALWAYS,"SETTING H FOR MIN H"); > h_new := glob_min_h; > glob_h_reason := 5; > fi;# end if 18; > term := 1; > ratio := c(1.0); > while (term <= ATS_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 / float_abs(glob_h); > term := term + 1; > od;# end do number 1; > glob_h := h_new; > fi;# end if 17; > #BOTTOM ADJUST ALL SERIES > ; > if (reached_interval()) then # if number 17 > display_poles(); > fi;# end if 17 > end; check_for_pole := proc() local cnt, dr1, dr2, ds1, ds2, hdrc, m, n, nr1, nr2, ord_no, term1, term2, term3, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, rad_c, rcs, rm0, rm1, rm2, rm3, rm4, found_sing, h_new, ratio, term, local_test, tmp_rad, tmp_ord, tmp_ratio, prev_tmp_rad, last_no; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[1, 1] := glob_larger_float; array_ord_test_poles[1, 1] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 15; cnt := 0; while last_no < ATS_MAX_TERMS - 3 and found_sing = 1 do tmp_rad := comp_rad_from_ratio(array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[1, 1] then array_rad_test_poles[1, 1] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_ratio(array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); array_rad_test_poles[1, 1] := rad_c; array_ord_test_poles[1, 1] := tmp_ord end if end if; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[2, 1] := glob_larger_float; array_ord_test_poles[2, 1] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 11; cnt := 0; while last_no < ATS_MAX_TERMS - 3 and found_sing = 1 do tmp_rad := comp_rad_from_ratio(array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[2, 1] then array_rad_test_poles[2, 1] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_ratio(array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); array_rad_test_poles[2, 1] := rad_c; array_ord_test_poles[2, 1] := tmp_ord end if end if; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[1, 2] := glob_larger_float; array_ord_test_poles[1, 2] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 15; cnt := 0; while last_no < ATS_MAX_TERMS - 4 and found_sing = 1 do tmp_rad := comp_rad_from_three_terms( array_y2_higher[1, last_no - 2], array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[1, 2] then array_rad_test_poles[1, 2] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_three_terms( array_y2_higher[1, last_no - 2], array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); array_rad_test_poles[1, 2] := rad_c; if rad_c < glob_min_pole_est then glob_min_pole_est := rad_c end if; array_ord_test_poles[1, 2] := tmp_ord end if end if; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[2, 2] := glob_larger_float; array_ord_test_poles[2, 2] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 11; cnt := 0; while last_no < ATS_MAX_TERMS - 4 and found_sing = 1 do tmp_rad := comp_rad_from_three_terms( array_y1_higher[1, last_no - 2], array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[2, 2] then array_rad_test_poles[2, 2] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_three_terms( array_y1_higher[1, last_no - 2], array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); array_rad_test_poles[2, 2] := rad_c; if rad_c < glob_min_pole_est then glob_min_pole_est := rad_c end if; array_ord_test_poles[2, 2] := tmp_ord end if end if; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[1, 3] := glob_larger_float; array_ord_test_poles[1, 3] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 15; cnt := 0; while last_no < ATS_MAX_TERMS - 7 and found_sing = 1 do tmp_rad := comp_rad_from_six_terms(array_y2_higher[1, last_no - 5], array_y2_higher[1, last_no - 4], array_y2_higher[1, last_no - 3], array_y2_higher[1, last_no - 2], array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[1, 3] then array_rad_test_poles[1, 3] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_six_terms( array_y2_higher[1, last_no - 5], array_y2_higher[1, last_no - 4], array_y2_higher[1, last_no - 3], array_y2_higher[1, last_no - 2], array_y2_higher[1, last_no - 1], array_y2_higher[1, last_no], last_no); array_rad_test_poles[1, 3] := rad_c; if rad_c < glob_min_pole_est then glob_min_pole_est := rad_c end if; array_ord_test_poles[1, 3] := tmp_ord end if end if; tmp_rad := glob_larger_float; prev_tmp_rad := glob_larger_float; tmp_ratio := glob_larger_float; rad_c := glob_larger_float; array_rad_test_poles[2, 3] := glob_larger_float; array_ord_test_poles[2, 3] := glob_larger_float; found_sing := 1; last_no := ATS_MAX_TERMS - 11; cnt := 0; while last_no < ATS_MAX_TERMS - 7 and found_sing = 1 do tmp_rad := comp_rad_from_six_terms(array_y1_higher[1, last_no - 5], array_y1_higher[1, last_no - 4], array_y1_higher[1, last_no - 3], array_y1_higher[1, last_no - 2], array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); if glob__0 < float_abs(prev_tmp_rad) then tmp_ratio := tmp_rad/prev_tmp_rad else tmp_ratio := glob_large_float end if; if 0 < cnt and tmp_ratio < glob_upper_ratio_limit and glob_lower_ratio_limit < tmp_ratio then rad_c := tmp_rad elif cnt = 0 then rad_c := tmp_rad elif 0 < cnt then found_sing := 0 end if; prev_tmp_rad := tmp_rad; cnt := cnt + 1; last_no := last_no + 1 end do; if found_sing = 1 then if rad_c < array_rad_test_poles[2, 3] then array_rad_test_poles[2, 3] := rad_c; last_no := last_no - 1; tmp_ord := comp_ord_from_six_terms( array_y1_higher[1, last_no - 5], array_y1_higher[1, last_no - 4], array_y1_higher[1, last_no - 3], array_y1_higher[1, last_no - 2], array_y1_higher[1, last_no - 1], array_y1_higher[1, last_no], last_no); array_rad_test_poles[2, 3] := rad_c; if rad_c < glob_min_pole_est then glob_min_pole_est := rad_c end if; array_ord_test_poles[2, 3] := tmp_ord end if end if; if float_abs(glob_min_pole_est)*glob_ratio_of_radius < float_abs(glob_h) then h_new := glob_check_sign*glob_min_pole_est*glob_ratio_of_radius; omniout_str(ALWAYS, "SETTING H FOR POLE"); glob_h_reason := 6; if glob_check_sign*h_new < glob_check_sign*glob_min_h then omniout_str(ALWAYS, "SETTING H FOR MIN H"); h_new := glob_min_h; glob_h_reason := 5 end if; term := 1; ratio := c(1.0); while term <= ATS_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/float_abs(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 10 # Begin Function number 11 > atomall := proc() > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, #Bottom Generate Globals Decl #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > local kkk, order_d, adj2, adj3 , temporary, term; > #TOP ATOMALL > # before write maple main top matter > # before generate constants assign > # before generate globals assign > #END OUTFILE1 > #BEGIN OUTFILE2 > #END OUTFILE2 > #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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp1[1]) * (expt((glob_h) , c(5))) * c(factorial_3(0,5)); > if (6 <= ATS_MAX_TERMS) then # if number 3 > array_y2[6] := temporary; > array_y2_higher[1,6] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(5); > array_y2_higher[2,5] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(4); > array_y2_higher[3,4] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(3); > array_y2_higher[4,3] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(2); > array_y2_higher[5,2] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(1); > array_y2_higher[6,1] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 2; > #emit pre diff $eq_no = 2 i = 1 order_d = 4 > array_tmp3[1] := array_y2_higher[5,1]; > #emit pre neg FULL $eq_no = 2 > array_tmp4[1] := neg(array_tmp3[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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp4[1]) * (expt((glob_h) , c(1))) * c(factorial_3(0,1)); > if (2 <= ATS_MAX_TERMS) then # if number 3 > array_y1[2] := temporary; > array_y1_higher[1,2] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(1); > array_y1_higher[2,1] := c(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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp1[2]) * (expt((glob_h) , c(5))) * c(factorial_3(1,6)); > if (7 <= ATS_MAX_TERMS) then # if number 3 > array_y2[7] := temporary; > array_y2_higher[1,7] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(6); > array_y2_higher[2,6] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(5); > array_y2_higher[3,5] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(4); > array_y2_higher[4,4] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(3); > array_y2_higher[5,3] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(2); > array_y2_higher[6,2] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 3; > #emit pre diff $eq_no = 2 i = 2 order_d = 4 > array_tmp3[2] := array_y2_higher[5,2]; > #emit pre neg FULL $eq_no = 2 > array_tmp4[2] := neg(array_tmp3[2]); > #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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp4[2]) * (expt((glob_h) , c(1))) * c(factorial_3(1,2)); > if (3 <= ATS_MAX_TERMS) then # if number 3 > array_y1[3] := temporary; > array_y1_higher[1,3] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(2); > array_y1_higher[2,2] := c(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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp1[3]) * (expt((glob_h) , c(5))) * c(factorial_3(2,7)); > if (8 <= ATS_MAX_TERMS) then # if number 3 > array_y2[8] := temporary; > array_y2_higher[1,8] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(7); > array_y2_higher[2,7] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(6); > array_y2_higher[3,6] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(5); > array_y2_higher[4,5] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(4); > array_y2_higher[5,4] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(3); > array_y2_higher[6,3] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 4; > #emit pre diff $eq_no = 2 i = 3 order_d = 4 > array_tmp3[3] := array_y2_higher[5,3]; > #emit pre neg FULL $eq_no = 2 > array_tmp4[3] := neg(array_tmp3[3]); > #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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp4[3]) * (expt((glob_h) , c(1))) * c(factorial_3(2,3)); > if (4 <= ATS_MAX_TERMS) then # if number 3 > array_y1[4] := temporary; > array_y1_higher[1,4] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(3); > array_y1_higher[2,3] := c(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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp1[4]) * (expt((glob_h) , c(5))) * c(factorial_3(3,8)); > if (9 <= ATS_MAX_TERMS) then # if number 3 > array_y2[9] := temporary; > array_y2_higher[1,9] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(8); > array_y2_higher[2,8] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(7); > array_y2_higher[3,7] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(6); > array_y2_higher[4,6] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(5); > array_y2_higher[5,5] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(4); > array_y2_higher[6,4] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 5; > #emit pre diff $eq_no = 2 i = 4 order_d = 4 > array_tmp3[4] := array_y2_higher[5,4]; > #emit pre neg FULL $eq_no = 2 > array_tmp4[4] := neg(array_tmp3[4]); > #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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp4[4]) * (expt((glob_h) , c(1))) * c(factorial_3(3,4)); > if (5 <= ATS_MAX_TERMS) then # if number 3 > array_y1[5] := temporary; > array_y1_higher[1,5] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(4); > array_y1_higher[2,4] := c(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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp1[5]) * (expt((glob_h) , c(5))) * c(factorial_3(4,9)); > if (10 <= ATS_MAX_TERMS) then # if number 3 > array_y2[10] := temporary; > array_y2_higher[1,10] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(9); > array_y2_higher[2,9] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(8); > array_y2_higher[3,8] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(7); > array_y2_higher[4,7] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(6); > array_y2_higher[5,6] := c(temporary); > temporary := c(temporary) / c(glob_h) * c(5); > array_y2_higher[6,5] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 6; > #emit pre diff $eq_no = 2 i = 5 order_d = 4 > array_tmp3[5] := array_y2_higher[5,5]; > #emit pre neg FULL $eq_no = 2 > array_tmp4[5] := neg(array_tmp3[5]); > #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 <= ATS_MAX_TERMS) then # if number 2 > temporary := c(array_tmp4[5]) * (expt((glob_h) , c(1))) * c(factorial_3(4,5)); > if (6 <= ATS_MAX_TERMS) then # if number 3 > array_y1[6] := temporary; > array_y1_higher[1,6] := temporary; > fi;# end if 3; > temporary := c(temporary) / c(glob_h) * c(5); > array_y1_higher[2,5] := c(temporary); > fi;# end if 2; > fi;# end if 1; > kkk := 6; > #END ATOMHDR5 > #BEGIN OUTFILE3 > #Top Atomall While Loop-- outfile3 > while (kkk <= ATS_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 <= ATS_MAX_TERMS) then # if number 1 > if ( not array_y2_set_initial[1,kkk + order_d]) then # if number 2 > temporary := c(array_tmp1[kkk]) * expt((glob_h) , c(order_d)) * c(factorial_3((kkk - 1),(kkk + order_d - 1))); > array_y2[kkk + order_d] := c(temporary); > array_y2_higher[1,kkk + order_d] := c(temporary); > term := kkk + order_d - 1; > adj2 := kkk + order_d - 1; > adj3 := 2; > while ((term >= 1) and (term <= ATS_MAX_TERMS) and (adj3 < order_d + 1)) do # do number 1 > if (adj3 <= order_d + 1) then # if number 3 > if (adj2 > 0) then # if number 4 > temporary := c(temporary) / c(glob_h) * c(adj2); > else > temporary := c(temporary); > fi;# end if 4; > array_y2_higher[adj3,term] := c(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 diff $eq_no = 2 > if (kkk <= ATS_MAX_TERMS) then # if number 1 > array_tmp3[kkk] := array_y2_higher[5,kkk]; > fi;# end if 1; > #emit neg FULL $eq_no = 2 > array_tmp4[kkk] := neg(array_tmp3[kkk]); > #emit assign $eq_no = 2 > order_d := 1; > if (kkk + order_d <= ATS_MAX_TERMS) then # if number 1 > if ( not array_y1_set_initial[2,kkk + order_d]) then # if number 2 > temporary := c(array_tmp4[kkk]) * expt((glob_h) , c(order_d)) * c(factorial_3((kkk - 1),(kkk + order_d - 1))); > array_y1[kkk + order_d] := c(temporary); > array_y1_higher[1,kkk + order_d] := c(temporary); > term := kkk + order_d - 1; > adj2 := kkk + order_d - 1; > adj3 := 2; > while ((term >= 1) and (term <= ATS_MAX_TERMS) and (adj3 < order_d + 1)) do # do number 1 > if (adj3 <= order_d + 1) then # if number 3 > if (adj2 > 0) then # if number 4 > temporary := c(temporary) / c(glob_h) * c(adj2); > else > temporary := c(temporary); > fi;# end if 4; > array_y1_higher[adj3,term] := c(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 ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; array_tmp1[1] := array_const_0D0[1] + array_y1[1]; if not array_y2_set_initial[1, 6] then if 1 <= ATS_MAX_TERMS then temporary := c(array_tmp1[1])*expt(glob_h, c(5))*c(factorial_3(0, 5)); if 6 <= ATS_MAX_TERMS then array_y2[6] := temporary; array_y2_higher[1, 6] := temporary end if; temporary := c(temporary)*c(5)/c(glob_h); array_y2_higher[2, 5] := c(temporary); temporary := c(temporary)*c(4)/c(glob_h); array_y2_higher[3, 4] := c(temporary); temporary := c(temporary)*c(3)/c(glob_h); array_y2_higher[4, 3] := c(temporary); temporary := c(temporary)*c(2)/c(glob_h); array_y2_higher[5, 2] := c(temporary); temporary := c(temporary)*c(1)/c(glob_h); array_y2_higher[6, 1] := c(temporary) end if end if; kkk := 2; array_tmp3[1] := array_y2_higher[5, 1]; array_tmp4[1] := neg(array_tmp3[1]); if not array_y1_set_initial[2, 2] then if 1 <= ATS_MAX_TERMS then temporary := c(array_tmp4[1])*expt(glob_h, c(1))*c(factorial_3(0, 1)); if 2 <= ATS_MAX_TERMS then array_y1[2] := temporary; array_y1_higher[1, 2] := temporary end if; temporary := c(temporary)*c(1)/c(glob_h); array_y1_higher[2, 1] := c(temporary) end if end if; kkk := 2; array_tmp1[2] := array_y1[2]; if not array_y2_set_initial[1, 7] then if 2 <= ATS_MAX_TERMS then temporary := c(array_tmp1[2])*expt(glob_h, c(5))*c(factorial_3(1, 6)); if 7 <= ATS_MAX_TERMS then array_y2[7] := temporary; array_y2_higher[1, 7] := temporary end if; temporary := c(temporary)*c(6)/c(glob_h); array_y2_higher[2, 6] := c(temporary); temporary := c(temporary)*c(5)/c(glob_h); array_y2_higher[3, 5] := c(temporary); temporary := c(temporary)*c(4)/c(glob_h); array_y2_higher[4, 4] := c(temporary); temporary := c(temporary)*c(3)/c(glob_h); array_y2_higher[5, 3] := c(temporary); temporary := c(temporary)*c(2)/c(glob_h); array_y2_higher[6, 2] := c(temporary) end if end if; kkk := 3; array_tmp3[2] := array_y2_higher[5, 2]; array_tmp4[2] := neg(array_tmp3[2]); if not array_y1_set_initial[2, 3] then if 2 <= ATS_MAX_TERMS then temporary := c(array_tmp4[2])*expt(glob_h, c(1))*c(factorial_3(1, 2)); if 3 <= ATS_MAX_TERMS then array_y1[3] := temporary; array_y1_higher[1, 3] := temporary end if; temporary := c(temporary)*c(2)/c(glob_h); array_y1_higher[2, 2] := c(temporary) end if end if; kkk := 3; array_tmp1[3] := array_y1[3]; if not array_y2_set_initial[1, 8] then if 3 <= ATS_MAX_TERMS then temporary := c(array_tmp1[3])*expt(glob_h, c(5))*c(factorial_3(2, 7)); if 8 <= ATS_MAX_TERMS then array_y2[8] := temporary; array_y2_higher[1, 8] := temporary end if; temporary := c(temporary)*c(7)/c(glob_h); array_y2_higher[2, 7] := c(temporary); temporary := c(temporary)*c(6)/c(glob_h); array_y2_higher[3, 6] := c(temporary); temporary := c(temporary)*c(5)/c(glob_h); array_y2_higher[4, 5] := c(temporary); temporary := c(temporary)*c(4)/c(glob_h); array_y2_higher[5, 4] := c(temporary); temporary := c(temporary)*c(3)/c(glob_h); array_y2_higher[6, 3] := c(temporary) end if end if; kkk := 4; array_tmp3[3] := array_y2_higher[5, 3]; array_tmp4[3] := neg(array_tmp3[3]); if not array_y1_set_initial[2, 4] then if 3 <= ATS_MAX_TERMS then temporary := c(array_tmp4[3])*expt(glob_h, c(1))*c(factorial_3(2, 3)); if 4 <= ATS_MAX_TERMS then array_y1[4] := temporary; array_y1_higher[1, 4] := temporary end if; temporary := c(temporary)*c(3)/c(glob_h); array_y1_higher[2, 3] := c(temporary) end if end if; kkk := 4; array_tmp1[4] := array_y1[4]; if not array_y2_set_initial[1, 9] then if 4 <= ATS_MAX_TERMS then temporary := c(array_tmp1[4])*expt(glob_h, c(5))*c(factorial_3(3, 8)); if 9 <= ATS_MAX_TERMS then array_y2[9] := temporary; array_y2_higher[1, 9] := temporary end if; temporary := c(temporary)*c(8)/c(glob_h); array_y2_higher[2, 8] := c(temporary); temporary := c(temporary)*c(7)/c(glob_h); array_y2_higher[3, 7] := c(temporary); temporary := c(temporary)*c(6)/c(glob_h); array_y2_higher[4, 6] := c(temporary); temporary := c(temporary)*c(5)/c(glob_h); array_y2_higher[5, 5] := c(temporary); temporary := c(temporary)*c(4)/c(glob_h); array_y2_higher[6, 4] := c(temporary) end if end if; kkk := 5; array_tmp3[4] := array_y2_higher[5, 4]; array_tmp4[4] := neg(array_tmp3[4]); if not array_y1_set_initial[2, 5] then if 4 <= ATS_MAX_TERMS then temporary := c(array_tmp4[4])*expt(glob_h, c(1))*c(factorial_3(3, 4)); if 5 <= ATS_MAX_TERMS then array_y1[5] := temporary; array_y1_higher[1, 5] := temporary end if; temporary := c(temporary)*c(4)/c(glob_h); array_y1_higher[2, 4] := c(temporary) end if end if; kkk := 5; array_tmp1[5] := array_y1[5]; if not array_y2_set_initial[1, 10] then if 5 <= ATS_MAX_TERMS then temporary := c(array_tmp1[5])*expt(glob_h, c(5))*c(factorial_3(4, 9)); if 10 <= ATS_MAX_TERMS then array_y2[10] := temporary; array_y2_higher[1, 10] := temporary end if; temporary := c(temporary)*c(9)/c(glob_h); array_y2_higher[2, 9] := c(temporary); temporary := c(temporary)*c(8)/c(glob_h); array_y2_higher[3, 8] := c(temporary); temporary := c(temporary)*c(7)/c(glob_h); array_y2_higher[4, 7] := c(temporary); temporary := c(temporary)*c(6)/c(glob_h); array_y2_higher[5, 6] := c(temporary); temporary := c(temporary)*c(5)/c(glob_h); array_y2_higher[6, 5] := c(temporary) end if end if; kkk := 6; array_tmp3[5] := array_y2_higher[5, 5]; array_tmp4[5] := neg(array_tmp3[5]); if not array_y1_set_initial[2, 6] then if 5 <= ATS_MAX_TERMS then temporary := c(array_tmp4[5])*expt(glob_h, c(1))*c(factorial_3(4, 5)); if 6 <= ATS_MAX_TERMS then array_y1[6] := temporary; array_y1_higher[1, 6] := temporary end if; temporary := c(temporary)*c(5)/c(glob_h); array_y1_higher[2, 5] := c(temporary) end if end if; kkk := 6; while kkk <= ATS_MAX_TERMS do array_tmp1[kkk] := array_y1[kkk]; order_d := 5; if kkk + order_d <= ATS_MAX_TERMS then if not array_y2_set_initial[1, kkk + order_d] then temporary := c(array_tmp1[kkk])*expt(glob_h, c(order_d))* c(factorial_3(kkk - 1, kkk + order_d - 1)); array_y2[kkk + order_d] := c(temporary); array_y2_higher[1, kkk + order_d] := c(temporary); term := kkk + order_d - 1; adj2 := kkk + order_d - 1; adj3 := 2; while 1 <= term and term <= ATS_MAX_TERMS and adj3 < order_d + 1 do if adj3 <= order_d + 1 then if 0 < adj2 then temporary := c(temporary)*c(adj2)/c(glob_h) else temporary := c(temporary) end if; array_y2_higher[adj3, term] := c(temporary) end if; term := term - 1; adj2 := adj2 - 1; adj3 := adj3 + 1 end do end if end if; if kkk <= ATS_MAX_TERMS then array_tmp3[kkk] := array_y2_higher[5, kkk] end if; array_tmp4[kkk] := neg(array_tmp3[kkk]); order_d := 1; if kkk + order_d <= ATS_MAX_TERMS then if not array_y1_set_initial[2, kkk + order_d] then temporary := c(array_tmp4[kkk])*expt(glob_h, c(order_d))* c(factorial_3(kkk - 1, kkk + order_d - 1)); array_y1[kkk + order_d] := c(temporary); array_y1_higher[1, kkk + order_d] := c(temporary); term := kkk + order_d - 1; adj2 := kkk + order_d - 1; adj3 := 2; while 1 <= term and term <= ATS_MAX_TERMS and adj3 < order_d + 1 do if adj3 <= order_d + 1 then if 0 < adj2 then temporary := c(temporary)*c(adj2)/c(glob_h) else temporary := c(temporary) end if; array_y1_higher[adj3, term] := c(temporary) end if; term := term - 1; adj2 := adj2 - 1; adj3 := adj3 + 1 end do end if end if; kkk := kkk + 1 end do end proc # End Function number 12 #END OUTFILE5 # Begin Function number 12 > main := proc() > #BEGIN OUTFIEMAIN > local d1,d2,d3,d4,est_err_2,niii,done_once,max_terms,display_max, > 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,last_min_pole_est, opt_iter, tmp,subiter, est_needed_step_err,estimated_step_error,min_value,est_answer,found_h,repeat_it; > global > ALWAYS, > INFO, > DEBUGL, > DEBUGMASSIVE, > glob_iolevel, > glob_yes_pole, > glob_no_pole, > glob_not_given, > glob_no_sing_tests, > glob_ratio_test, > glob_three_term_test, > glob_six_term_test, > glob_log_10, > #Top Generate Globals Decl > MAX_UNCHANGED, > glob__small, > glob_small_float, > glob_smallish_float, > glob_large_float, > glob_larger_float, > glob__m2, > glob__m1, > glob__0, > glob__1, > glob__2, > glob__3, > glob__4, > glob__5, > glob__8, > glob__10, > glob__100, > glob__pi, > glob__0_5, > glob__0_8, > glob__m0_8, > glob__0_25, > glob__0_125, > glob_prec, > glob_check_sign, > glob_desired_digits_correct, > glob_max_estimated_step_error, > glob_ratio_of_radius, > glob_percent_done, > glob_total_exp_sec, > glob_optimal_expect_sec, > glob_estimated_size_answer, > glob_almost_1, > glob_clock_sec, > glob_clock_start_sec, > glob_disp_incr, > glob_h, > glob_diff_rc_fm, > glob_diff_rc_fmm1, > glob_diff_rc_fmm2, > glob_diff_ord_fm, > glob_diff_ord_fmm1, > glob_diff_ord_fmm2, > glob_six_term_ord_save, > glob_guess_error_rc, > glob_guess_error_ord, > glob_least_given_sing, > glob_least_ratio_sing, > glob_least_3_sing, > glob_least_6_sing, > glob_last_good_h, > glob_max_h, > glob_min_h, > glob_display_interval, > glob_abserr, > glob_relerr, > glob_min_pole_est, > glob_max_rel_trunc_err, > glob_max_trunc_err, > glob_max_hours, > glob_optimal_clock_start_sec, > glob_optimal_start, > glob_upper_ratio_limit, > glob_lower_ratio_limit, > glob_max_sec, > glob_orig_start_sec, > glob_normmax, > glob_max_minutes, > glob_next_display, > glob_est_digits, > glob_subiter_method, > glob_html_log, > glob_min_good_digits, > glob_good_digits, > glob_min_apfp_est_good_digits, > glob_apfp_est_good_digits, > glob_max_opt_iter, > glob_dump, > glob_djd_debug, > glob_display_flag, > glob_djd_debug2, > glob_h_reason, > 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_not_yet_finished, > glob_initial_pass, > glob_not_yet_start_msg, > glob_reached_optimal_h, > glob_optimal_done, > glob_type_given_pole, > glob_optimize, > glob_look_poles, > glob_dump_closed_form, > glob_max_iter, > glob_no_eqs, > glob_unchanged_h_cnt, > glob_warned, > glob_warned2, > glob_start, > glob_iter, > #Bottom Generate Globals Decl > #BEGIN CONST > array_const_5, > array_const_0D0, > array_const_1, > array_const_4, > #END CONST > array_y2_init, > array_y1_init, > array_norms, > array_fact_1, > array_1st_rel_error, > array_last_rel_error, > array_est_rel_error, > array_max_est_error, > array_type_pole, > array_type_real_pole, > array_type_complex_pole, > array_est_digits, > array_y2, > array_x, > array_y1, > array_tmp0, > array_tmp1, > array_tmp2, > array_tmp3, > array_tmp4, > 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_given_rad_poles, > array_given_ord_poles, > array_rad_test_poles, > array_ord_test_poles, > array_fact_2, > ATS_MAX_TERMS, > glob_last; > ATS_MAX_TERMS := 40; > # before first input block > #BEGIN FIRST INPUT BLOCK > #BEGIN BLOCK 1 > #BEGIN FIRST INPUT BLOCK > Digits:=64; > max_terms:=40; > #END BLOCK 1 > #END FIRST INPUT BLOCK > #START OF INITS AFTER INPUT BLOCK > glob_html_log := true; > #END OF INITS AFTER INPUT BLOCK > # before generate arrays > array_y2_init:= Array(0..(40),[]); > array_y1_init:= Array(0..(40),[]); > array_norms:= Array(0..(40),[]); > array_fact_1:= Array(0..(40),[]); > array_1st_rel_error:= Array(0..(3),[]); > array_last_rel_error:= Array(0..(3),[]); > array_est_rel_error:= Array(0..(3),[]); > array_max_est_error:= Array(0..(3),[]); > array_type_pole:= Array(0..(3),[]); > array_type_real_pole:= Array(0..(3),[]); > array_type_complex_pole:= Array(0..(3),[]); > array_est_digits:= Array(0..(3),[]); > array_y2:= Array(0..(40),[]); > array_x:= Array(0..(40),[]); > array_y1:= Array(0..(40),[]); > array_tmp0:= Array(0..(40),[]); > array_tmp1:= Array(0..(40),[]); > array_tmp2:= Array(0..(40),[]); > array_tmp3:= Array(0..(40),[]); > array_tmp4:= Array(0..(40),[]); > array_m1:= Array(0..(40),[]); > array_y2_higher := Array(0..(6) ,(0..40+ 1),[]); > array_y2_higher_work := Array(0..(6) ,(0..40+ 1),[]); > array_y2_higher_work2 := Array(0..(6) ,(0..40+ 1),[]); > array_y2_set_initial := Array(0..(3) ,(0..40+ 1),[]); > array_y1_higher := Array(0..(2) ,(0..40+ 1),[]); > array_y1_higher_work := Array(0..(2) ,(0..40+ 1),[]); > array_y1_higher_work2 := Array(0..(2) ,(0..40+ 1),[]); > array_y1_set_initial := Array(0..(3) ,(0..40+ 1),[]); > array_given_rad_poles := Array(0..(3) ,(0..3+ 1),[]); > array_given_ord_poles := Array(0..(3) ,(0..3+ 1),[]); > array_rad_test_poles := Array(0..(3) ,(0..4+ 1),[]); > array_ord_test_poles := Array(0..(3) ,(0..4+ 1),[]); > array_fact_2 := Array(0..(40) ,(0..40+ 1),[]); > # before generate constants > # before generate globals definition > #Top Generate Globals Definition > #Bottom Generate Globals Deninition > # before generate const definition > # before arrays initialized > term := 1; > while (term <= 40) do # do number 1 > array_y2_init[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_y1_init[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_norms[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_fact_1[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_1st_rel_error[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_last_rel_error[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_est_rel_error[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_max_est_error[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_type_pole[term] := 0; > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_type_real_pole[term] := 0; > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_type_complex_pole[term] := 0; > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 3) do # do number 1 > array_est_digits[term] := 0; > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_y2[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_x[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_y1[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_tmp0[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_tmp1[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_tmp2[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_tmp3[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_tmp4[term] := c(0.0); > term := term + 1; > od;# end do number 1; > term := 1; > while (term <= 40) do # do number 1 > array_m1[term] := c(0.0); > term := term + 1; > od;# end do number 1; > ord := 1; > while (ord <=6) do # do number 1 > term := 1; > while (term <= 40) do # do number 2 > array_y2_higher[ord,term] := c(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 <= 40) do # do number 2 > array_y2_higher_work[ord,term] := c(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 <= 40) do # do number 2 > array_y2_higher_work2[ord,term] := c(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 <= 40) do # do number 2 > array_y2_set_initial[ord,term] := c(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 <= 40) do # do number 2 > array_y1_higher[ord,term] := c(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 <= 40) do # do number 2 > array_y1_higher_work[ord,term] := c(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 <= 40) do # do number 2 > array_y1_higher_work2[ord,term] := c(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 <= 40) do # do number 2 > array_y1_set_initial[ord,term] := c(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] := c(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] := c(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 <= 4) do # do number 2 > array_rad_test_poles[ord,term] := c(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 <= 4) do # do number 2 > array_ord_test_poles[ord,term] := c(0.0); > term := term + 1; > od;# end do number 2; > ord := ord + 1; > od;# end do number 1; > ord := 1; > while (ord <=40) do # do number 1 > term := 1; > while (term <= 40) do # do number 2 > array_fact_2[ord,term] := c(0.0); > term := term + 1; > od;# end do number 2; > ord := ord + 1; > od;# end do number 1; > # before symbols initialized > #BEGIN SYMBOLS INITIALIZATED > zero_ats_ar(array_y2); > zero_ats_ar(array_x); > zero_ats_ar(array_y1); > zero_ats_ar(array_tmp0); > zero_ats_ar(array_tmp1); > zero_ats_ar(array_tmp2); > zero_ats_ar(array_tmp3); > zero_ats_ar(array_tmp4); > zero_ats_ar(array_m1); > zero_ats_ar(array_const_5); > array_const_5[1] := c(5); > zero_ats_ar(array_const_0D0); > array_const_0D0[1] := c(0.0); > zero_ats_ar(array_const_1); > array_const_1[1] := c(1); > zero_ats_ar(array_const_4); > array_const_4[1] := c(4); > zero_ats_ar(array_m1); > array_m1[1] := glob__m1; > #END SYMBOLS INITIALIZATED > # before generate factorials init > #Initing Factorial Tables > iiif := 0; > while (iiif <= ATS_MAX_TERMS) do # do number 1 > jjjf := 0; > while (jjjf <= ATS_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 Table > ALWAYS := 1; > INFO := 2; > DEBUGL := 3; > DEBUGMASSIVE := 4; > glob_iolevel := 5; > glob_yes_pole := 4; > glob_no_pole := 3; > glob_not_given := 0; > glob_no_sing_tests := 4; > glob_ratio_test := 1; > glob_three_term_test := 2; > glob_six_term_test := 3; > glob_log_10 := log(c(10.0)); > MAX_UNCHANGED := 10; > glob__small := c(0.1e-50); > glob_small_float := c(0.1e-50); > glob_smallish_float := c(0.1e-60); > glob_large_float := c(1.0e100); > glob_larger_float := c(1.1e100); > glob__m2 := c(-2); > glob__m1 := c(-1); > glob__0 := c(0); > glob__1 := c(1); > glob__2 := c(2); > glob__3 := c(3); > glob__4 := c(4); > glob__5 := c(5); > glob__8 := c(8); > glob__10 := c(10); > glob__100 := c(100); > glob__pi := c(0.0); > glob__0_5 := c(0.5); > glob__0_8 := c(0.8); > glob__m0_8 := c(-0.8); > glob__0_25 := c(0.25); > glob__0_125 := c(0.125); > glob_prec := c(1.0e-16); > glob_check_sign := c(1.0); > glob_desired_digits_correct := c(8.0); > glob_max_estimated_step_error := c(0.0); > glob_ratio_of_radius := c(0.1); > glob_percent_done := c(0.0); > glob_total_exp_sec := c(0.1); > glob_optimal_expect_sec := c(0.1); > glob_estimated_size_answer := c(100.0); > glob_almost_1 := c(0.9990); > glob_clock_sec := c(0.0); > glob_clock_start_sec := c(0.0); > glob_disp_incr := c(0.1); > glob_h := c(0.1); > glob_diff_rc_fm := c(0.1); > glob_diff_rc_fmm1 := c(0.1); > glob_diff_rc_fmm2 := c(0.1); > glob_diff_ord_fm := c(0.1); > glob_diff_ord_fmm1 := c(0.1); > glob_diff_ord_fmm2 := c(0.1); > glob_six_term_ord_save := c(0.1); > glob_guess_error_rc := c(0.1); > glob_guess_error_ord := c(0.1); > glob_least_given_sing := c(9.9e200); > glob_least_ratio_sing := c(9.9e200); > glob_least_3_sing := c(9.9e100); > glob_least_6_sing := c(9.9e100); > glob_last_good_h := c(0.1); > glob_max_h := c(0.1); > glob_min_h := c(0.000001); > glob_display_interval := c(0.1); > glob_abserr := c(0.1e-10); > glob_relerr := c(0.1e-10); > glob_min_pole_est := c(0.1e+10); > glob_max_rel_trunc_err := c(0.1e-10); > glob_max_trunc_err := c(0.1e-10); > glob_max_hours := c(0.0); > glob_optimal_clock_start_sec := c(0.0); > glob_optimal_start := c(0.0); > glob_upper_ratio_limit := c(1.0001); > glob_lower_ratio_limit := c(0.9999); > glob_max_sec := c(10000.0); > glob_orig_start_sec := c(0.0); > glob_normmax := c(0.0); > glob_max_minutes := c(0.0); > glob_next_display := c(0.0); > glob_est_digits := 1; > glob_subiter_method := 3; > glob_html_log := true; > glob_min_good_digits := 99999; > glob_good_digits := 0; > glob_min_apfp_est_good_digits := 99999; > glob_apfp_est_good_digits := 0; > glob_max_opt_iter := 10; > glob_dump := false; > glob_djd_debug := true; > glob_display_flag := true; > glob_djd_debug2 := true; > glob_h_reason := 0; > 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_not_yet_finished := true; > glob_initial_pass := true; > glob_not_yet_start_msg := true; > glob_reached_optimal_h := false; > glob_optimal_done := false; > glob_type_given_pole := 0; > glob_optimize := false; > glob_look_poles := false; > glob_dump_closed_form := false; > glob_max_iter := 1000; > glob_no_eqs := 0; > glob_unchanged_h_cnt := 0; > glob_warned := false; > glob_warned2 := false; > glob_start := 0; > glob_iter := 0; > # before generate set diff initial > 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] := true; > 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_y2_set_initial[1,31] := false; > array_y2_set_initial[1,32] := false; > array_y2_set_initial[1,33] := false; > array_y2_set_initial[1,34] := false; > array_y2_set_initial[1,35] := false; > array_y2_set_initial[1,36] := false; > array_y2_set_initial[1,37] := false; > array_y2_set_initial[1,38] := false; > array_y2_set_initial[1,39] := false; > array_y2_set_initial[1,40] := 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; > array_y1_set_initial[2,31] := false; > array_y1_set_initial[2,32] := false; > array_y1_set_initial[2,33] := false; > array_y1_set_initial[2,34] := false; > array_y1_set_initial[2,35] := false; > array_y1_set_initial[2,36] := false; > array_y1_set_initial[2,37] := false; > array_y1_set_initial[2,38] := false; > array_y1_set_initial[2,39] := false; > array_y1_set_initial[2,40] := false; > # before generate init omniout const > ALWAYS := 1; > INFO := 2; > DEBUGL := 3; > DEBUGMASSIVE := 4; > ATS_MAX_TERMS := 40; > glob_iolevel := INFO; > # set default block > #Write Set Defaults > glob_orig_start_sec := elapsed_time_seconds(); > 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/mtest7postode.ode#################"); > omniout_str(ALWAYS,"diff ( y2 , x , 5 ) = y1 ; "); > omniout_str(ALWAYS,"diff ( y1 , x , 1 ) = neg ( diff ( y2 , x , 4 ) ) ; "); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#BEGIN FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"Digits:=64;"); > omniout_str(ALWAYS,"max_terms:=40;"); > omniout_str(ALWAYS,"!"); > omniout_str(ALWAYS,"#END FIRST INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"x_start := c(0.1);"); > omniout_str(ALWAYS,"x_end := c(0.7);"); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > 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[3 + 1] := exact_soln_y2ppp(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_h := c(0.1);"); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,""); > omniout_str(ALWAYS,"glob_type_given_pole := 3;"); > omniout_str(ALWAYS,"#END SECOND INPUT BLOCK"); > omniout_str(ALWAYS,"#BEGIN OVERRIDE BLOCK"); > omniout_str(ALWAYS,"glob_desired_digits_correct:=8;"); > omniout_str(ALWAYS,"glob_max_minutes:=(3.0);"); > omniout_str(ALWAYS,"glob_subiter_method:=3;"); > omniout_str(ALWAYS,"glob_max_iter:=100000;"); > omniout_str(ALWAYS,"glob_upper_ratio_limit:=c(1.0000001);"); > omniout_str(ALWAYS,"glob_lower_ratio_limit:=c(0.9999999);"); > omniout_str(ALWAYS,"glob_look_poles:=true;"); > omniout_str(ALWAYS,"glob_h:=c(0.005);"); > omniout_str(ALWAYS,"glob_display_interval:=c(0.01);"); > 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(c(x)) );"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_y2 := proc(x)"); > omniout_str(ALWAYS,"return( sin(c(x)) + c(10.0) * c(x) + c(10.0));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_y2p := proc(x)"); > omniout_str(ALWAYS,"return( cos(c(x)) + c(10.0));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_y2pp := proc(x)"); > omniout_str(ALWAYS,"return( neg(sin(c(x))));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_y2ppp := proc(x)"); > omniout_str(ALWAYS,"return( neg(cos(c(x))));"); > omniout_str(ALWAYS,"end;"); > omniout_str(ALWAYS,"exact_soln_y2pppp := proc(x)"); > omniout_str(ALWAYS,"return( sin(c(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 := glob__0; > glob_smallish_float := glob__0; > glob_large_float := c(1.0e100); > glob_larger_float := c( 1.1e100); > glob_almost_1 := c( 0.99); > # before second block > #TOP SECOND INPUT BLOCK > #BEGIN SECOND INPUT BLOCK > #BEGIN BLOCK 2 > #END FIRST INPUT BLOCK > #BEGIN SECOND INPUT BLOCK > x_start := c(0.1); > x_end := c(0.7); > 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[3 + 1] := exact_soln_y2ppp(x_start); > array_y2_init[4 + 1] := exact_soln_y2pppp(x_start); > glob_look_poles := true; > glob_max_h := c(0.1); > glob_type_given_pole := 3; > #END SECOND INPUT BLOCK > #BEGIN OVERRIDE BLOCK > glob_desired_digits_correct:=8; > glob_max_minutes:=(3.0); > glob_subiter_method:=3; > glob_max_iter:=100000; > glob_upper_ratio_limit:=c(1.0000001); > glob_lower_ratio_limit:=c(0.9999999); > glob_look_poles:=true; > glob_h:=c(0.005); > glob_display_interval:=c(0.01); > #END OVERRIDE BLOCK > #END BLOCK 2 > #END SECOND INPUT BLOCK > #BEGIN INITS AFTER SECOND INPUT BLOCK > glob_last_good_h := glob_h; > glob_max_sec := (60.0) * (glob_max_minutes) + (3600.0) * (glob_max_hours); > # after second input block > glob_check_sign := c(my_check_sign(x_start,x_end)); > glob__pi := arccos(glob__m1); > glob_prec = expt(10.0,c(-Digits)); > if (glob_optimize) then # if number 17 > #BEGIN OPTIMIZE CODE > omniout_str(ALWAYS,"START of Optimize"); > #Start Series -- INITIALIZE FOR OPTIMIZE > found_h := false; > glob_min_pole_est := glob_larger_float; > last_min_pole_est := glob_larger_float; > glob_least_given_sing := glob_larger_float; > glob_least_ratio_sing := glob_larger_float; > glob_least_3_sing := glob_larger_float; > glob_least_6_sing := glob_larger_float; > glob_min_h := float_abs(glob_min_h) * glob_check_sign; > glob_max_h := float_abs(glob_max_h) * glob_check_sign; > glob_h := float_abs(glob_min_h) * glob_check_sign; > glob_display_interval := c((float_abs(c(glob_display_interval))) * (glob_check_sign)); > display_max := c(x_end) - c(x_start)/glob__10; > if ((glob_display_interval) > (display_max)) then # if number 18 > glob_display_interval := c(display_max); > fi;# end if 18; > chk_data(); > min_value := glob_larger_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 := glob_small_float; > while ((opt_iter <= 100) and ( not found_h)) do # do number 1 > omniout_int(ALWAYS,"opt_iter",32,opt_iter,4,""); > array_x[1] := c(x_start); > array_x[2] := c(glob_h); > glob_next_display := c(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 , c(term_no - 1)) / c(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; > if (term_no < ATS_MAX_TERMS) then # if number 18 > array_y2_higher[r_order,term_no] := array_y2_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1))); > fi;# end if 18; > 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 , c(term_no - 1)) / c(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; > if (term_no < ATS_MAX_TERMS) then # if number 18 > array_y1_higher[r_order,term_no] := array_y1_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1))); > fi;# end if 18; > 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 18 > atomall(); > elif > (glob_subiter_method = 2 ) then # if number 19 > subiter := 1; > while (subiter <= 6) do # do number 2 > atomall(); > subiter := subiter + 1; > od;# end do number 2; > else > subiter := 1; > while (subiter <= 6 + ATS_MAX_TERMS) do # do number 2 > atomall(); > subiter := subiter + 1; > od;# end do number 2; > fi;# end if 19; > if (glob_check_sign * glob_min_h >= glob_check_sign * glob_h) then # if number 19 > omniout_str(ALWAYS,"SETTING H FOR MIN H"); > glob_h := glob_check_sign * float_abs(glob_min_h); > glob_h_reason := 1; > found_h := true; > fi;# end if 19; > if (glob_check_sign * glob_display_interval <= glob_check_sign * glob_h) then # if number 19 > omniout_str(ALWAYS,"SETTING H FOR DISPLAY INTERVAL"); > glob_h_reason := 2; > glob_h := glob_display_interval; > found_h := true; > fi;# end if 19; > if (glob_look_poles) then # if number 19 > check_for_pole(); > fi;# end if 19; > if ( not found_h) then # if number 19 > est_answer := est_size_answer(); > 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 := test_suggested_h(); > omniout_float(ALWAYS,"estimated_step_error",32,estimated_step_error,32,""); > if (estimated_step_error < est_needed_step_err) then # if number 20 > omniout_str(ALWAYS,"Double H and LOOP"); > glob_h := glob_h*glob__2; > else > omniout_str(ALWAYS,"Found H for OPTIMAL"); > found_h := true; > glob_h_reason := 3; > glob_h := glob_h/glob__2; > fi;# end if 20; > fi;# end if 19; > opt_iter := opt_iter + 1; > od;# end do number 1; > if (( not found_h) and (opt_iter = 1)) then # if number 19 > omniout_str(ALWAYS,"Beginning glob_h too large."); > found_h := false; > fi;# end if 19; > if (glob_check_sign * glob_max_h <= glob_check_sign * glob_h) then # if number 19 > omniout_str(ALWAYS,"SETTING H FOR MAX H"); > glob_h := glob_check_sign * float_abs(glob_max_h); > glob_h_reason := 1; > found_h := true; > fi;# end if 19; > else > found_h := true; > glob_h := glob_h * glob_check_sign; > fi;# end if 18; > #END OPTIMIZE CODE > if (glob_html_log) then # if number 18 > html_log_file := fopen("entry.html",WRITE,TEXT); > fi;# end if 18; > #BEGIN SOLUTION CODE > if (found_h) then # if number 18 > omniout_str(ALWAYS,"START of Soultion"); > #Start Series -- INITIALIZE FOR SOLUTION > array_x[1] := c(x_start); > array_x[2] := c(glob_h); > glob_next_display := c(x_start); > glob_min_pole_est := glob_larger_float; > glob_least_given_sing := glob_larger_float; > glob_least_ratio_sing := glob_larger_float; > glob_least_3_sing := glob_larger_float; > glob_least_6_sing := glob_larger_float; > 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 , c(term_no - 1)) / c(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; > if (term_no < ATS_MAX_TERMS) then # if number 19 > array_y2_higher[r_order,term_no] := array_y2_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1))); > fi;# end if 19; > 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 , c(term_no - 1)) / c(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; > if (term_no < ATS_MAX_TERMS) then # if number 19 > array_y1_higher[r_order,term_no] := array_y1_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1))); > fi;# end if 19; > 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_iter := 0; > omniout_str(DEBUGL," "); > glob_reached_optimal_h := true; > glob_optimal_clock_start_sec := elapsed_time_seconds(); > while ((glob_iter < glob_max_iter) and (glob_check_sign * array_x[1] < glob_check_sign * x_end ) and (((glob_clock_sec) - (glob_orig_start_sec)) < (glob_max_sec))) do # do number 1 > #left paren 0001C > if (reached_interval()) then # if number 19 > omniout_str(INFO," "); > omniout_str(INFO,"TOP MAIN SOLVE Loop"); > fi;# end if 19; > glob_iter := glob_iter + 1; > glob_clock_sec := elapsed_time_seconds(); > track_estimated_error(); > if (glob_subiter_method = 1 ) then # if number 19 > atomall(); > elif > (glob_subiter_method = 2 ) then # if number 20 > subiter := 1; > while (subiter <= 6) do # do number 2 > atomall(); > subiter := subiter + 1; > od;# end do number 2; > else > subiter := 1; > while (subiter <= 6 + ATS_MAX_TERMS) do # do number 2 > atomall(); > subiter := subiter + 1; > od;# end do number 2; > fi;# end if 20; > track_estimated_error(); > display_alot(current_iter); > if (glob_look_poles) then # if number 20 > check_for_pole(); > fi;# end if 20; > if (reached_interval()) then # if number 20 > glob_next_display := glob_next_display + glob_display_interval; > fi;# end if 20; > 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 := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[6,iii] := array_y2_higher[6,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 6; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 5; > calc_term := 2; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[5,iii] := array_y2_higher[5,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 5; > calc_term := 2; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 5; > calc_term := 1; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[5,iii] := array_y2_higher[5,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 5; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 4; > calc_term := 3; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 4; > calc_term := 3; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 4; > calc_term := 2; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 4; > calc_term := 2; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 4; > calc_term := 1; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[4,iii] := array_y2_higher[4,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 4; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 3; > calc_term := 4; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 3; > calc_term := 4; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 3; > calc_term := 3; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 3; > calc_term := 3; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 3; > calc_term := 2; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 3; > calc_term := 2; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 3; > calc_term := 1; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[3,iii] := array_y2_higher[3,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 3; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 5; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 5; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 4; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 4; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 3; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 3; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 2; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 2; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 2; > calc_term := 1; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[2,iii] := array_y2_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 6; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 6; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 5; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 5; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 4; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 4; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 3; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 3; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 2; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 2; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =1 > #BEFORE ADJUST SUBSERIES EQ =1 > ord := 1; > calc_term := 1; > #adjust_subseriesarray_y2 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y2_higher_work[1,iii] := array_y2_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 1; > #sum_subseriesarray_y2 > iii := ATS_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 , c(calc_term - 1)) / c(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 := ATS_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 := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y1_higher_work[2,iii] := array_y1_higher[2,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 2; > calc_term := 1; > #sum_subseriesarray_y1 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 1; > calc_term := 2; > #adjust_subseriesarray_y1 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y1_higher_work[1,iii] := array_y1_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 2; > #sum_subseriesarray_y1 > iii := ATS_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 , c(calc_term - 1)) / c(factorial_1(calc_term - 1)); > #AFTER SUM SUBSERIES EQ =2 > #BEFORE ADJUST SUBSERIES EQ =2 > ord := 1; > calc_term := 1; > #adjust_subseriesarray_y1 > iii := ATS_MAX_TERMS; > while (iii >= calc_term) do # do number 2 > array_y1_higher_work[1,iii] := array_y1_higher[1,iii] / expt(glob_h , c(calc_term - 1)) / c(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 := glob__0; > ord := 1; > calc_term := 1; > #sum_subseriesarray_y1 > iii := ATS_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 , c(calc_term - 1)) / c(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 := ATS_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 20 > omniout_str(ALWAYS,"Maximum Iterations Reached before Solution Completed!"); > fi;# end if 20; > if (elapsed_time_seconds() - (glob_orig_start_sec) >= (glob_max_sec )) then # if number 20 > omniout_str(ALWAYS,"Maximum Time Reached before Solution Completed!"); > fi;# end if 20; > glob_clock_sec := elapsed_time_seconds(); > omniout_str(INFO,"diff ( y2 , x , 5 ) = y1 ; "); > omniout_str(INFO,"diff ( y1 , x , 1 ) = neg ( diff ( y2 , x , 4 ) ) ; "); > omniout_int(INFO,"Iterations ",32,glob_iter,4," ") > ; > prog_report(x_start,x_end); > if (glob_html_log) then # if number 20 > logstart(html_log_file); > logitem_str(html_log_file,"2015-05-02T21:41:53-05:00") > ; > logitem_str(html_log_file,"Maple") > ; > logitem_str(html_log_file,"mtest7") > ; > 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_h_reason(html_log_file) > ; > logitem_integer(html_log_file,Digits) > ; > ; > logitem_float(html_log_file,glob_desired_digits_correct) > ; > if (array_est_digits[1] <> -16) then # if number 21 > logitem_integer(html_log_file,array_est_digits[1]) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 21; > if (glob_min_good_digits <> -16) then # if number 21 > logitem_integer(html_log_file,glob_min_good_digits) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 21; > if (glob_good_digits <> -16) then # if number 21 > logitem_integer(html_log_file,glob_good_digits) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 21; > logitem_str(html_log_file,"NA") > ; > logitem_str(html_log_file,"NA") > ; > logitem_integer(html_log_file,ATS_MAX_TERMS) > ; > if (glob_type_given_pole = 0) then # if number 21 > logitem_str(html_log_file,"Not Given") > ; > logitem_str(html_log_file,"NA") > ; > elif > (glob_type_given_pole = 4) then # if number 22 > logitem_str(html_log_file,"No Solution") > ; > logitem_str(html_log_file,"NA") > ; > elif > (glob_type_given_pole = 5) then # if number 23 > logitem_str(html_log_file,"Some Pole") > ; > logitem_str(html_log_file,"????") > ; > elif > (glob_type_given_pole = 3) then # if number 24 > logitem_str(html_log_file,"No Pole") > ; > logitem_str(html_log_file,"NA") > ; > elif > (glob_type_given_pole = 1) then # if number 25 > logitem_str(html_log_file,"Real Sing") > ; > logitem_float(html_log_file,glob_least_given_sing) > ; > elif > (glob_type_given_pole = 2) then # if number 26 > logitem_str(html_log_file,"Complex Sing") > ; > logitem_float(html_log_file,glob_least_given_sing) > ; > fi;# end if 26; > if (glob_least_ratio_sing < glob_large_float) then # if number 26 > logitem_float(html_log_file,glob_least_ratio_sing) > ; > else > logitem_str(html_log_file,"NONE") > ; > fi;# end if 26; > if (glob_least_3_sing < glob_large_float) then # if number 26 > logitem_float(html_log_file,glob_least_3_sing) > ; > else > logitem_str(html_log_file,"NONE") > ; > fi;# end if 26; > if (glob_least_6_sing < glob_large_float) then # if number 26 > logitem_float(html_log_file,glob_least_6_sing) > ; > else > logitem_str(html_log_file,"NONE") > ; > fi;# end if 26; > logitem_integer(html_log_file,glob_iter) > ; > logitem_time(html_log_file,(glob_clock_sec)) > ; > if (c(glob_percent_done) < glob__100) then # if number 26 > logitem_time(html_log_file,(glob_total_exp_sec)) > ; > 0; > else > logitem_str(html_log_file,"Done") > ; > 0; > fi;# end if 26; > log_revs(html_log_file," 308.maple.seems.ok ") > ; > logitem_str(html_log_file,"mtest7 diffeq.mxt") > ; > logitem_str(html_log_file,"mtest7 maple results") > ; > logitem_str(html_log_file,"OK") > ; > 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 ) = neg ( diff ( y2 , x , 4 ) ) ; ") > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > ; > logditto(html_log_file) > ; > if (array_est_digits[2] <> -16) then # if number 26 > logitem_integer(html_log_file,array_est_digits[2]) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 26; > if (glob_min_good_digits <> -16) then # if number 26 > logitem_integer(html_log_file,glob_min_good_digits) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 26; > if (glob_good_digits <> -16) then # if number 26 > logitem_integer(html_log_file,glob_good_digits) > ; > else > logitem_str(html_log_file,"Unknown") > ; > fi;# end if 26; > logitem_str(html_log_file,"NA") > ; > logitem_str(html_log_file,"NA") > ; > logditto(html_log_file) > ; > if (glob_type_given_pole = 0) then # if number 26 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > elif > (glob_type_given_pole = 4) then # if number 27 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > elif > (glob_type_given_pole = 5) then # if number 28 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > elif > (glob_type_given_pole = 3) then # if number 29 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > elif > (glob_type_given_pole = 1) then # if number 30 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > elif > (glob_type_given_pole = 2) then # if number 31 > logditto(html_log_file) > ; > logditto(html_log_file) > ; > fi;# end if 31; > if (glob_least_ratio_sing < glob_large_float) then # if number 31 > logditto(html_log_file) > ; > else > logditto(html_log_file) > ; > fi;# end if 31; > if (glob_least_3_sing < glob_large_float) then # if number 31 > logditto(html_log_file) > ; > else > logditto(html_log_file) > ; > fi;# end if 31; > if (glob_least_6_sing < glob_large_float) then # if number 31 > logditto(html_log_file) > ; > else > logditto(html_log_file) > ; > fi;# end if 31; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > if (c(glob_percent_done) < glob__100) then # if number 31 > logditto(html_log_file) > ; > 0; > else > logditto(html_log_file) > ; > 0; > fi;# end if 31; > logditto(html_log_file); > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logditto(html_log_file) > ; > logend(html_log_file) > ; > ; > fi;# end if 30; > if (glob_html_log) then # if number 30 > fclose(html_log_file); > fi;# end if 30 > ; > ;; > fi;# end if 29 > #END OUTFILEMAIN > end; main := proc() local d1, d2, d3, d4, est_err_2, niii, done_once, max_terms, display_max, 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, last_min_pole_est, opt_iter, tmp, subiter, est_needed_step_err, estimated_step_error, min_value, est_answer, found_h, repeat_it; global ALWAYS, INFO, DEBUGL, DEBUGMASSIVE, glob_iolevel, glob_yes_pole, glob_no_pole, glob_not_given, glob_no_sing_tests, glob_ratio_test, glob_three_term_test, glob_six_term_test, glob_log_10, MAX_UNCHANGED, glob__small, glob_small_float, glob_smallish_float, glob_large_float, glob_larger_float, glob__m2, glob__m1, glob__0, glob__1, glob__2, glob__3, glob__4, glob__5, glob__8, glob__10, glob__100, glob__pi, glob__0_5, glob__0_8, glob__m0_8, glob__0_25, glob__0_125, glob_prec, glob_check_sign, glob_desired_digits_correct, glob_max_estimated_step_error, glob_ratio_of_radius, glob_percent_done, glob_total_exp_sec, glob_optimal_expect_sec, glob_estimated_size_answer, glob_almost_1, glob_clock_sec, glob_clock_start_sec, glob_disp_incr, glob_h, glob_diff_rc_fm, glob_diff_rc_fmm1, glob_diff_rc_fmm2, glob_diff_ord_fm, glob_diff_ord_fmm1, glob_diff_ord_fmm2, glob_six_term_ord_save, glob_guess_error_rc, glob_guess_error_ord, glob_least_given_sing, glob_least_ratio_sing, glob_least_3_sing, glob_least_6_sing, glob_last_good_h, glob_max_h, glob_min_h, glob_display_interval, glob_abserr, glob_relerr, glob_min_pole_est, glob_max_rel_trunc_err, glob_max_trunc_err, glob_max_hours, glob_optimal_clock_start_sec, glob_optimal_start, glob_upper_ratio_limit, glob_lower_ratio_limit, glob_max_sec, glob_orig_start_sec, glob_normmax, glob_max_minutes, glob_next_display, glob_est_digits, glob_subiter_method, glob_html_log, glob_min_good_digits, glob_good_digits, glob_min_apfp_est_good_digits, glob_apfp_est_good_digits, glob_max_opt_iter, glob_dump, glob_djd_debug, glob_display_flag, glob_djd_debug2, glob_h_reason, 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_not_yet_finished, glob_initial_pass, glob_not_yet_start_msg, glob_reached_optimal_h, glob_optimal_done, glob_type_given_pole, glob_optimize, glob_look_poles, glob_dump_closed_form, glob_max_iter, glob_no_eqs, glob_unchanged_h_cnt, glob_warned, glob_warned2, glob_start, glob_iter, array_const_5, array_const_0D0, array_const_1, array_const_4, array_y2_init, array_y1_init, array_norms, array_fact_1, array_1st_rel_error, array_last_rel_error, array_est_rel_error, array_max_est_error, array_type_pole, array_type_real_pole, array_type_complex_pole, array_est_digits, array_y2, array_x, array_y1, array_tmp0, array_tmp1, array_tmp2, array_tmp3, array_tmp4, 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_given_rad_poles, array_given_ord_poles, array_rad_test_poles, array_ord_test_poles, array_fact_2, ATS_MAX_TERMS, glob_last; ATS_MAX_TERMS := 40; Digits := 64; max_terms := 40; glob_html_log := true; array_y2_init := Array(0 .. 40, []); array_y1_init := Array(0 .. 40, []); array_norms := Array(0 .. 40, []); array_fact_1 := Array(0 .. 40, []); array_1st_rel_error := Array(0 .. 3, []); array_last_rel_error := Array(0 .. 3, []); array_est_rel_error := Array(0 .. 3, []); array_max_est_error := Array(0 .. 3, []); array_type_pole := Array(0 .. 3, []); array_type_real_pole := Array(0 .. 3, []); array_type_complex_pole := Array(0 .. 3, []); array_est_digits := Array(0 .. 3, []); array_y2 := Array(0 .. 40, []); array_x := Array(0 .. 40, []); array_y1 := Array(0 .. 40, []); array_tmp0 := Array(0 .. 40, []); array_tmp1 := Array(0 .. 40, []); array_tmp2 := Array(0 .. 40, []); array_tmp3 := Array(0 .. 40, []); array_tmp4 := Array(0 .. 40, []); array_m1 := Array(0 .. 40, []); array_y2_higher := Array(0 .. 6, 0 .. 41, []); array_y2_higher_work := Array(0 .. 6, 0 .. 41, []); array_y2_higher_work2 := Array(0 .. 6, 0 .. 41, []); array_y2_set_initial := Array(0 .. 3, 0 .. 41, []); array_y1_higher := Array(0 .. 2, 0 .. 41, []); array_y1_higher_work := Array(0 .. 2, 0 .. 41, []); array_y1_higher_work2 := Array(0 .. 2, 0 .. 41, []); array_y1_set_initial := Array(0 .. 3, 0 .. 41, []); array_given_rad_poles := Array(0 .. 3, 0 .. 4, []); array_given_ord_poles := Array(0 .. 3, 0 .. 4, []); array_rad_test_poles := Array(0 .. 3, 0 .. 5, []); array_ord_test_poles := Array(0 .. 3, 0 .. 5, []); array_fact_2 := Array(0 .. 40, 0 .. 41, []); term := 1; while term <= 40 do array_y2_init[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_y1_init[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_norms[term] := c(0.); term := term + 1 end do ; term := 1; while term <= 40 do array_fact_1[term] := c(0.); term := term + 1 end do; term := 1; while term <= 3 do array_1st_rel_error[term] := c(0.); term := term + 1 end do; term := 1; while term <= 3 do array_last_rel_error[term] := c(0.); term := term + 1 end do; term := 1; while term <= 3 do array_est_rel_error[term] := c(0.); term := term + 1 end do; term := 1; while term <= 3 do array_max_est_error[term] := c(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 <= 3 do array_est_digits[term] := 0; term := term + 1 end do ; term := 1; while term <= 40 do array_y2[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_x[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_y1[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_tmp0[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_tmp1[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_tmp2[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_tmp3[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_tmp4[term] := c(0.); term := term + 1 end do; term := 1; while term <= 40 do array_m1[term] := c(0.); term := term + 1 end do; ord := 1; while ord <= 6 do term := 1; while term <= 40 do array_y2_higher[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 6 do term := 1; while term <= 40 do array_y2_higher_work[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 6 do term := 1; while term <= 40 do array_y2_higher_work2[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= 40 do array_y2_set_initial[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= 40 do array_y1_higher[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= 40 do array_y1_higher_work[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 2 do term := 1; while term <= 40 do array_y1_higher_work2[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= 40 do array_y1_set_initial[ord, term] := c(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] := c(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] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= 4 do array_rad_test_poles[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 3 do term := 1; while term <= 4 do array_ord_test_poles[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; ord := 1; while ord <= 40 do term := 1; while term <= 40 do array_fact_2[ord, term] := c(0.); term := term + 1 end do; ord := ord + 1 end do; zero_ats_ar(array_y2); zero_ats_ar(array_x); zero_ats_ar(array_y1); zero_ats_ar(array_tmp0); zero_ats_ar(array_tmp1); zero_ats_ar(array_tmp2); zero_ats_ar(array_tmp3); zero_ats_ar(array_tmp4); zero_ats_ar(array_m1); zero_ats_ar(array_const_5); array_const_5[1] := c(5); zero_ats_ar(array_const_0D0); array_const_0D0[1] := c(0.); zero_ats_ar(array_const_1); array_const_1[1] := c(1); zero_ats_ar(array_const_4); array_const_4[1] := c(4); zero_ats_ar(array_m1); array_m1[1] := glob__m1; iiif := 0; while iiif <= ATS_MAX_TERMS do jjjf := 0; while jjjf <= ATS_MAX_TERMS do array_fact_1[iiif] := 0; array_fact_2[iiif, jjjf] := 0; jjjf := jjjf + 1 end do; iiif := iiif + 1 end do; ALWAYS := 1; INFO := 2; DEBUGL := 3; DEBUGMASSIVE := 4; glob_iolevel := 5; glob_yes_pole := 4; glob_no_pole := 3; glob_not_given := 0; glob_no_sing_tests := 4; glob_ratio_test := 1; glob_three_term_test := 2; glob_six_term_test := 3; glob_log_10 := log(c(10.0)); MAX_UNCHANGED := 10; glob__small := c(0.1*10^(-50)); glob_small_float := c(0.1*10^(-50)); glob_smallish_float := c(0.1*10^(-60)); glob_large_float := c(0.10*10^101); glob_larger_float := c(0.11*10^101); glob__m2 := c(-2); glob__m1 := c(-1); glob__0 := c(0); glob__1 := c(1); glob__2 := c(2); glob__3 := c(3); glob__4 := c(4); glob__5 := c(5); glob__8 := c(8); glob__10 := c(10); glob__100 := c(100); glob__pi := c(0.); glob__0_5 := c(0.5); glob__0_8 := c(0.8); glob__m0_8 := c(-0.8); glob__0_25 := c(0.25); glob__0_125 := c(0.125); glob_prec := c(0.10*10^(-15)); glob_check_sign := c(1.0); glob_desired_digits_correct := c(8.0); glob_max_estimated_step_error := c(0.); glob_ratio_of_radius := c(0.1); glob_percent_done := c(0.); glob_total_exp_sec := c(0.1); glob_optimal_expect_sec := c(0.1); glob_estimated_size_answer := c(100.0); glob_almost_1 := c(0.9990); glob_clock_sec := c(0.); glob_clock_start_sec := c(0.); glob_disp_incr := c(0.1); glob_h := c(0.1); glob_diff_rc_fm := c(0.1); glob_diff_rc_fmm1 := c(0.1); glob_diff_rc_fmm2 := c(0.1); glob_diff_ord_fm := c(0.1); glob_diff_ord_fmm1 := c(0.1); glob_diff_ord_fmm2 := c(0.1); glob_six_term_ord_save := c(0.1); glob_guess_error_rc := c(0.1); glob_guess_error_ord := c(0.1); glob_least_given_sing := c(0.99*10^201); glob_least_ratio_sing := c(0.99*10^201); glob_least_3_sing := c(0.99*10^101); glob_least_6_sing := c(0.99*10^101); glob_last_good_h := c(0.1); glob_max_h := c(0.1); glob_min_h := c(0.1*10^(-5)); glob_display_interval := c(0.1); glob_abserr := c(0.1*10^(-10)); glob_relerr := c(0.1*10^(-10)); glob_min_pole_est := c(0.1*10^10); glob_max_rel_trunc_err := c(0.1*10^(-10)); glob_max_trunc_err := c(0.1*10^(-10)); glob_max_hours := c(0.); glob_optimal_clock_start_sec := c(0.); glob_optimal_start := c(0.); glob_upper_ratio_limit := c(1.0001); glob_lower_ratio_limit := c(0.9999); glob_max_sec := c(10000.0); glob_orig_start_sec := c(0.); glob_normmax := c(0.); glob_max_minutes := c(0.); glob_next_display := c(0.); glob_est_digits := 1; glob_subiter_method := 3; glob_html_log := true; glob_min_good_digits := 99999; glob_good_digits := 0; glob_min_apfp_est_good_digits := 99999; glob_apfp_est_good_digits := 0; glob_max_opt_iter := 10; glob_dump := false; glob_djd_debug := true; glob_display_flag := true; glob_djd_debug2 := true; glob_h_reason := 0; 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_not_yet_finished := true; glob_initial_pass := true; glob_not_yet_start_msg := true; glob_reached_optimal_h := false; glob_optimal_done := false; glob_type_given_pole := 0; glob_optimize := false; glob_look_poles := false; glob_dump_closed_form := false; glob_max_iter := 1000; glob_no_eqs := 0; glob_unchanged_h_cnt := 0; glob_warned := false; glob_warned2 := false; glob_start := 0; glob_iter := 0; 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] := true; 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_y2_set_initial[1, 31] := false; array_y2_set_initial[1, 32] := false; array_y2_set_initial[1, 33] := false; array_y2_set_initial[1, 34] := false; array_y2_set_initial[1, 35] := false; array_y2_set_initial[1, 36] := false; array_y2_set_initial[1, 37] := false; array_y2_set_initial[1, 38] := false; array_y2_set_initial[1, 39] := false; array_y2_set_initial[1, 40] := 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; array_y1_set_initial[2, 31] := false; array_y1_set_initial[2, 32] := false; array_y1_set_initial[2, 33] := false; array_y1_set_initial[2, 34] := false; array_y1_set_initial[2, 35] := false; array_y1_set_initial[2, 36] := false; array_y1_set_initial[2, 37] := false; array_y1_set_initial[2, 38] := false; array_y1_set_initial[2, 39] := false; array_y1_set_initial[2, 40] := false; ALWAYS := 1; INFO := 2; DEBUGL := 3; DEBUGMASSIVE := 4; ATS_MAX_TERMS := 40; glob_iolevel := INFO; glob_orig_start_sec := elapsed_time_seconds(); 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/mtest7postode.ode#################"); omniout_str(ALWAYS, "diff ( y2 , x , 5 ) = y1 ; "); omniout_str(ALWAYS, "diff ( y1 , x , 1 ) = neg ( diff ( y2\ , x , 4 ) ) ; "); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#BEGIN FIRST INPUT BLOCK"); omniout_str(ALWAYS, "Digits:=64;"); omniout_str(ALWAYS, "max_terms:=40;"); omniout_str(ALWAYS, "!"); omniout_str(ALWAYS, "#END FIRST INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN SECOND INPUT BLOCK"); omniout_str(ALWAYS, "x_start := c(0.1);"); omniout_str(ALWAYS, "x_end := c(0.7);"); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); 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[3 + 1] := exact_soln_y2ppp(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_h := c(0.1);"); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, ""); omniout_str(ALWAYS, "glob_type_given_pole := 3;"); omniout_str(ALWAYS, "#END SECOND INPUT BLOCK"); omniout_str(ALWAYS, "#BEGIN OVERRIDE BLOCK"); omniout_str(ALWAYS, "glob_desired_digits_correct:=8;"); omniout_str(ALWAYS, "glob_max_minutes:=(3.0);"); omniout_str(ALWAYS, "glob_subiter_method:=3;"); omniout_str(ALWAYS, "glob_max_iter:=100000;"); omniout_str(ALWAYS, "glob_upper_ratio_limit:=c(1.0000001);"); omniout_str(ALWAYS, "glob_lower_ratio_limit:=c(0.9999999);"); omniout_str(ALWAYS, "glob_look_poles:=true;"); omniout_str(ALWAYS, "glob_h:=c(0.005);"); omniout_str(ALWAYS, "glob_display_interval:=c(0.01);"); 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(\t cos(c(x)) );"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_y2 := proc(x)"); omniout_str(ALWAYS, "return(\tsin(c(x)) + c(10.0) * c(x) + c(10.0));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_y2p := proc(x)"); omniout_str(ALWAYS, "return(\tcos(c(x)) + c(10.0));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_y2pp := proc(x)"); omniout_str(ALWAYS, "return( neg(sin(c(x))));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_y2ppp := proc(x)"); omniout_str(ALWAYS, "return(\tneg(cos(c(x))));"); omniout_str(ALWAYS, "end;"); omniout_str(ALWAYS, "exact_soln_y2pppp := proc(x)"); omniout_str(ALWAYS, "return( sin(c(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 := glob__0; glob_smallish_float := glob__0; glob_large_float := c(0.10*10^101); glob_larger_float := c(0.11*10^101); glob_almost_1 := c(0.99); x_start := c(0.1); x_end := c(0.7); 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[4] := exact_soln_y2ppp(x_start); array_y2_init[5] := exact_soln_y2pppp(x_start); glob_look_poles := true; glob_max_h := c(0.1); glob_type_given_pole := 3; glob_desired_digits_correct := 8; glob_max_minutes := 3.0; glob_subiter_method := 3; glob_max_iter := 100000; glob_upper_ratio_limit := c(1.0000001); glob_lower_ratio_limit := c(0.9999999); glob_look_poles := true; glob_h := c(0.005); glob_display_interval := c(0.01); glob_last_good_h := glob_h; glob_max_sec := 60.0*glob_max_minutes + 3600.0*glob_max_hours; glob_check_sign := c(my_check_sign(x_start, x_end)); glob__pi := arccos(glob__m1); glob_prec = expt(10.0, c(-Digits)); if glob_optimize then omniout_str(ALWAYS, "START of Optimize"); found_h := false; glob_min_pole_est := glob_larger_float; last_min_pole_est := glob_larger_float; glob_least_given_sing := glob_larger_float; glob_least_ratio_sing := glob_larger_float; glob_least_3_sing := glob_larger_float; glob_least_6_sing := glob_larger_float; glob_min_h := float_abs(glob_min_h)*glob_check_sign; glob_max_h := float_abs(glob_max_h)*glob_check_sign; glob_h := float_abs(glob_min_h)*glob_check_sign; glob_display_interval := c(float_abs(c(glob_display_interval))*glob_check_sign); display_max := c(x_end) - c(x_start)/glob__10; if display_max < glob_display_interval then glob_display_interval := c(display_max) end if; chk_data(); min_value := glob_larger_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 := glob_small_float; while opt_iter <= 100 and not found_h do omniout_int(ALWAYS, "opt_iter", 32, opt_iter, 4, ""); array_x[1] := c(x_start); array_x[2] := c(glob_h); glob_next_display := c(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, c(term_no - 1))/ c(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; if term_no < ATS_MAX_TERMS then array_y2_higher[r_order, term_no] := array_y2_init[it]*expt(glob_h, c(term_no - 1))/ c(factorial_1(term_no - 1)) end if; 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, c(term_no - 1))/ c(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; if term_no < ATS_MAX_TERMS then array_y1_higher[r_order, term_no] := array_y1_init[it]*expt(glob_h, c(term_no - 1))/ c(factorial_1(term_no - 1)) end if; 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 + ATS_MAX_TERMS do atomall(); subiter := subiter + 1 end do end if; if glob_check_sign*glob_h <= glob_check_sign*glob_min_h then omniout_str(ALWAYS, "SETTING H FOR MIN H"); glob_h := float_abs(glob_min_h)*glob_check_sign; glob_h_reason := 1; found_h := true end if; if glob_check_sign*glob_display_interval <= glob_check_sign*glob_h then omniout_str(ALWAYS, "SETTING H FOR DISPLAY INTERVAL"); glob_h_reason := 2; glob_h := glob_display_interval; found_h := true end if; if glob_look_poles then check_for_pole() end if; if not found_h then est_answer := est_size_answer(); 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 := test_suggested_h(); omniout_float(ALWAYS, "estimated_step_error", 32, estimated_step_error, 32, ""); if estimated_step_error < est_needed_step_err then omniout_str(ALWAYS, "Double H and LOOP"); glob_h := glob_h*glob__2 else omniout_str(ALWAYS, "Found H for OPTIMAL"); found_h := true; glob_h_reason := 3; glob_h := glob_h/glob__2 end if end if; 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 glob_check_sign*glob_max_h <= glob_check_sign*glob_h then omniout_str(ALWAYS, "SETTING H FOR MAX H"); glob_h := float_abs(glob_max_h)*glob_check_sign; glob_h_reason := 1; found_h := true end if else found_h := true; glob_h := glob_check_sign*glob_h 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] := c(x_start); array_x[2] := c(glob_h); glob_next_display := c(x_start); glob_min_pole_est := glob_larger_float; glob_least_given_sing := glob_larger_float; glob_least_ratio_sing := glob_larger_float; glob_least_3_sing := glob_larger_float; glob_least_6_sing := glob_larger_float; order_diff := 5; term_no := 1; while term_no <= order_diff do array_y2[term_no] := array_y2_init[term_no]* expt(glob_h, c(term_no - 1))/c(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; if term_no < ATS_MAX_TERMS then array_y2_higher[r_order, term_no] := array_y2_init[it]* expt(glob_h, c(term_no - 1))/ c(factorial_1(term_no - 1)) end if; 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, c(term_no - 1))/c(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; if term_no < ATS_MAX_TERMS then array_y1_higher[r_order, term_no] := array_y1_init[it]* expt(glob_h, c(term_no - 1))/ c(factorial_1(term_no - 1)) end if; 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_iter := 0; omniout_str(DEBUGL, " "); glob_reached_optimal_h := true; glob_optimal_clock_start_sec := elapsed_time_seconds(); while glob_iter < glob_max_iter and glob_check_sign*array_x[1] < glob_check_sign*x_end and glob_clock_sec - glob_orig_start_sec < 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(); track_estimated_error(); 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 + ATS_MAX_TERMS do atomall(); subiter := subiter + 1 end do end if; track_estimated_error(); 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 := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[6, iii] := array_y2_higher[6, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 6; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 5; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[5, iii] := array_y2_higher[5, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 5; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 5; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[5, iii] := array_y2_higher[5, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 5; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 4; calc_term := 3; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 4; calc_term := 3; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 4; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 4; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 4; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[4, iii] := array_y2_higher[4, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 4; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 3; calc_term := 4; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[3, iii] := array_y2_higher[3, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 3; calc_term := 4; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 3; calc_term := 3; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[3, iii] := array_y2_higher[3, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 3; calc_term := 3; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 3; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[3, iii] := array_y2_higher[3, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 3; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 3; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[3, iii] := array_y2_higher[3, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 3; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 2; calc_term := 5; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[2, iii] := array_y2_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 5; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 2; calc_term := 4; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[2, iii] := array_y2_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 4; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 2; calc_term := 3; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[2, iii] := array_y2_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 3; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 2; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[2, iii] := array_y2_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 2; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[2, iii] := array_y2_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 6; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 6; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 5; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 5; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 4; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 4; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 3; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 3; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y2_higher_work[1, iii] := array_y2_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); term_no := ATS_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 := ATS_MAX_TERMS; while calc_term <= iii do array_y1_higher_work[2, iii] := array_y1_higher[2, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 2; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 2; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y1_higher_work[1, iii] := array_y1_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 2; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); ord := 1; calc_term := 1; iii := ATS_MAX_TERMS; while calc_term <= iii do array_y1_higher_work[1, iii] := array_y1_higher[1, iii]/( expt(glob_h, c(calc_term - 1))* c(factorial_3(iii - calc_term, iii - 1))); iii := iii - 1 end do; temp_sum := glob__0; ord := 1; calc_term := 1; iii := ATS_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, c(calc_term - 1))/ c(factorial_1(calc_term - 1)); term_no := ATS_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 glob_max_sec <= elapsed_time_seconds() - 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 ) = neg ( diff ( \ y2 , x , 4 ) ) ; "); 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, "2015-05-02T21:41:53-05:00"); logitem_str(html_log_file, "Maple"); logitem_str(html_log_file, "mtest7"); 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_h_reason(html_log_file); logitem_integer(html_log_file, Digits); logitem_float(html_log_file, glob_desired_digits_correct); if array_est_digits[1] <> -16 then logitem_integer(html_log_file, array_est_digits[1]) else logitem_str(html_log_file, "Unknown") end if; if glob_min_good_digits <> -16 then logitem_integer(html_log_file, glob_min_good_digits) else logitem_str(html_log_file, "Unknown") end if; if glob_good_digits <> -16 then logitem_integer(html_log_file, glob_good_digits) else logitem_str(html_log_file, "Unknown") end if; logitem_str(html_log_file, "NA"); logitem_str(html_log_file, "NA"); logitem_integer(html_log_file, ATS_MAX_TERMS); if glob_type_given_pole = 0 then logitem_str(html_log_file, "Not Given"); logitem_str(html_log_file, "NA") elif glob_type_given_pole = 4 then logitem_str(html_log_file, "No Solution"); logitem_str(html_log_file, "NA") elif glob_type_given_pole = 5 then logitem_str(html_log_file, "Some Pole"); logitem_str(html_log_file, "????") elif glob_type_given_pole = 3 then logitem_str(html_log_file, "No Pole"); logitem_str(html_log_file, "NA") elif glob_type_given_pole = 1 then logitem_str(html_log_file, "Real Sing"); logitem_float(html_log_file, glob_least_given_sing) elif glob_type_given_pole = 2 then logitem_str(html_log_file, "Complex Sing"); logitem_float(html_log_file, glob_least_given_sing) end if; if glob_least_ratio_sing < glob_large_float then logitem_float(html_log_file, glob_least_ratio_sing) else logitem_str(html_log_file, "NONE") end if; if glob_least_3_sing < glob_large_float then logitem_float(html_log_file, glob_least_3_sing) else logitem_str(html_log_file, "NONE") end if; if glob_least_6_sing < glob_large_float then logitem_float(html_log_file, glob_least_6_sing) else logitem_str(html_log_file, "NONE") end if; logitem_integer(html_log_file, glob_iter); logitem_time(html_log_file, glob_clock_sec); if c(glob_percent_done) < glob__100 then logitem_time(html_log_file, glob_total_exp_sec); 0 else logitem_str(html_log_file, "Done"); 0 end if; log_revs(html_log_file, " 308.maple.seems.ok "); logitem_str(html_log_file, "mtest7 diffeq.mxt"); logitem_str(html_log_file, "mtest7 maple results"); logitem_str(html_log_file, "OK"); 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 ) = n\ eg ( diff ( y2 , x , 4 ) ) ; "); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); if array_est_digits[2] <> -16 then logitem_integer(html_log_file, array_est_digits[2]) else logitem_str(html_log_file, "Unknown") end if; if glob_min_good_digits <> -16 then logitem_integer(html_log_file, glob_min_good_digits) else logitem_str(html_log_file, "Unknown") end if; if glob_good_digits <> -16 then logitem_integer(html_log_file, glob_good_digits) else logitem_str(html_log_file, "Unknown") end if; logitem_str(html_log_file, "NA"); logitem_str(html_log_file, "NA"); logditto(html_log_file); if glob_type_given_pole = 0 then logditto(html_log_file); logditto(html_log_file) elif glob_type_given_pole = 4 then logditto(html_log_file); logditto(html_log_file) elif glob_type_given_pole = 5 then logditto(html_log_file); logditto(html_log_file) elif glob_type_given_pole = 3 then logditto(html_log_file); logditto(html_log_file) elif glob_type_given_pole = 1 then logditto(html_log_file); logditto(html_log_file) elif glob_type_given_pole = 2 then logditto(html_log_file); logditto(html_log_file) end if; if glob_least_ratio_sing < glob_large_float then logditto(html_log_file) else logditto(html_log_file) end if; if glob_least_3_sing < glob_large_float then logditto(html_log_file) else logditto(html_log_file) end if; if glob_least_6_sing < glob_large_float then logditto(html_log_file) else logditto(html_log_file) end if; logditto(html_log_file); logditto(html_log_file); if c(glob_percent_done) < glob__100 then logditto(html_log_file); 0 else logditto(html_log_file); 0 end if; logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logditto(html_log_file); logend(html_log_file) end if; if glob_html_log then fclose(html_log_file) end if end if end proc # End Function number 12 > main(); memory used=3.2MB, alloc=40.3MB, time=0.06 ##############ECHO OF PROBLEM################# ##############temp/mtest7postode.ode################# diff ( y2 , x , 5 ) = y1 ; diff ( y1 , x , 1 ) = neg ( diff ( y2 , x , 4 ) ) ; ! #BEGIN FIRST INPUT BLOCK Digits:=64; max_terms:=40; ! #END FIRST INPUT BLOCK #BEGIN SECOND INPUT BLOCK x_start := c(0.1); x_end := c(0.7); 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[3 + 1] := exact_soln_y2ppp(x_start); array_y2_init[4 + 1] := exact_soln_y2pppp(x_start); glob_look_poles := true; glob_max_h := c(0.1); glob_type_given_pole := 3; #END SECOND INPUT BLOCK #BEGIN OVERRIDE BLOCK glob_desired_digits_correct:=8; glob_max_minutes:=(3.0); glob_subiter_method:=3; glob_max_iter:=100000; glob_upper_ratio_limit:=c(1.0000001); glob_lower_ratio_limit:=c(0.9999999); glob_look_poles:=true; glob_h:=c(0.005); glob_display_interval:=c(0.01); #END OVERRIDE BLOCK ! #BEGIN USER DEF BLOCK exact_soln_y1 := proc(x) return( cos(c(x)) ); end; exact_soln_y2 := proc(x) return( sin(c(x)) + c(10.0) * c(x) + c(10.0)); end; exact_soln_y2p := proc(x) return( cos(c(x)) + c(10.0)); end; exact_soln_y2pp := proc(x) return( neg(sin(c(x)))); end; exact_soln_y2ppp := proc(x) return( neg(cos(c(x)))); end; exact_soln_y2pppp := proc(x) return( sin(c(x))); end; #END USER DEF BLOCK #######END OF ECHO OF PROBLEM################# START of Soultion TOP MAIN SOLVE Loop x[1] = 0.1 y2[1] (closed_form) = 11.099833416646828152306814198411 y2[1] (numeric) = 11.099833416646828152306814198411 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.99500416527802576609556198780387 y1[1] (numeric) = 0.99500416527802576609556198780387 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.09933 Order of pole (three term test) = 32.99 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.09933 Order of pole (three term test) = 32.01 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=44.3MB, alloc=40.3MB, time=0.50 x[1] = 0.11 y2[1] (closed_form) = 11.209778300837174808664949490083 y2[1] (numeric) = 11.209778300837174808664949490083 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.99395609795669685035783961141985 y1[1] (numeric) = 0.99395609795669685035783961141985 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1091 Order of pole (three term test) = 32.99 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1091 Order of pole (three term test) = 32.01 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.12 y2[1] (closed_form) = 11.319712207288919359967350614271 y2[1] (numeric) = 11.319712207288919359967350614271 absolute error = 1e-62 relative error = 8.8341468553951942309023791071017e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.99280863585386625224809816785763 y1[1] (numeric) = 0.99280863585386625224809816785763 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1189 Order of pole (three term test) = 32.99 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1189 Order of pole (three term test) = 32.01 NO COMPLEX POLE (six term test) for Equation 2 memory used=84.8MB, alloc=40.3MB, time=0.89 TOP MAIN SOLVE Loop x[1] = 0.13 y2[1] (closed_form) = 11.429634142619694859541205810708 y2[1] (numeric) = 11.429634142619694859541205810708 absolute error = 1e-62 relative error = 8.7491864352081353034907905471035e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.99156189371478803959451217115181 y1[1] (numeric) = 0.99156189371478803959451217115181 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1285 Order of pole (three term test) = 32.98 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1285 Order of pole (three term test) = 32.02 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=125.3MB, alloc=40.3MB, time=1.28 x[1] = 0.14 y2[1] (closed_form) = 11.539543114644236481717988351705 y2[1] (numeric) = 11.539543114644236481717988351705 absolute error = 1e-62 relative error = 8.6658543589212972783844351775727e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9902159962126371718989482270114 y1[1] (numeric) = 0.9902159962126371718989482270114 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1382 Order of pole (three term test) = 32.98 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1382 Order of pole (three term test) = 32.02 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.15 y2[1] (closed_form) = 11.649438132473599221497725438688 y2[1] (numeric) = 11.649438132473599221497725438688 absolute error = 1e-62 relative error = 8.5841049896855724646231523867355e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.98877107793604228673498099865434 y1[1] (numeric) = 0.98877107793604228673498099865434 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1478 Order of pole (three term test) = 32.98 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1478 Order of pole (three term test) = 32.02 NO COMPLEX POLE (six term test) for Equation 2 memory used=166.0MB, alloc=40.3MB, time=1.69 TOP MAIN SOLVE Loop x[1] = 0.16 y2[1] (closed_form) = 11.759318206614245963311463159686 y2[1] (numeric) = 11.759318206614245963311463159686 absolute error = 1e-62 relative error = 8.5038943791616380386919961452480e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.98722728337562694904095252401834 y1[1] (numeric) = 0.98722728337562694904095252401834 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1573 Order of pole (three term test) = 32.97 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1573 Order of pole (three term test) = 32.03 NO COMPLEX POLE (six term test) for Equation 2 memory used=206.7MB, alloc=40.3MB, time=2.08 TOP MAIN SOLVE Loop x[1] = 0.17 y2[1] (closed_form) = 11.869182349066996010157624376671 y2[1] (numeric) = 11.869182349066996010157624376671 absolute error = 2e-62 relative error = 1.6850360380192613138595987403903e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9855847669095607091719299902125 y1[1] (numeric) = 0.9855847669095607091719299902125 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1667 Order of pole (three term test) = 32.97 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1667 Order of pole (three term test) = 32.03 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=247.2MB, alloc=40.3MB, time=2.48 x[1] = 0.18 y2[1] (closed_form) = 11.979029573425824178341802739699 y2[1] (numeric) = 11.979029573425824178341802739699 absolute error = 2e-62 relative error = 1.6695843246240770113502915175847e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.98384369278812141459271602461153 y1[1] (numeric) = 0.98384369278812141459271602461153 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1761 Order of pole (three term test) = 32.97 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1761 Order of pole (three term test) = 32.03 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.19 y2[1] (closed_form) = 12.088858894976500577992851152981 y2[1] (numeric) = 12.088858894976500577992851152981 absolute error = 3e-62 relative error = 2.4816238042505761851759185772557e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.98200423511727031896787750418991 y1[1] (numeric) = 0.98200423511727031896787750418991 absolute error = 1e-64 relative error = 1.0183255471200494754242006144117e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1855 Order of pole (three term test) = 32.96 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1855 Order of pole (three term test) = 32.04 NO COMPLEX POLE (six term test) for Equation 2 memory used=288.0MB, alloc=40.3MB, time=2.89 TOP MAIN SOLVE Loop x[1] = 0.2 y2[1] (closed_form) = 12.198669330795061215459412627118 y2[1] (numeric) = 12.198669330795061215459412627118 absolute error = 3e-62 relative error = 2.4592846306823137874472630621038e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.98006657784124163112419651674817 y1[1] (numeric) = 0.98006657784124163112419651674817 absolute error = 1e-64 relative error = 1.0203388449411926897924327768492e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.1947 Order of pole (three term test) = 32.96 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.1947 Order of pole (three term test) = 32.04 NO COMPLEX POLE (six term test) for Equation 2 memory used=328.7MB, alloc=40.3MB, time=3.28 TOP MAIN SOLVE Loop x[1] = 0.21 y2[1] (closed_form) = 12.308459899846099570608712426228 y2[1] (numeric) = 12.308459899846099570608712426228 absolute error = 3e-62 relative error = 2.4373479902530379858714845669785e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.97803091472414824491613856809935 y1[1] (numeric) = 0.97803091472414824491613856809935 absolute error = 1e-64 relative error = 1.0224625673331073524464086165795e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2039 Order of pole (three term test) = 32.96 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2039 Order of pole (three term test) = 32.04 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=369.3MB, alloc=40.3MB, time=3.69 x[1] = 0.22 y2[1] (closed_form) = 12.418229623080869319951791005457 y2[1] (numeric) = 12.418229623080869319951791005457 absolute error = 2e-62 relative error = 1.6105355277718041183873263755193e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9758974493306054894060229810447 y1[1] (numeric) = 0.9758974493306054894060229810447 absolute error = 1e-64 relative error = 1.0246978314021899569039539168330e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.213 Order of pole (three term test) = 32.95 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.213 Order of pole (three term test) = 32.05 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.23 y2[1] (closed_form) = 12.52797752353518839540461721236 y2[1] (numeric) = 12.52797752353518839540461721236 absolute error = 2e-62 relative error = 1.5964268743640218664469829844146e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9736663950053748369677306480716 y1[1] (numeric) = 0.9736663950053748369677306480716 absolute error = 1e-64 relative error = 1.0270458189064641551739991395066e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.222 Order of pole (three term test) = 32.95 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.222 Order of pole (three term test) = 32.05 NO COMPLEX POLE (six term test) for Equation 2 memory used=410.0MB, alloc=40.3MB, time=4.08 TOP MAIN SOLVE Loop x[1] = 0.24 y2[1] (closed_form) = 12.63770262642713458836079208449 y2[1] (numeric) = 12.63770262642713458836079208449 absolute error = 2e-62 relative error = 1.5825661191122911988164418487639e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.97133797485202960492617524696338 y1[1] (numeric) = 0.97133797485202960492617524696338 absolute error = 1e-64 relative error = 1.0295077778178462266084903163054e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2309 Order of pole (three term test) = 32.94 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2309 Order of pole (three term test) = 32.06 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=450.6MB, alloc=40.3MB, time=4.48 x[1] = 0.25 y2[1] (closed_form) = 12.747403959254522929596848704849 y2[1] (numeric) = 12.747403959254522929596848704849 absolute error = 2e-62 relative error = 1.5689469058898180506880893009993e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.96891242171064478414459544949419 y1[1] (numeric) = 0.96891242171064478414459544949419 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2397 Order of pole (three term test) = 32.94 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2397 Order of pole (three term test) = 32.06 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.26 y2[1] (closed_form) = 12.857080551892155097353388464365 y2[1] (numeric) = 12.857080551892155097353388464365 absolute error = 2e-62 relative error = 1.5555630937582197354196849602108e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.96638997813451322555821764645006 y1[1] (numeric) = 0.96638997813451322555821764645006 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2484 Order of pole (three term test) = 32.93 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2484 Order of pole (three term test) = 32.07 NO COMPLEX POLE (six term test) for Equation 2 memory used=491.4MB, alloc=40.3MB, time=4.88 TOP MAIN SOLVE Loop x[1] = 0.27 y2[1] (closed_form) = 12.966731436688831128732286521021 y2[1] (numeric) = 12.966731436688831128732286521021 absolute error = 3e-62 relative error = 2.3136131218940988377077279891508e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9637708963658905130162327094922 y1[1] (numeric) = 0.9637708963658905130162327094922 absolute error = 1e-64 relative error = 1.0375909915631601514930305045560e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2571 Order of pole (three term test) = 32.93 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2571 Order of pole (three term test) = 32.07 NO COMPLEX POLE (six term test) for Equation 2 memory used=532.2MB, alloc=40.3MB, time=5.28 TOP MAIN SOLVE Loop x[1] = 0.28 y2[1] (closed_form) = 13.076355648564113733319669558458 y2[1] (numeric) = 13.076355648564113733319669558458 absolute error = 3e-62 relative error = 2.2942171967687522299549948921296e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.96105543831077094792459005359648 y1[1] (numeric) = 0.96105543831077094792459005359648 absolute error = 1e-64 relative error = 1.0405227004986113756623811239265e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2656 Order of pole (three term test) = 32.92 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2656 Order of pole (three term test) = 32.08 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=572.8MB, alloc=40.3MB, time=5.69 x[1] = 0.29 y2[1] (closed_form) = 13.185952225104835532683940205504 y2[1] (numeric) = 13.185952225104835532683940205504 absolute error = 3e-62 relative error = 2.2751485435297399305194258728742e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.95824387551269716807012477793186 y1[1] (numeric) = 0.95824387551269716807012477793186 absolute error = 2e-64 relative error = 2.0871513516639210583716744973211e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.274 Order of pole (three term test) = 32.92 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.274 Order of pole (three term test) = 32.08 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.3 y2[1] (closed_form) = 13.295520206661339575105320745685 y2[1] (numeric) = 13.295520206661339575105320745685 absolute error = 2e-62 relative error = 1.5042660752739537683744974770713e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.95533648912560601964231022756805 y1[1] (numeric) = 0.95533648912560601964231022756805 absolute error = 2e-64 relative error = 2.0935032030761712018655816911741e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2823 Order of pole (three term test) = 32.91 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2823 Order of pole (three term test) = 32.09 NO COMPLEX POLE (six term test) for Equation 2 memory used=613.6MB, alloc=40.3MB, time=6.08 TOP MAIN SOLVE Loop x[1] = 0.31 y2[1] (closed_form) = 13.405058636443443501565643323959 y2[1] (numeric) = 13.405058636443443501565643323959 absolute error = 2e-62 relative error = 1.4919740780265837093496708649608e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.95233356988571339784280543620221 y1[1] (numeric) = 0.95233356988571339784280543620221 absolute error = 1e-64 relative error = 1.0500522418001151663727238237418e-62 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2905 Order of pole (three term test) = 32.91 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2905 Order of pole (three term test) = 32.09 NO COMPLEX POLE (six term test) for Equation 2 memory used=654.4MB, alloc=40.3MB, time=6.48 TOP MAIN SOLVE Loop x[1] = 0.32 y2[1] (closed_form) = 13.514566560616117766661757543417 y2[1] (numeric) = 13.514566560616117766661757543417 absolute error = 2e-62 relative error = 1.4798846792677468419299867246356e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.94923541808244086757530727376609 y1[1] (numeric) = 0.94923541808244086757530727376609 absolute error = 2e-64 relative error = 2.1069588870168985639438319667824e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.2986 Order of pole (three term test) = 32.9 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.2986 Order of pole (three term test) = 32.1 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=695.1MB, alloc=40.3MB, time=6.89 x[1] = 0.33 y2[1] (closed_form) = 13.62404302839486834670019569617 y2[1] (numeric) = 13.62404302839486834670019569617 absolute error = 3e-62 relative error = 2.2019895223080841284227227949451e-61 % Desired digits = 8 Estimated correct digits = 13 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.94604234352838697152941057836621 y1[1] (numeric) = 0.94604234352838697152941057836621 absolute error = 2e-64 relative error = 2.1140702778067438027024493873384e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3066 Order of pole (three term test) = 32.89 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3066 Order of pole (three term test) = 32.11 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.34 y2[1] (closed_form) = 13.733487092140814396781771487031 y2[1] (numeric) = 13.733487092140814396781771487031 absolute error = 2e-62 relative error = 1.4562943748966195035225395574393e-61 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.94275466552834622850264406002658 y1[1] (numeric) = 0.94275466552834622850264406002658 absolute error = 2e-64 relative error = 2.1214426967371662405875655244569e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3144 Order of pole (three term test) = 32.89 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3144 Order of pole (three term test) = 32.11 NO COMPLEX POLE (six term test) for Equation 2 memory used=735.9MB, alloc=40.3MB, time=7.28 TOP MAIN SOLVE Loop x[1] = 0.35 y2[1] (closed_form) = 13.842897807455451349189634906918 y2[1] (numeric) = 13.842897807455451349189634906918 absolute error = 2e-62 relative error = 1.4447841975130728556966805762338e-61 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.93937271284737892003503235730367 y1[1] (numeric) = 0.93937271284737892003503235730367 absolute error = 2e-64 relative error = 2.1290803667669901168485265931351e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3221 Order of pole (three term test) = 32.88 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3221 Order of pole (three term test) = 32.12 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=776.5MB, alloc=40.3MB, time=7.69 x[1] = 0.36 y2[1] (closed_form) = 13.952274233275089976849913435921 y2[1] (numeric) = 13.952274233275089976849913435921 absolute error = 1e-62 relative error = 7.1672903161197742114980404829475e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.93589682367793485835091236812474 y1[1] (numeric) = 0.93589682367793485835091236812474 absolute error = 3e-64 relative error = 3.2054815489280620414938528820822e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3297 Order of pole (three term test) = 32.88 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3297 Order of pole (three term test) = 32.12 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.37 y2[1] (closed_form) = 14.061615431964961978037292469127 y2[1] (numeric) = 14.061615431964961978037292469127 absolute error = 1e-62 relative error = 7.1115584467400029050265349680518e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.93232734560603442320381290449088 y1[1] (numeric) = 0.93232734560603442320381290449088 absolute error = 3e-64 relative error = 3.2177539510545304667223695003417e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3371 Order of pole (three term test) = 32.87 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3371 Order of pole (three term test) = 32.13 NO COMPLEX POLE (six term test) for Equation 2 memory used=817.4MB, alloc=40.3MB, time=8.09 TOP MAIN SOLVE Loop x[1] = 0.38 y2[1] (closed_form) = 14.170920469412982671845485466349 y2[1] (numeric) = 14.170920469412982671845485466349 absolute error = 1e-62 relative error = 7.0567046237993887981955716843006e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.92866463557651024949253080772456 y1[1] (numeric) = 0.92866463557651024949253080772456 absolute error = 3e-64 relative error = 3.2304449691223736164771359091780e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3445 Order of pole (three term test) = 32.86 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3445 Order of pole (three term test) = 32.14 NO COMPLEX POLE (six term test) for Equation 2 memory used=858.0MB, alloc=40.3MB, time=8.48 TOP MAIN SOLVE Loop x[1] = 0.39 y2[1] (closed_form) = 14.280188415123161428231182097847 y2[1] (numeric) = 14.280188415123161428231182097847 absolute error = 1e-62 relative error = 7.0027087243538681553188469136287e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9249090598573130414506767528811 y1[1] (numeric) = 0.9249090598573130414506767528811 absolute error = 3e-64 relative error = 3.2435621297328561309123155040867e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3516 Order of pole (three term test) = 32.86 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3516 Order of pole (three term test) = 32.14 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=898.7MB, alloc=40.3MB, time=8.89 x[1] = 0.4 y2[1] (closed_form) = 14.389418342308650491666311756796 y2[1] (numeric) = 14.389418342308650491666311756796 absolute error = 1e-62 relative error = 6.9495512341853225407259812448797e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.9210609940028850827985267320518 y1[1] (numeric) = 0.9210609940028850827985267320518 absolute error = 4e-64 relative error = 4.3428177135329548124557198206351e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3587 Order of pole (three term test) = 32.85 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3587 Order of pole (three term test) = 32.15 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.41 y2[1] (closed_form) = 14.498609327984422893593797640051 y2[1] (numeric) = 14.498609327984422893593797640051 absolute error = 1e-62 relative error = 6.8972132249253359993914395711748e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.91712082281660510547564205827702 y1[1] (numeric) = 0.91712082281660510547564205827702 absolute error = 3e-64 relative error = 3.2711066256096818058852601338495e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3656 Order of pole (three term test) = 32.84 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3656 Order of pole (three term test) = 32.16 NO COMPLEX POLE (six term test) for Equation 2 memory used=939.4MB, alloc=40.3MB, time=9.28 TOP MAIN SOLVE Loop x[1] = 0.42 y2[1] (closed_form) = 14.607760453059570185972787158086 y2[1] (numeric) = 14.607760453059570185972787158086 absolute error = 1e-62 relative error = 6.8456763322029403070593440928725e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.91308894031230827243608878966567 y1[1] (numeric) = 0.91308894031230827243608878966567 absolute error = 3e-64 relative error = 3.2855506923278419507281472471636e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3723 Order of pole (three term test) = 32.83 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3723 Order of pole (three term test) = 32.17 NO COMPLEX POLE (six term test) for Equation 2 memory used=980.1MB, alloc=40.3MB, time=9.69 TOP MAIN SOLVE Loop x[1] = 0.43 y2[1] (closed_form) = 14.716870802429210766216918672625 y2[1] (numeric) = 14.716870802429210766216918672625 absolute error = 1e-62 relative error = 6.7949227347632691412294628910215e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.90896574967488512247591047766345 y1[1] (numeric) = 0.90896574967488512247591047766345 absolute error = 3e-64 relative error = 3.3004543912386432879141980383694e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3789 Order of pole (three term test) = 32.83 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3789 Order of pole (three term test) = 32.17 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1020.8MB, alloc=40.3MB, time=10.09 x[1] = 0.44 y2[1] (closed_form) = 14.82593946506599960276972075078 y2[1] (numeric) = 14.82593946506599960276972075078 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.90475166321996341716553738899837 y1[1] (numeric) = 0.90475166321996341716553738899837 absolute error = 3e-64 relative error = 3.3158270075162485340432559605432e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3854 Order of pole (three term test) = 32.82 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3854 Order of pole (three term test) = 32.18 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.45 y2[1] (closed_form) = 14.934965534111230210420844246232 y2[1] (numeric) = 14.934965534111230210420844246232 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.90044710235267692166884061148645 y1[1] (numeric) = 0.90044710235267692166884061148645 absolute error = 3e-64 relative error = 3.3316782209211818653333820130349e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3917 Order of pole (three term test) = 32.81 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3917 Order of pole (three term test) = 32.19 NO COMPLEX POLE (six term test) for Equation 2 memory used=1061.6MB, alloc=40.3MB, time=10.50 TOP MAIN SOLVE Loop x[1] = 0.46 y2[1] (closed_form) = 15.043948106965519765241513643929 y2[1] (numeric) = 15.043948106965519765241513643929 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.89605249752552524253638990350041 y1[1] (numeric) = 0.89605249752552524253638990350041 absolute error = 2e-64 relative error = 2.2320120813490923284652883710187e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.3978 Order of pole (three term test) = 32.8 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.3978 Order of pole (three term test) = 32.2 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1102.3MB, alloc=40.3MB, time=10.89 x[1] = 0.47 y2[1] (closed_form) = 15.152886285379068290703274800396 y2[1] (numeric) = 15.152886285379068290703274800396 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.89156828819532893645401927653339 y1[1] (numeric) = 0.89156828819532893645401927653339 absolute error = 2e-64 relative error = 2.2432381529050421737072589103804e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4038 Order of pole (three term test) = 32.79 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4038 Order of pole (three term test) = 32.21 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.48 y2[1] (closed_form) = 15.261779175541482889136642942589 y2[1] (numeric) = 15.261779175541482889136642942589 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.88699492277928419439995483115874 y1[1] (numeric) = 0.88699492277928419439995483115874 absolute error = 3e-64 relative error = 3.3822065075636362284146052928070e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4096 Order of pole (three term test) = 32.79 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4096 Order of pole (three term test) = 32.21 NO COMPLEX POLE (six term test) for Equation 2 memory used=1143.1MB, alloc=40.3MB, time=11.30 TOP MAIN SOLVE Loop x[1] = 0.49 y2[1] (closed_form) = 15.370625888171158036181358337188 y2[1] (numeric) = 15.370625888171158036181358337188 absolute error = 1e-62 relative error = 6.5059159417156494261201653466908e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.88233285861012149570546815913666 y1[1] (numeric) = 0.88233285861012149570546815913666 absolute error = 3e-64 relative error = 3.4000773865836691977566956614959e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4152 Order of pole (three term test) = 32.78 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4152 Order of pole (three term test) = 32.22 NO COMPLEX POLE (six term test) for Equation 2 memory used=1183.8MB, alloc=40.3MB, time=11.69 TOP MAIN SOLVE Loop x[1] = 0.5 y2[1] (closed_form) = 15.479425538604203000273287935216 y2[1] (numeric) = 15.479425538604203000273287935216 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.87758256189037271611628158260383 y1[1] (numeric) = 0.87758256189037271611628158260383 absolute error = 3e-64 relative error = 3.4184817819736473669399833046148e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4207 Order of pole (three term test) = 32.77 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4207 Order of pole (three term test) = 32.23 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1224.4MB, alloc=40.3MB, time=12.09 x[1] = 0.51 y2[1] (closed_form) = 15.588177246882907494500130237675 y2[1] (numeric) = 15.588177246882907494500130237675 absolute error = 1e-62 relative error = 6.4151182281428392758903000028620e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.87274450764575126310580847357551 y1[1] (numeric) = 0.87274450764575126310580847357551 absolute error = 3e-64 relative error = 3.4374321164077792001378979899203e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4261 Order of pole (three term test) = 32.76 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4261 Order of pole (three term test) = 32.24 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.52 y2[1] (closed_form) = 15.696880137843736714334458942548 y2[1] (numeric) = 15.696880137843736714334458942548 absolute error = 1e-62 relative error = 6.3706927186702013520965413173990e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.86781917967764990038784757198851 y1[1] (numeric) = 0.86781917967764990038784757198851 absolute error = 3e-64 relative error = 3.4569413424514832526432563583826e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4312 Order of pole (three term test) = 32.75 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4312 Order of pole (three term test) = 32.25 NO COMPLEX POLE (six term test) for Equation 2 memory used=1265.2MB, alloc=40.3MB, time=12.48 TOP MAIN SOLVE Loop x[1] = 0.53 y2[1] (closed_form) = 15.805533341204846961813661022466 y2[1] (numeric) = 15.805533341204846961813661022466 absolute error = 1e-62 relative error = 6.3268981717498345399120081427679e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.8628070705147610118066950185642 y1[1] (numeric) = 0.8628070705147610118066950185642 absolute error = 3e-64 relative error = 3.4770229666872851883248205754186e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4362 Order of pole (three term test) = 32.74 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4362 Order of pole (three term test) = 32.26 NO COMPLEX POLE (six term test) for Equation 2 memory used=1305.8MB, alloc=40.3MB, time=12.89 TOP MAIN SOLVE Loop x[1] = 0.54 y2[1] (closed_form) = 15.914135991653113104677280682958 y2[1] (numeric) = 15.914135991653113104677280682958 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.8577086813638241425379687789178 y1[1] (numeric) = 0.8577086813638241425379687789178 absolute error = 4e-64 relative error = 4.6635881003788908348817042827052e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.441 Order of pole (three term test) = 32.74 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.441 Order of pole (three term test) = 32.26 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1346.7MB, alloc=40.3MB, time=13.30 x[1] = 0.55 y2[1] (closed_form) = 16.022687228930659167788378107757 y2[1] (numeric) = 16.022687228930659167788378107757 absolute error = 1e-62 relative error = 6.2411503495767805054242633031975e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.85252452205950574280498179761777 y1[1] (numeric) = 0.85252452205950574280498179761777 absolute error = 4e-64 relative error = 4.6919471481440884579598873330178e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4456 Order of pole (three term test) = 32.73 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4456 Order of pole (three term test) = 32.27 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.56 y2[1] (closed_form) = 16.131186197920883403851869441112 y2[1] (numeric) = 16.131186197920883403851869441112 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.84725511101341612609452550386632 y1[1] (numeric) = 0.84725511101341612609452550386632 absolute error = 4e-64 relative error = 4.7211282033052979112875903141288e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4501 Order of pole (three term test) = 32.72 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4501 Order of pole (three term test) = 32.28 NO COMPLEX POLE (six term test) for Equation 2 memory used=1387.4MB, alloc=40.3MB, time=13.69 TOP MAIN SOLVE Loop x[1] = 0.57 y2[1] (closed_form) = 16.239632048733969240994463493079 y2[1] (numeric) = 16.239632048733969240994463493079 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.84190097516226874013375636391601 y1[1] (numeric) = 0.84190097516226874013375636391601 absolute error = 4e-64 relative error = 4.7511525915848196455412108507539e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4543 Order of pole (three term test) = 32.71 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4543 Order of pole (three term test) = 32.29 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1428.0MB, alloc=40.3MB, time=14.09 x[1] = 0.58 y2[1] (closed_form) = 16.348023936791873556182696059576 y2[1] (numeric) = 16.348023936791873556182696059576 absolute error = 1e-62 relative error = 6.1169472461406207248176540247564e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.83646264991518693465788732805002 y1[1] (numeric) = 0.83646264991518693465788732805002 absolute error = 4e-64 relative error = 4.7820425698691743007856700863157e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4584 Order of pole (three term test) = 32.7 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4584 Order of pole (three term test) = 32.3 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.59 y2[1] (closed_form) = 16.456361022912783775722543378876 y2[1] (numeric) = 16.456361022912783775722543378876 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.83094067910016349524799652249068 y1[1] (numeric) = 0.83094067910016349524799652249068 absolute error = 4e-64 relative error = 4.8138213721004153966458006838632e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4623 Order of pole (three term test) = 32.69 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4623 Order of pole (three term test) = 32.31 NO COMPLEX POLE (six term test) for Equation 2 memory used=1469.0MB, alloc=40.3MB, time=14.48 TOP MAIN SOLVE Loop x[1] = 0.6 y2[1] (closed_form) = 16.564642473395035357200945445659 y2[1] (numeric) = 16.564642473395035357200945445659 absolute error = 1e-62 relative error = 6.0369549273769700971835536788514e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.82533561490967829724095249895538 y1[1] (numeric) = 0.82533561490967829724095249895538 absolute error = 4e-64 relative error = 4.8465132580492668184582204854897e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.466 Order of pole (three term test) = 32.68 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.466 Order of pole (three term test) = 32.32 NO COMPLEX POLE (six term test) for Equation 2 memory used=1509.7MB, alloc=40.3MB, time=14.89 TOP MAIN SOLVE Loop x[1] = 0.61 y2[1] (closed_form) = 16.672867460100481261190976032163 y2[1] (numeric) = 16.672867460100481261190976032163 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.81964801784547951790074657865482 y1[1] (numeric) = 0.81964801784547951790074657865482 absolute error = 4e-64 relative error = 4.8801435651785863726751115353567e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4695 Order of pole (three term test) = 32.67 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4695 Order of pole (three term test) = 32.33 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1550.4MB, alloc=40.3MB, time=15.28 x[1] = 0.62 y2[1] (closed_form) = 16.781035160537305075842963227582 y2[1] (numeric) = 16.781035160537305075842963227582 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.8138784566625339286839996543607 y1[1] (numeric) = 0.8138784566625339286839996543607 absolute error = 5e-64 relative error = 6.1434234547790678009245576074259e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4729 Order of pole (three term test) = 32.66 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4729 Order of pole (three term test) = 32.34 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.63 y2[1] (closed_form) = 16.889144757942269513118112090795 y2[1] (numeric) = 16.889144757942269513118112090795 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.80802750831215187252370896577706 y1[1] (numeric) = 0.80802750831215187252370896577706 absolute error = 4e-64 relative error = 4.9503265159318639291276460728564e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.476 Order of pole (three term test) = 32.65 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.476 Order of pole (three term test) = 32.35 NO COMPLEX POLE (six term test) for Equation 2 memory used=1591.2MB, alloc=40.3MB, time=15.69 TOP MAIN SOLVE Loop x[1] = 0.64 y2[1] (closed_form) = 16.997195441362392051883546239208 y2[1] (numeric) = 16.997195441362392051883546239208 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.80209575788429261358611077926032 y1[1] (numeric) = 0.80209575788429261358611077926032 absolute error = 4e-64 relative error = 4.9869357376367340175061332977056e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.479 Order of pole (three term test) = 32.64 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.479 Order of pole (three term test) = 32.36 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1631.9MB, alloc=40.3MB, time=16.08 x[1] = 0.65 y2[1] (closed_form) = 17.105186405736039560372521678606 y2[1] (numeric) = 17.105186405736039560372521678606 absolute error = 1e-62 relative error = 5.8461800782519435037600717171585e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.79608379854905582891760457067991 y1[1] (numeric) = 0.79608379854905582891760457067991 absolute error = 5e-64 relative error = 6.2807458324274549433246390388741e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4818 Order of pole (three term test) = 32.63 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4818 Order of pole (three term test) = 32.37 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1672.7MB, alloc=40.3MB, time=16.48 x[1] = 0.66 y2[1] (closed_form) = 17.213116851973433788615145479396 y2[1] (numeric) = 17.213116851973433788615145479396 absolute error = 1e-62 relative error = 5.8095231014791659196690318942873e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.78999223149736509278381709123024 y1[1] (numeric) = 0.78999223149736509278381709123024 absolute error = 4e-64 relative error = 5.0633409298447530791371360708226e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4844 Order of pole (three term test) = 32.62 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4844 Order of pole (three term test) = 32.38 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop x[1] = 0.67 y2[1] (closed_form) = 17.320985987036559680357443914127 y2[1] (numeric) = 17.320985987036559680357443914127 absolute error = 1e-62 relative error = 5.7733433925090865216099263471947e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.78382166588084928530294214483812 y1[1] (numeric) = 0.78382166588084928530294214483812 absolute error = 4e-64 relative error = 5.1032016262332433676423520268335e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4867 Order of pole (three term test) = 32.61 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4867 Order of pole (three term test) = 32.39 NO COMPLEX POLE (six term test) for Equation 2 memory used=1713.5MB, alloc=40.3MB, time=16.89 TOP MAIN SOLVE Loop x[1] = 0.68 y2[1] (closed_form) = 17.42879302401846851370417818742 y2[1] (numeric) = 17.42879302401846851370417818742 absolute error = 1e-62 relative error = 5.7376319669520928533914302581247e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.77757271875092793718239408404432 y1[1] (numeric) = 0.77757271875092793718239408404432 absolute error = 4e-64 relative error = 5.1442134009350189706756638572067e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4889 Order of pole (three term test) = 32.6 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4889 Order of pole (three term test) = 32.4 NO COMPLEX POLE (six term test) for Equation 2 TOP MAIN SOLVE Loop memory used=1754.2MB, alloc=40.3MB, time=17.28 x[1] = 0.69 y2[1] (closed_form) = 17.536537182221967940237429207009 y2[1] (numeric) = 17.536537182221967940237429207009 absolute error = 0 relative error = 0 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 y1[1] (closed_form) = 0.77124601499710660197353931549777 y1[1] (numeric) = 0.77124601499710660197353931549777 absolute error = 4e-64 relative error = 5.1864125353244209058170869571309e-62 % Desired digits = 8 Estimated correct digits = 12 Correct digits = 64 h = 0.005 NO POLE (given) for Equation 1 NO POLE (ratio test) for Equation 1 Radius of convergence (three term test) for eq 1 = 0.4909 Order of pole (three term test) = 32.59 NO COMPLEX POLE (six term test) for Equation 1 NO POLE (given) for Equation 2 NO POLE (ratio test) for Equation 2 Radius of convergence (three term test) for eq 2 = 0.4909 Order of pole (three term test) = 32.41 NO COMPLEX POLE (six term test) for Equation 2 Finished! diff ( y2 , x , 5 ) = y1 ; diff ( y1 , x , 1 ) = neg ( diff ( y2 , x , 4 ) ) ; Iterations = 120 Total Elapsed Time = 17 Seconds Elapsed Time(since restart) = 17 Seconds Time to Timeout = 2 Minutes 42 Seconds Percent Done = 100.8 % > quit memory used=1780.1MB, alloc=40.3MB, time=17.53