|\^/| Maple 2016 (X86 64 LINUX)
._|\| |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2016
\ 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
> 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 7
# Begin Function number 8
> 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 8
# Begin Function number 9
> 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 9
# Begin Function number 10
> 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 10
# Begin Function number 11
> 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 11
# Begin Function number 12
> 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 12
# Begin Function number 13
> 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 13
# Begin Function number 14
> 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 14
# Begin Function number 15
> 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 15
# Begin Function number 16
> log_revs := proc(file,revs)
> fprintf(file,revs);
> end;
log_revs := proc(file, revs) fprintf(file, revs) end proc
# End Function number 16
# Begin Function number 17
> 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 17
# Begin Function number 18
> 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 18
# Begin Function number 19
> logstart := proc(file)
> fprintf(file,"");
> end;
logstart := proc(file) fprintf(file, "
") end proc
# End Function number 19
# Begin Function number 20
> logend := proc(file)
> fprintf(file,"
\n");
> end;
logend := proc(file) fprintf(file, "\n") end proc
# End Function number 20
# Begin Function number 21
> 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 21
# Begin Function number 22
> 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 22
# Begin Function number 23
> 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 23
# Begin Function number 24
> 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 24
# Begin Function number 25
> 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 25
# Begin Function number 26
> 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 26
# Begin Function number 27
> 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 27
# Begin Function number 28
> 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 28
# Begin Function number 29
> 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 29
# Begin Function number 30
> 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 30
# Begin Function number 31
> 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 31
# Begin Function number 32
> 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 32
# Begin Function number 33
> 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 33
# Begin Function number 34
> convfloat := proc(mmm)
> (mmm);
> end;
convfloat := proc(mmm) mmm end proc
# End Function number 34
# Begin Function number 35
> elapsed_time_seconds := proc()
> time();
> end;
elapsed_time_seconds := proc() time() end proc
# End Function number 35
# Begin Function number 36
> float_abs := proc(x)
> abs(x);
> end;
float_abs := proc(x) abs(x) end proc
# End Function number 36
# Begin Function number 37
> expt := proc(x,y)
> x^y;
> end;
expt := proc(x, y) x^y end proc
# End Function number 37
# Begin Function number 38
> neg := proc(x)
> -x;
> end;
neg := proc(x) -x end proc
# End Function number 38
# Begin Function number 39
> int_trunc := proc(x)
> trunc(x);
> end;
int_trunc := proc(x) trunc(x) end proc
# End Function number 39
# Begin Function number 40
> 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 40
#END ATS LIBRARY BLOCK
#BEGIN USER FUNCTION BLOCK
#BEGIN BLOCK 3
#BEGIN USER DEF BLOCK
> exact_soln_y := proc(x)
> return(cos(c(x)) + (c(0.05) * c(x) * c(x)) + c(x)) ;
> end;
exact_soln_y := proc(x) return cos(c(x)) + c(0.05)*c(x)*c(x) + 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
> ;
> 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
end proc
# End Function number 2
# Begin Function number 3
> my_check_sign := proc( x0 ,xf)
> local ret;
> if (xf > x0) then # if number 3
> ret := glob__1;
> else
> ret := glob__m1;
> fi;# end if 3;
> 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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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_y[1]) < min_size) then # if number 3
> min_size := float_abs(array_y[1]);
> omniout_float(ALWAYS,"min_size",32,min_size,32,"");
> fi;# end if 3;
> if (min_size < glob__1) then # if number 3
> min_size := glob__1;
> omniout_float(ALWAYS,"min_size",32,min_size,32,"");
> fi;# end if 3;
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_y[1]) < min_size then
min_size := float_abs(array_y[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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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_y[no_terms-3] + array_y[no_terms - 2] * hn_div_ho + array_y[no_terms - 1] * hn_div_ho_2 + array_y[no_terms] * hn_div_ho_3);
> if (est_tmp >= max_estimated_step_error) then # if number 3
> max_estimated_step_error := est_tmp;
> fi;# end if 3;
> omniout_float(ALWAYS,"max_estimated_step_error",32,max_estimated_step_error,32,"");
> max_estimated_step_error;
> end;
test_suggested_h := proc()
local max_estimated_step_error, hn_div_ho, hn_div_ho_2, hn_div_ho_3,
no_terms, est_tmp;
global 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_y[no_terms - 3]
+ array_y[no_terms - 2]*hn_div_ho
+ array_y[no_terms - 1]*hn_div_ho_2
+ array_y[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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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_y[no_terms-3])) + c(float_abs(array_y[no_terms - 2])) * c(hn_div_ho) + c(float_abs(array_y[no_terms - 1])) * c(hn_div_ho_2) + c(float_abs(array_y[no_terms])) * c(hn_div_ho_3);
> if (glob_prec * c(float_abs(array_y[1])) > c(est_tmp)) then # if number 3
> est_tmp := c(glob_prec) * c(float_abs(array_y[1]));
> fi;# end if 3;
> if (c(est_tmp) >= c(array_max_est_error[1])) then # if number 3
> array_max_est_error[1] := c(est_tmp);
> fi;# end if 3
> ;
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_y[no_terms - 3]))
+ c(float_abs(array_y[no_terms - 2]))*c(hn_div_ho)
+ c(float_abs(array_y[no_terms - 1]))*c(hn_div_ho_2)
+ c(float_abs(array_y[no_terms]))*c(hn_div_ho_3);
if c(est_tmp) < glob_prec*c(float_abs(array_y[1])) then
est_tmp := c(glob_prec)*c(float_abs(array_y[1]))
end if;
if c(array_max_est_error[1]) <= c(est_tmp) then
array_max_est_error[1] := 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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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 3
> ret := true;
> else
> ret := false;
> fi;# end if 3;
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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 3
> if (iter >= 0) then # if number 4
> ind_var := array_x[1];
> omniout_float(ALWAYS,"x[1] ",33,ind_var,20," ");
> closed_form_val_y := evalf(exact_soln_y(ind_var));
> omniout_float(ALWAYS,"y[1] (closed_form) ",33,closed_form_val_y,20," ");
> term_no := 1;
> numeric_val := array_y[term_no];
> abserr := float_abs(numeric_val - closed_form_val_y);
> omniout_float(ALWAYS,"y[1] (numeric) ",33,numeric_val,20," ");
> if (c(float_abs(closed_form_val_y)) > c(glob_prec)) then # if number 5
> relerr := abserr*glob__100/float_abs(closed_form_val_y);
> if (c(relerr) > c(glob_prec)) then # if number 6
> glob_good_digits := -int_trunc(log10(c(relerr))) + 3;
> else
> glob_good_digits := Digits;
> fi;# end if 6;
> else
> relerr := glob__m1 ;
> glob_good_digits := -16;
> fi;# end if 5;
> if (glob_good_digits < glob_min_good_digits) then # if number 5
> glob_min_good_digits := glob_good_digits;
> fi;# end if 5;
> if (glob_apfp_est_good_digits < glob_min_apfp_est_good_digits) then # if number 5
> glob_min_apfp_est_good_digits := glob_apfp_est_good_digits;
> fi;# end if 5;
> if (evalf(float_abs(numeric_val)) > glob_prec) then # if number 5
> est_rel_err := evalf(array_max_est_error[1]*100.0 * sqrt(glob_iter)*25*ATS_MAX_TERMS/float_abs(numeric_val));
> if (evalf(est_rel_err) > glob_prec) then # if number 6
> glob_est_digits := -int_trunc(log10(est_rel_err)) + 3;
> else
> glob_est_digits := Digits;
> fi;# end if 6;
> else
> relerr := glob__m1 ;
> glob_est_digits := -16;
> fi;# end if 5;
> array_est_digits[1] := glob_est_digits;
> if (glob_iter = 1) then # if number 5
> array_1st_rel_error[1] := relerr;
> else
> array_last_rel_error[1] := relerr;
> fi;# end if 5;
> 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," ");
> fi;# end if 4;
> #BOTTOM DISPLAY ALOT
> fi;# end if 3;
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_y(ind_var));
omniout_float(ALWAYS, "y[1] (closed_form) ", 33,
closed_form_val_y, 20, " ");
term_no := 1;
numeric_val := array_y[term_no];
abserr := float_abs(numeric_val - closed_form_val_y);
omniout_float(ALWAYS, "y[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)*25*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, " ")
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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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 3
> 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 3;
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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 - 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_y_higher[1,last_no-1],array_y_higher[1,last_no],last_no);
> if (float_abs(prev_tmp_rad) > glob__0) then # if number 3
> tmp_ratio := tmp_rad / prev_tmp_rad;
> else
> tmp_ratio := glob_large_float;
> fi;# end if 3;
> if ((cnt > 0 ) and (tmp_ratio < glob_upper_ratio_limit) and (tmp_ratio > glob_lower_ratio_limit)) then # if number 3
> rad_c := tmp_rad;
> elif
> (cnt = 0) then # if number 4
> rad_c := tmp_rad;
> elif
> (cnt > 0) then # if number 5
> found_sing := 0;
> fi;# end if 5;
> 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 5
> if (rad_c < array_rad_test_poles[1,1]) then # if number 6
> array_rad_test_poles[1,1] := rad_c;
> last_no := last_no - 1;
> tmp_ord := comp_ord_from_ratio(array_y_higher[1,last_no-1],array_y_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 6;
> fi;# end if 5;
> #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[1,2] := glob_larger_float;
> array_ord_test_poles[1,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_y_higher[1,last_no-2],array_y_higher[1,last_no-1],array_y_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,2]) then # if number 8
> array_rad_test_poles[1,2] := rad_c;
> last_no := last_no - 1;
> tmp_ord := comp_ord_from_three_terms(array_y_higher[1,last_no-2],array_y_higher[1,last_no-1],array_y_higher[1,last_no],last_no);
> array_rad_test_poles[1,2] := rad_c;
> if (rad_c < glob_min_pole_est) then # if number 9
> glob_min_pole_est := rad_c;
> fi;# end if 9;
> array_ord_test_poles[1,2] := 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[1,3] := glob_larger_float;
> array_ord_test_poles[1,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_y_higher[1,last_no-5],array_y_higher[1,last_no-4],array_y_higher[1,last_no-3],array_y_higher[1,last_no-2],array_y_higher[1,last_no-1],array_y_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[1,3]) then # if number 10
> array_rad_test_poles[1,3] := rad_c;
> last_no := last_no - 1;
> tmp_ord := comp_ord_from_six_terms(array_y_higher[1,last_no-5],array_y_higher[1,last_no-4],array_y_higher[1,last_no-3],array_y_higher[1,last_no-2],array_y_higher[1,last_no-1],array_y_higher[1,last_no],last_no);
> array_rad_test_poles[1,3] := rad_c;
> if (rad_c < glob_min_pole_est) then # if number 11
> glob_min_pole_est := rad_c;
> fi;# end if 11;
> array_ord_test_poles[1,3] := tmp_ord;
> fi;# end if 10;
> fi;# end if 9;
> #BOTTOM general radius test1
> #START ADJUST ALL SERIES
> if (float_abs(glob_min_pole_est) * glob_ratio_of_radius < float_abs(glob_h)) then # if number 9
> 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 10
> omniout_str(ALWAYS,"SETTING H FOR MIN H");
> h_new := glob_min_h;
> glob_h_reason := 5;
> fi;# end if 10;
> term := 1;
> ratio := c(1.0);
> while (term <= ATS_MAX_TERMS) do # do number 1
> array_y[term] := array_y[term]* ratio;
> array_y_higher[1,term] := array_y_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 9;
> #BOTTOM ADJUST ALL SERIES
> ;
> if (reached_interval()) then # if number 9
> display_poles();
> fi;# end if 9
> 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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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 - 11;
cnt := 0;
while last_no < ATS_MAX_TERMS - 3 and found_sing = 1 do
tmp_rad := comp_rad_from_ratio(array_y_higher[1, last_no - 1],
array_y_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_y_higher[1, last_no - 1],
array_y_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[1, 2] := glob_larger_float;
array_ord_test_poles[1, 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_y_higher[1, last_no - 2], array_y_higher[1, last_no - 1],
array_y_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_y_higher[1, last_no - 2],
array_y_higher[1, last_no - 1], array_y_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[1, 3] := glob_larger_float;
array_ord_test_poles[1, 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_y_higher[1, last_no - 5],
array_y_higher[1, last_no - 4], array_y_higher[1, last_no - 3],
array_y_higher[1, last_no - 2], array_y_higher[1, last_no - 1],
array_y_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_y_higher[1, last_no - 5],
array_y_higher[1, last_no - 4],
array_y_higher[1, last_no - 3],
array_y_higher[1, last_no - 2],
array_y_higher[1, last_no - 1], array_y_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;
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_y[term] := array_y[term]*ratio;
array_y_higher[1, term] := array_y_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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
#END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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 mult CONST - LINEAR $eq_no = 1 i = 1
> array_tmp1[1] := array_const_0D1[1] * array_x[1];
> #emit pre add LINEAR - CONST $eq_no = 1 i = 1
> array_tmp2[1] := array_tmp1[1] + array_const_1D0[1];
> #emit pre add CONST - LINEAR $eq_no = 1 i = 1
> array_tmp3[1] := array_const_0D0[1] + array_tmp2[1];
> #emit pre sin 1 $eq_no = 1
> array_tmp4[1] := sin(array_x[1]);
> array_tmp4_g[1] := cos(array_x[1]);
> #emit pre sub LINEAR - FULL $eq_no = 1 i = 1
> array_tmp5[1] := array_tmp3[1] - array_tmp4[1];
> #emit pre assign xxx $eq_no = 1 i = 1 $min_hdrs = 5
> if ( not array_y_set_initial[1,2]) then # if number 1
> if (1 <= ATS_MAX_TERMS) then # if number 2
> temporary := c(array_tmp5[1]) * (expt((glob_h) , c(1))) * c(factorial_3(0,1));
> if (2 <= ATS_MAX_TERMS) then # if number 3
> array_y[2] := temporary;
> array_y_higher[1,2] := temporary;
> fi;# end if 3;
> temporary := c(temporary) / c(glob_h) * c(1);
> array_y_higher[2,1] := c(temporary);
> fi;# end if 2;
> fi;# end if 1;
> kkk := 2;
> #END ATOMHDR1
> #BEGIN ATOMHDR2
> #emit pre mult CONST - LINEAR $eq_no = 1 i = 2
> array_tmp1[2] := array_const_0D1[1] * array_x[2];
> #emit pre add LINEAR - CONST $eq_no = 1 i = 2
> array_tmp2[2] := array_tmp1[2];
> #emit pre add CONST - LINEAR $eq_no = 1 i = 2
> array_tmp3[2] := array_tmp2[2];
> #emit pre sin ID_LINEAR iii = 2 $eq_no = 1
> array_tmp4[2] := array_tmp4_g[1] * array_x[2] / c(1);
> array_tmp4_g[2] := neg(array_tmp4[1]) * array_x[2] / c(1);
> #emit pre sub LINEAR - FULL $eq_no = 1 i = 2
> array_tmp5[2] := array_tmp3[2] - array_tmp4[2];
> #emit pre assign xxx $eq_no = 1 i = 2 $min_hdrs = 5
> if ( not array_y_set_initial[1,3]) then # if number 1
> if (2 <= ATS_MAX_TERMS) then # if number 2
> temporary := c(array_tmp5[2]) * (expt((glob_h) , c(1))) * c(factorial_3(1,2));
> if (3 <= ATS_MAX_TERMS) then # if number 3
> array_y[3] := temporary;
> array_y_higher[1,3] := temporary;
> fi;# end if 3;
> temporary := c(temporary) / c(glob_h) * c(2);
> array_y_higher[2,2] := c(temporary);
> fi;# end if 2;
> fi;# end if 1;
> kkk := 3;
> #END ATOMHDR2
> #BEGIN ATOMHDR3
> #emit pre sin ID_LINEAR iii = 3 $eq_no = 1
> array_tmp4[3] := array_tmp4_g[2] * array_x[2] / c(2);
> array_tmp4_g[3] := neg(array_tmp4[2]) * array_x[2] / c(2);
> #emit pre sub LINEAR FULL $eq_no = 1 i = 3
> array_tmp5[3] := neg( array_tmp4[3]);
> #emit pre assign xxx $eq_no = 1 i = 3 $min_hdrs = 5
> if ( not array_y_set_initial[1,4]) then # if number 1
> if (3 <= ATS_MAX_TERMS) then # if number 2
> temporary := c(array_tmp5[3]) * (expt((glob_h) , c(1))) * c(factorial_3(2,3));
> if (4 <= ATS_MAX_TERMS) then # if number 3
> array_y[4] := temporary;
> array_y_higher[1,4] := temporary;
> fi;# end if 3;
> temporary := c(temporary) / c(glob_h) * c(3);
> array_y_higher[2,3] := c(temporary);
> fi;# end if 2;
> fi;# end if 1;
> kkk := 4;
> #END ATOMHDR3
> #BEGIN ATOMHDR4
> #emit pre sin ID_LINEAR iii = 4 $eq_no = 1
> array_tmp4[4] := array_tmp4_g[3] * array_x[2] / c(3);
> array_tmp4_g[4] := neg(array_tmp4[3]) * array_x[2] / c(3);
> #emit pre sub LINEAR FULL $eq_no = 1 i = 4
> array_tmp5[4] := neg( array_tmp4[4]);
> #emit pre assign xxx $eq_no = 1 i = 4 $min_hdrs = 5
> if ( not array_y_set_initial[1,5]) then # if number 1
> if (4 <= ATS_MAX_TERMS) then # if number 2
> temporary := c(array_tmp5[4]) * (expt((glob_h) , c(1))) * c(factorial_3(3,4));
> if (5 <= ATS_MAX_TERMS) then # if number 3
> array_y[5] := temporary;
> array_y_higher[1,5] := temporary;
> fi;# end if 3;
> temporary := c(temporary) / c(glob_h) * c(4);
> array_y_higher[2,4] := c(temporary);
> fi;# end if 2;
> fi;# end if 1;
> kkk := 5;
> #END ATOMHDR4
> #BEGIN ATOMHDR5
> #emit pre sin ID_LINEAR iii = 5 $eq_no = 1
> array_tmp4[5] := array_tmp4_g[4] * array_x[2] / c(4);
> array_tmp4_g[5] := neg(array_tmp4[4]) * array_x[2] / c(4);
> #emit pre sub LINEAR FULL $eq_no = 1 i = 5
> array_tmp5[5] := neg( array_tmp4[5]);
> #emit pre assign xxx $eq_no = 1 i = 5 $min_hdrs = 5
> if ( not array_y_set_initial[1,6]) then # if number 1
> if (5 <= ATS_MAX_TERMS) then # if number 2
> temporary := c(array_tmp5[5]) * (expt((glob_h) , c(1))) * c(factorial_3(4,5));
> if (6 <= ATS_MAX_TERMS) then # if number 3
> array_y[6] := temporary;
> array_y_higher[1,6] := temporary;
> fi;# end if 3;
> temporary := c(temporary) / c(glob_h) * c(5);
> array_y_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 sin LINEAR $eq_no = 1
> array_tmp4[kkk] := array_tmp4_g[kkk - 1] * array_x[2] / c(kkk - 1);
> array_tmp4_g[kkk] := neg(array_tmp4[kkk - 1]) * array_x[2] / c(kkk - 1);
> #emit NOT FULL - FULL sub $eq_no = 1
> array_tmp5[kkk] := neg( array_tmp4[kkk]);
> #emit assign $eq_no = 1
> order_d := 1;
> if (kkk + order_d <= ATS_MAX_TERMS) then # if number 1
> if ( not array_y_set_initial[1,kkk + order_d]) then # if number 2
> temporary := c(array_tmp5[kkk]) * expt((glob_h) , c(order_d)) * c(factorial_3((kkk - 1),(kkk + order_d - 1)));
> array_y[kkk + order_d] := c(temporary);
> array_y_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_y_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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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_0D1[1]*array_x[1];
array_tmp2[1] := array_tmp1[1] + array_const_1D0[1];
array_tmp3[1] := array_const_0D0[1] + array_tmp2[1];
array_tmp4[1] := sin(array_x[1]);
array_tmp4_g[1] := cos(array_x[1]);
array_tmp5[1] := array_tmp3[1] - array_tmp4[1];
if not array_y_set_initial[1, 2] then
if 1 <= ATS_MAX_TERMS then
temporary :=
c(array_tmp5[1])*expt(glob_h, c(1))*c(factorial_3(0, 1));
if 2 <= ATS_MAX_TERMS then
array_y[2] := temporary; array_y_higher[1, 2] := temporary
end if;
temporary := c(temporary)*c(1)/c(glob_h);
array_y_higher[2, 1] := c(temporary)
end if
end if;
kkk := 2;
array_tmp1[2] := array_const_0D1[1]*array_x[2];
array_tmp2[2] := array_tmp1[2];
array_tmp3[2] := array_tmp2[2];
array_tmp4[2] := array_tmp4_g[1]*array_x[2]/c(1);
array_tmp4_g[2] := neg(array_tmp4[1])*array_x[2]/c(1);
array_tmp5[2] := array_tmp3[2] - array_tmp4[2];
if not array_y_set_initial[1, 3] then
if 2 <= ATS_MAX_TERMS then
temporary :=
c(array_tmp5[2])*expt(glob_h, c(1))*c(factorial_3(1, 2));
if 3 <= ATS_MAX_TERMS then
array_y[3] := temporary; array_y_higher[1, 3] := temporary
end if;
temporary := c(temporary)*c(2)/c(glob_h);
array_y_higher[2, 2] := c(temporary)
end if
end if;
kkk := 3;
array_tmp4[3] := array_tmp4_g[2]*array_x[2]/c(2);
array_tmp4_g[3] := neg(array_tmp4[2])*array_x[2]/c(2);
array_tmp5[3] := neg(array_tmp4[3]);
if not array_y_set_initial[1, 4] then
if 3 <= ATS_MAX_TERMS then
temporary :=
c(array_tmp5[3])*expt(glob_h, c(1))*c(factorial_3(2, 3));
if 4 <= ATS_MAX_TERMS then
array_y[4] := temporary; array_y_higher[1, 4] := temporary
end if;
temporary := c(temporary)*c(3)/c(glob_h);
array_y_higher[2, 3] := c(temporary)
end if
end if;
kkk := 4;
array_tmp4[4] := array_tmp4_g[3]*array_x[2]/c(3);
array_tmp4_g[4] := neg(array_tmp4[3])*array_x[2]/c(3);
array_tmp5[4] := neg(array_tmp4[4]);
if not array_y_set_initial[1, 5] then
if 4 <= ATS_MAX_TERMS then
temporary :=
c(array_tmp5[4])*expt(glob_h, c(1))*c(factorial_3(3, 4));
if 5 <= ATS_MAX_TERMS then
array_y[5] := temporary; array_y_higher[1, 5] := temporary
end if;
temporary := c(temporary)*c(4)/c(glob_h);
array_y_higher[2, 4] := c(temporary)
end if
end if;
kkk := 5;
array_tmp4[5] := array_tmp4_g[4]*array_x[2]/c(4);
array_tmp4_g[5] := neg(array_tmp4[4])*array_x[2]/c(4);
array_tmp5[5] := neg(array_tmp4[5]);
if not array_y_set_initial[1, 6] then
if 5 <= ATS_MAX_TERMS then
temporary :=
c(array_tmp5[5])*expt(glob_h, c(1))*c(factorial_3(4, 5));
if 6 <= ATS_MAX_TERMS then
array_y[6] := temporary; array_y_higher[1, 6] := temporary
end if;
temporary := c(temporary)*c(5)/c(glob_h);
array_y_higher[2, 5] := c(temporary)
end if
end if;
kkk := 6;
while kkk <= ATS_MAX_TERMS do
array_tmp4[kkk] := array_tmp4_g[kkk - 1]*array_x[2]/c(kkk - 1);
array_tmp4_g[kkk] := neg(array_tmp4[kkk - 1])*array_x[2]/c(kkk - 1)
;
array_tmp5[kkk] := neg(array_tmp4[kkk]);
order_d := 1;
if kkk + order_d <= ATS_MAX_TERMS then
if not array_y_set_initial[1, kkk + order_d] then
temporary := c(array_tmp5[kkk])*expt(glob_h, c(order_d))*
c(factorial_3(kkk - 1, kkk + order_d - 1));
array_y[kkk + order_d] := c(temporary);
array_y_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_y_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_1,
> array_const_0D0,
> array_const_0D1,
> array_const_1D0,
> #END CONST
> array_y_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_y,
> array_x,
> array_tmp0,
> array_tmp1,
> array_tmp2,
> array_tmp3,
> array_tmp4_g,
> array_tmp4,
> array_tmp5,
> array_m1,
> array_y_higher,
> array_y_higher_work,
> array_y_higher_work2,
> array_y_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:=32;
> 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_y_init:= Array(0..(40),[]);
> array_norms:= Array(0..(40),[]);
> array_fact_1:= Array(0..(40),[]);
> array_1st_rel_error:= Array(0..(2),[]);
> array_last_rel_error:= Array(0..(2),[]);
> array_est_rel_error:= Array(0..(2),[]);
> array_max_est_error:= Array(0..(2),[]);
> array_type_pole:= Array(0..(2),[]);
> array_type_real_pole:= Array(0..(2),[]);
> array_type_complex_pole:= Array(0..(2),[]);
> array_est_digits:= Array(0..(2),[]);
> array_y:= Array(0..(40),[]);
> array_x:= 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_g:= Array(0..(40),[]);
> array_tmp4:= Array(0..(40),[]);
> array_tmp5:= Array(0..(40),[]);
> array_m1:= Array(0..(40),[]);
> array_y_higher := Array(0..(2) ,(0..40+ 1),[]);
> array_y_higher_work := Array(0..(2) ,(0..40+ 1),[]);
> array_y_higher_work2 := Array(0..(2) ,(0..40+ 1),[]);
> array_y_set_initial := Array(0..(2) ,(0..40+ 1),[]);
> array_given_rad_poles := Array(0..(2) ,(0..3+ 1),[]);
> array_given_ord_poles := Array(0..(2) ,(0..3+ 1),[]);
> array_rad_test_poles := Array(0..(2) ,(0..4+ 1),[]);
> array_ord_test_poles := Array(0..(2) ,(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_y_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 <= 2) do # do number 1
> array_1st_rel_error[term] := c(0.0);
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_last_rel_error[term] := c(0.0);
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_est_rel_error[term] := c(0.0);
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_max_est_error[term] := c(0.0);
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_type_pole[term] := 0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_type_real_pole[term] := 0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) do # do number 1
> array_type_complex_pole[term] := 0;
> term := term + 1;
> od;# end do number 1;
> term := 1;
> while (term <= 2) 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_y[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_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_g[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_tmp5[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 <=2) do # do number 1
> term := 1;
> while (term <= 40) do # do number 2
> array_y_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_y_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_y_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 <=2) do # do number 1
> term := 1;
> while (term <= 40) do # do number 2
> array_y_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 <= 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 <=2) 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 <=2) 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 <=2) 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_y);
> zero_ats_ar(array_x);
> 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_g);
> zero_ats_ar(array_tmp4);
> zero_ats_ar(array_tmp5);
> zero_ats_ar(array_m1);
> zero_ats_ar(array_const_1);
> array_const_1[1] := c(1);
> zero_ats_ar(array_const_0D0);
> array_const_0D0[1] := c(0.0);
> zero_ats_ar(array_const_0D1);
> array_const_0D1[1] := c(0.1);
> zero_ats_ar(array_const_1D0);
> array_const_1D0[1] := c(1.0);
> 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_y_set_initial[1,1] := true;
> array_y_set_initial[1,2] := false;
> array_y_set_initial[1,3] := false;
> array_y_set_initial[1,4] := false;
> array_y_set_initial[1,5] := false;
> array_y_set_initial[1,6] := false;
> array_y_set_initial[1,7] := false;
> array_y_set_initial[1,8] := false;
> array_y_set_initial[1,9] := false;
> array_y_set_initial[1,10] := false;
> array_y_set_initial[1,11] := false;
> array_y_set_initial[1,12] := false;
> array_y_set_initial[1,13] := false;
> array_y_set_initial[1,14] := false;
> array_y_set_initial[1,15] := false;
> array_y_set_initial[1,16] := false;
> array_y_set_initial[1,17] := false;
> array_y_set_initial[1,18] := false;
> array_y_set_initial[1,19] := false;
> array_y_set_initial[1,20] := false;
> array_y_set_initial[1,21] := false;
> array_y_set_initial[1,22] := false;
> array_y_set_initial[1,23] := false;
> array_y_set_initial[1,24] := false;
> array_y_set_initial[1,25] := false;
> array_y_set_initial[1,26] := false;
> array_y_set_initial[1,27] := false;
> array_y_set_initial[1,28] := false;
> array_y_set_initial[1,29] := false;
> array_y_set_initial[1,30] := false;
> array_y_set_initial[1,31] := false;
> array_y_set_initial[1,32] := false;
> array_y_set_initial[1,33] := false;
> array_y_set_initial[1,34] := false;
> array_y_set_initial[1,35] := false;
> array_y_set_initial[1,36] := false;
> array_y_set_initial[1,37] := false;
> array_y_set_initial[1,38] := false;
> array_y_set_initial[1,39] := false;
> array_y_set_initial[1,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 := 1;
> glob_iter := -1;
> opt_iter := -1;
> glob_max_iter := 50000;
> glob_max_hours := (0.0);
> glob_max_minutes := (15.0);
> omniout_str(ALWAYS,"##############ECHO OF PROBLEM#################");
> omniout_str(ALWAYS,"##############temp/sub_lin_sinpostode.ode#################");
> omniout_str(ALWAYS,"diff ( y , x , 1 ) = ( 0.1 * x + 1.0 ) - sin ( x ) ; ");
> omniout_str(ALWAYS,"!");
> omniout_str(ALWAYS,"#BEGIN FIRST INPUT BLOCK");
> omniout_str(ALWAYS,"Digits:=32;");
> 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(5.0) ;");
> omniout_str(ALWAYS,"array_y_init[0 + 1] := exact_soln_y(x_start);");
> omniout_str(ALWAYS,"glob_look_poles := true;");
> 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,"");
> 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.000001);");
> omniout_str(ALWAYS,"glob_lower_ratio_limit:=c(0.999999);");
> omniout_str(ALWAYS,"glob_look_poles:=false;");
> omniout_str(ALWAYS,"glob_h:=c(0.001);");
> 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_y := proc(x)");
> omniout_str(ALWAYS,"return(cos(c(x)) + (c(0.05) * c(x) * c(x)) + c(x)) ;");
> omniout_str(ALWAYS,"end;");
> omniout_str(ALWAYS,"#END USER DEF BLOCK");
> omniout_str(ALWAYS,"#######END OF ECHO OF PROBLEM#################");
> glob_unchanged_h_cnt := 0;
> glob_warned := false;
> glob_warned2 := false;
> glob_small_float := 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(5.0) ;
> array_y_init[0 + 1] := exact_soln_y(x_start);
> glob_look_poles := true;
> 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.000001);
> glob_lower_ratio_limit:=c(0.999999);
> glob_look_poles:=false;
> glob_h:=c(0.001);
> 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 9
> #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 10
> glob_display_interval := c(display_max);
> fi;# end if 10;
> 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 := 1;
> #Start Series array_y
> term_no := 1;
> while (term_no <= order_diff) do # do number 2
> array_y[term_no] := array_y_init[term_no] * expt(glob_h , 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 10
> array_y_higher[r_order,term_no] := array_y_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1)));
> fi;# end if 10;
> term_no := term_no + 1;
> od;# end do number 3;
> r_order := r_order + 1;
> od;# end do number 2
> ;
> atomall();
> if (glob_check_sign * glob_min_h >= glob_check_sign * glob_h) then # if number 10
> 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 10;
> if (glob_check_sign * glob_display_interval <= glob_check_sign * glob_h) then # if number 10
> omniout_str(ALWAYS,"SETTING H FOR DISPLAY INTERVAL");
> glob_h_reason := 2;
> glob_h := glob_display_interval;
> found_h := true;
> fi;# end if 10;
> if (glob_look_poles) then # if number 10
> check_for_pole();
> fi;# end if 10;
> if ( not found_h) then # if number 10
> 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 11
> 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 11;
> fi;# end if 10;
> opt_iter := opt_iter + 1;
> od;# end do number 1;
> if (( not found_h) and (opt_iter = 1)) then # if number 10
> omniout_str(ALWAYS,"Beginning glob_h too large.");
> found_h := false;
> fi;# end if 10;
> if (glob_check_sign * glob_max_h <= glob_check_sign * glob_h) then # if number 10
> 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 10;
> else
> found_h := true;
> glob_h := glob_h * glob_check_sign;
> fi;# end if 9;
> #END OPTIMIZE CODE
> if (glob_html_log) then # if number 9
> html_log_file := fopen("entry.html",WRITE,TEXT);
> fi;# end if 9;
> #BEGIN SOLUTION CODE
> if (found_h) then # if number 9
> omniout_str(ALWAYS,"START of Soultion");
> #Start Series -- INITIALIZE FOR SOLUTION
> array_x[1] := 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 := 1;
> #Start Series array_y
> term_no := 1;
> while (term_no <= order_diff) do # do number 1
> array_y[term_no] := array_y_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 10
> array_y_higher[r_order,term_no] := array_y_init[it]* expt(glob_h , c(term_no - 1)) / (c(factorial_1(term_no - 1)));
> fi;# end if 10;
> 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 10
> omniout_str(INFO," ");
> omniout_str(INFO,"TOP MAIN SOLVE Loop");
> fi;# end if 10;
> glob_iter := glob_iter + 1;
> glob_clock_sec := elapsed_time_seconds();
> track_estimated_error();
> atomall();
> track_estimated_error();
> display_alot(current_iter);
> if (glob_look_poles) then # if number 10
> check_for_pole();
> fi;# end if 10;
> if (reached_interval()) then # if number 10
> glob_next_display := glob_next_display + glob_display_interval;
> fi;# end if 10;
> array_x[1] := array_x[1] + glob_h;
> array_x[2] := glob_h;
> #Jump Series array_y;
> order_diff := 2;
> #START PART 1 SUM AND ADJUST
> #START SUM AND ADJUST EQ =1
> #sum_and_adjust array_y
> #BEFORE ADJUST SUBSERIES EQ =1
> ord := 2;
> calc_term := 1;
> #adjust_subseriesarray_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> array_y_higher_work[2,iii] := array_y_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_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y_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_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> array_y_higher_work[1,iii] := array_y_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_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y_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_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> array_y_higher_work[1,iii] := array_y_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_y
> iii := ATS_MAX_TERMS;
> while (iii >= calc_term) do # do number 2
> temp_sum := temp_sum + array_y_higher_work[ord,iii];
> iii := iii - 1;
> od;# end do number 2;
> array_y_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_y[term_no] := array_y_higher_work2[1,term_no];
> ord := 1;
> while (ord <= order_diff) do # do number 3
> array_y_higher[ord,term_no] := array_y_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 10
> omniout_str(ALWAYS,"Maximum Iterations Reached before Solution Completed!");
> fi;# end if 10;
> if (elapsed_time_seconds() - (glob_orig_start_sec) >= (glob_max_sec )) then # if number 10
> omniout_str(ALWAYS,"Maximum Time Reached before Solution Completed!");
> fi;# end if 10;
> glob_clock_sec := elapsed_time_seconds();
> omniout_str(INFO,"diff ( y , x , 1 ) = ( 0.1 * x + 1.0 ) - sin ( x ) ; ");
> omniout_int(INFO,"Iterations ",32,glob_iter,4," ")
> ;
> prog_report(x_start,x_end);
> if (glob_html_log) then # if number 10
> logstart(html_log_file);
> logitem_str(html_log_file,"2016-08-26T17:02:26-05:00")
> ;
> logitem_str(html_log_file,"Maple")
> ;
> logitem_str(html_log_file,"sub_lin_sin")
> ;
> logitem_str(html_log_file,"diff ( y , x , 1 ) = ( 0.1 * x + 1.0 ) - sin ( x ) ; ")
> ;
> 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 11
> logitem_integer(html_log_file,array_est_digits[1])
> ;
> else
> logitem_str(html_log_file,"Unknown")
> ;
> fi;# end if 11;
> if (glob_min_good_digits <> -16) then # if number 11
> logitem_integer(html_log_file,glob_min_good_digits)
> ;
> else
> logitem_str(html_log_file,"Unknown")
> ;
> fi;# end if 11;
> if (glob_good_digits <> -16) then # if number 11
> logitem_integer(html_log_file,glob_good_digits)
> ;
> else
> logitem_str(html_log_file,"Unknown")
> ;
> fi;# end if 11;
> 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 11
> logitem_str(html_log_file,"Not Given")
> ;
> logitem_str(html_log_file,"NA")
> ;
> elif
> (glob_type_given_pole = 4) then # if number 12
> logitem_str(html_log_file,"No Solution")
> ;
> logitem_str(html_log_file,"NA")
> ;
> elif
> (glob_type_given_pole = 5) then # if number 13
> logitem_str(html_log_file,"Some Pole")
> ;
> logitem_str(html_log_file,"????")
> ;
> elif
> (glob_type_given_pole = 3) then # if number 14
> logitem_str(html_log_file,"No Pole")
> ;
> logitem_str(html_log_file,"NA")
> ;
> elif
> (glob_type_given_pole = 1) then # if number 15
> 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 16
> logitem_str(html_log_file,"Complex Sing")
> ;
> logitem_float(html_log_file,glob_least_given_sing)
> ;
> fi;# end if 16;
> if (glob_least_ratio_sing < glob_large_float) then # if number 16
> logitem_float(html_log_file,glob_least_ratio_sing)
> ;
> else
> logitem_str(html_log_file,"NONE")
> ;
> fi;# end if 16;
> if (glob_least_3_sing < glob_large_float) then # if number 16
> logitem_float(html_log_file,glob_least_3_sing)
> ;
> else
> logitem_str(html_log_file,"NONE")
> ;
> fi;# end if 16;
> if (glob_least_6_sing < glob_large_float) then # if number 16
> logitem_float(html_log_file,glob_least_6_sing)
> ;
> else
> logitem_str(html_log_file,"NONE")
> ;
> fi;# end if 16;
> 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 16
> logitem_time(html_log_file,(glob_total_exp_sec))
> ;
> 0;
> else
> logitem_str(html_log_file,"Done")
> ;
> 0;
> fi;# end if 16;
> log_revs(html_log_file," 308.maple.seems.ok | ")
> ;
> logitem_str(html_log_file,"sub_lin_sin diffeq.mxt")
> ;
> logitem_str(html_log_file,"sub_lin_sin maple results")
> ;
> logitem_str(html_log_file,"OK")
> ;
> logend(html_log_file)
> ;
> ;
> fi;# end if 15;
> if (glob_html_log) then # if number 15
> fclose(html_log_file);
> fi;# end if 15
> ;
> ;;
> fi;# end if 14
> #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_1, array_const_0D0, array_const_0D1,
array_const_1D0, array_y_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_y, array_x, array_tmp0,
array_tmp1, array_tmp2, array_tmp3, array_tmp4_g, array_tmp4, array_tmp5,
array_m1, array_y_higher, array_y_higher_work, array_y_higher_work2,
array_y_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 := 32;
max_terms := 40;
glob_html_log := true;
array_y_init := Array(0 .. 40, []);
array_norms := Array(0 .. 40, []);
array_fact_1 := Array(0 .. 40, []);
array_1st_rel_error := Array(0 .. 2, []);
array_last_rel_error := Array(0 .. 2, []);
array_est_rel_error := Array(0 .. 2, []);
array_max_est_error := Array(0 .. 2, []);
array_type_pole := Array(0 .. 2, []);
array_type_real_pole := Array(0 .. 2, []);
array_type_complex_pole := Array(0 .. 2, []);
array_est_digits := Array(0 .. 2, []);
array_y := Array(0 .. 40, []);
array_x := 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_g := Array(0 .. 40, []);
array_tmp4 := Array(0 .. 40, []);
array_tmp5 := Array(0 .. 40, []);
array_m1 := Array(0 .. 40, []);
array_y_higher := Array(0 .. 2, 0 .. 41, []);
array_y_higher_work := Array(0 .. 2, 0 .. 41, []);
array_y_higher_work2 := Array(0 .. 2, 0 .. 41, []);
array_y_set_initial := Array(0 .. 2, 0 .. 41, []);
array_given_rad_poles := Array(0 .. 2, 0 .. 4, []);
array_given_ord_poles := Array(0 .. 2, 0 .. 4, []);
array_rad_test_poles := Array(0 .. 2, 0 .. 5, []);
array_ord_test_poles := Array(0 .. 2, 0 .. 5, []);
array_fact_2 := Array(0 .. 40, 0 .. 41, []);
term := 1;
while term <= 40 do array_y_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 <= 2 do array_1st_rel_error[term] := c(0.); term := term + 1
end do;
term := 1;
while term <= 2 do
array_last_rel_error[term] := c(0.); term := term + 1
end do;
term := 1;
while term <= 2 do array_est_rel_error[term] := c(0.); term := term + 1
end do;
term := 1;
while term <= 2 do array_max_est_error[term] := c(0.); term := term + 1
end do;
term := 1;
while term <= 2 do array_type_pole[term] := 0; term := term + 1 end do;
term := 1;
while term <= 2 do array_type_real_pole[term] := 0; term := term + 1
end do;
term := 1;
while term <= 2 do array_type_complex_pole[term] := 0; term := term + 1
end do;
term := 1;
while term <= 2 do array_est_digits[term] := 0; term := term + 1 end do
;
term := 1;
while term <= 40 do array_y[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_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_g[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_tmp5[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 <= 2 do
term := 1;
while term <= 40 do
array_y_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_y_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_y_higher_work2[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_y_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 <= 3 do
array_given_rad_poles[ord, term] := c(0.); term := term + 1
end do;
ord := ord + 1
end do;
ord := 1;
while ord <= 2 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 <= 2 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 <= 2 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_y);
zero_ats_ar(array_x);
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_g);
zero_ats_ar(array_tmp4);
zero_ats_ar(array_tmp5);
zero_ats_ar(array_m1);
zero_ats_ar(array_const_1);
array_const_1[1] := c(1);
zero_ats_ar(array_const_0D0);
array_const_0D0[1] := c(0.);
zero_ats_ar(array_const_0D1);
array_const_0D1[1] := c(0.1);
zero_ats_ar(array_const_1D0);
array_const_1D0[1] := c(1.0);
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_y_set_initial[1, 1] := true;
array_y_set_initial[1, 2] := false;
array_y_set_initial[1, 3] := false;
array_y_set_initial[1, 4] := false;
array_y_set_initial[1, 5] := false;
array_y_set_initial[1, 6] := false;
array_y_set_initial[1, 7] := false;
array_y_set_initial[1, 8] := false;
array_y_set_initial[1, 9] := false;
array_y_set_initial[1, 10] := false;
array_y_set_initial[1, 11] := false;
array_y_set_initial[1, 12] := false;
array_y_set_initial[1, 13] := false;
array_y_set_initial[1, 14] := false;
array_y_set_initial[1, 15] := false;
array_y_set_initial[1, 16] := false;
array_y_set_initial[1, 17] := false;
array_y_set_initial[1, 18] := false;
array_y_set_initial[1, 19] := false;
array_y_set_initial[1, 20] := false;
array_y_set_initial[1, 21] := false;
array_y_set_initial[1, 22] := false;
array_y_set_initial[1, 23] := false;
array_y_set_initial[1, 24] := false;
array_y_set_initial[1, 25] := false;
array_y_set_initial[1, 26] := false;
array_y_set_initial[1, 27] := false;
array_y_set_initial[1, 28] := false;
array_y_set_initial[1, 29] := false;
array_y_set_initial[1, 30] := false;
array_y_set_initial[1, 31] := false;
array_y_set_initial[1, 32] := false;
array_y_set_initial[1, 33] := false;
array_y_set_initial[1, 34] := false;
array_y_set_initial[1, 35] := false;
array_y_set_initial[1, 36] := false;
array_y_set_initial[1, 37] := false;
array_y_set_initial[1, 38] := false;
array_y_set_initial[1, 39] := false;
array_y_set_initial[1, 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 := 1;
glob_iter := -1;
opt_iter := -1;
glob_max_iter := 50000;
glob_max_hours := 0.;
glob_max_minutes := 15.0;
omniout_str(ALWAYS, "##############ECHO OF PROBLEM#################");
omniout_str(ALWAYS,
"##############temp/sub_lin_sinpostode.ode#################");
omniout_str(ALWAYS, "diff ( y , x , 1 ) = ( 0.1 * x + \
1.0 ) - sin ( x ) ; ");
omniout_str(ALWAYS, "!");
omniout_str(ALWAYS, "#BEGIN FIRST INPUT BLOCK");
omniout_str(ALWAYS, "Digits:=32;");
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(5.0) ;");
omniout_str(ALWAYS, "array_y_init[0 + 1] := exact_soln_y(x_start);");
omniout_str(ALWAYS, "glob_look_poles := true;");
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, "");
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.000001);");
omniout_str(ALWAYS, "glob_lower_ratio_limit:=c(0.999999);");
omniout_str(ALWAYS, "glob_look_poles:=false;");
omniout_str(ALWAYS, "glob_h:=c(0.001);");
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_y := proc(x)");
omniout_str(ALWAYS,
"return(cos(c(x)) + (c(0.05) * c(x) * c(x)) + c(x)) ;");
omniout_str(ALWAYS, "end;");
omniout_str(ALWAYS, "#END USER DEF BLOCK");
omniout_str(ALWAYS, "#######END OF ECHO OF PROBLEM#################");
glob_unchanged_h_cnt := 0;
glob_warned := false;
glob_warned2 := false;
glob_small_float := 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(5.0);
array_y_init[1] := exact_soln_y(x_start);
glob_look_poles := true;
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.000001);
glob_lower_ratio_limit := c(0.999999);
glob_look_poles := false;
glob_h := c(0.001);
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 := 1;
term_no := 1;
while term_no <= order_diff do
array_y[term_no] := array_y_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_y_higher[r_order, term_no] :=
array_y_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;
atomall();
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 := 1;
term_no := 1;
while term_no <= order_diff do
array_y[term_no] := array_y_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_y_higher[r_order, term_no] := array_y_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();
atomall();
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 := 2;
ord := 2;
calc_term := 1;
iii := ATS_MAX_TERMS;
while calc_term <= iii do
array_y_higher_work[2, iii] := array_y_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_y_higher_work[ord, iii];
iii := iii - 1
end do;
array_y_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_y_higher_work[1, iii] := array_y_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_y_higher_work[ord, iii];
iii := iii - 1
end do;
array_y_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_y_higher_work[1, iii] := array_y_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_y_higher_work[ord, iii];
iii := iii - 1
end do;
array_y_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_y[term_no] := array_y_higher_work2[1, term_no];
ord := 1;
while ord <= order_diff do
array_y_higher[ord, term_no] :=
array_y_higher_work2[ord, term_no];
ord := ord + 1
end do;
term_no := term_no - 1
end do
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 ( y , x , 1 ) = ( 0.1 * x +\
1.0 ) - sin ( x ) ; ");
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, "2016-08-26T17:02:26-05:00");
logitem_str(html_log_file, "Maple");
logitem_str(html_log_file,
"sub_lin_sin");
logitem_str(html_log_file, "diff ( y , x , 1 ) = (\
0.1 * x + 1.0 ) - sin ( x ) ; ");
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, "sub_lin_sin diffeq.mxt");
logitem_str(html_log_file, "sub_lin_sin maple results");
logitem_str(html_log_file, "OK");
logend(html_log_file)
end if;
if glob_html_log then fclose(html_log_file) end if
end if
end proc
# End Function number 12
> main();
##############ECHO OF PROBLEM#################
##############temp/sub_lin_sinpostode.ode#################
diff ( y , x , 1 ) = ( 0.1 * x + 1.0 ) - sin ( x ) ;
!
#BEGIN FIRST INPUT BLOCK
Digits:=32;
max_terms:=40;
!
#END FIRST INPUT BLOCK
#BEGIN SECOND INPUT BLOCK
x_start := c(0.1);
x_end := c(5.0) ;
array_y_init[0 + 1] := exact_soln_y(x_start);
glob_look_poles := true;
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.000001);
glob_lower_ratio_limit:=c(0.999999);
glob_look_poles:=false;
glob_h:=c(0.001);
glob_display_interval:=c(0.01);
#END OVERRIDE BLOCK
!
#BEGIN USER DEF BLOCK
exact_soln_y := proc(x)
return(cos(c(x)) + (c(0.05) * c(x) * c(x)) + c(x)) ;
end;
#END USER DEF BLOCK
#######END OF ECHO OF PROBLEM#################
START of Soultion
TOP MAIN SOLVE Loop
x[1] = 0.1
y[1] (closed_form) = 1.0955041652780257660955619878039
y[1] (numeric) = 1.0955041652780257660955619878039
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 14
Correct digits = 32
h = 0.001
memory used=4.0MB, alloc=40.3MB, time=0.09
TOP MAIN SOLVE Loop
x[1] = 0.11
y[1] (closed_form) = 1.1045610979566968503578396114198
y[1] (numeric) = 1.1045610979566968503578396114199
absolute error = 1e-31
relative error = 9.0533697216919723745550845303092e-30 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.12
y[1] (closed_form) = 1.1135286358538662522480981678576
y[1] (numeric) = 1.1135286358538662522480981678577
absolute error = 1e-31
relative error = 8.9804605629489607114171114583523e-30 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.13
y[1] (closed_form) = 1.1224068937147880395945121711518
y[1] (numeric) = 1.122406893714788039594512171152
absolute error = 2e-31
relative error = 1.7818849930444341266522210985637e-29 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.14
y[1] (closed_form) = 1.1311959962126371718989482270114
y[1] (numeric) = 1.1311959962126371718989482270116
absolute error = 2e-31
relative error = 1.7680402040815294144662657780577e-29 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.15
y[1] (closed_form) = 1.1398960779360422867349809986543
y[1] (numeric) = 1.1398960779360422867349809986545
absolute error = 2e-31
relative error = 1.7545459088001325188745416970981e-29 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.16
y[1] (closed_form) = 1.1485072833756269490409525240183
y[1] (numeric) = 1.1485072833756269490409525240185
absolute error = 2e-31
relative error = 1.7413907851952965737258298525785e-29 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.17
y[1] (closed_form) = 1.1570297669095607091719299902125
y[1] (numeric) = 1.1570297669095607091719299902126
absolute error = 1e-31
relative error = 8.6428199913214942470618235496516e-30 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.18
y[1] (closed_form) = 1.1654636927881214145927160246115
y[1] (numeric) = 1.1654636927881214145927160246116
absolute error = 1e-31
relative error = 8.5802758694928960894128928965563e-30 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.19
y[1] (closed_form) = 1.1738092351172703189678775041899
y[1] (numeric) = 1.1738092351172703189678775041901
absolute error = 2e-31
relative error = 1.7038543744292388822753381799318e-29 %
Desired digits = 8
Estimated correct digits = 13
Correct digits = 32
h = 0.001
memory used=33.9MB, alloc=40.3MB, time=0.46
TOP MAIN SOLVE Loop
x[1] = 0.2
y[1] (closed_form) = 1.1820665778412416311241965167482
y[1] (numeric) = 1.1820665778412416311241965167485
absolute error = 3e-31
relative error = 2.5379281135575066801630142331865e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.21
y[1] (closed_form) = 1.1902359147241482449161385680994
y[1] (numeric) = 1.1902359147241482449161385680997
absolute error = 3e-31
relative error = 2.5205087183873852047821414033218e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.22
y[1] (closed_form) = 1.1983174493306054894060229810447
y[1] (numeric) = 1.1983174493306054894060229810452
absolute error = 5e-31
relative error = 4.1725170594762347948559993778572e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.23
y[1] (closed_form) = 1.2063113950053748369677306480716
y[1] (numeric) = 1.2063113950053748369677306480722
absolute error = 6e-31
relative error = 4.9738401086506079305604530821198e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.24
y[1] (closed_form) = 1.2142179748520296049261752469634
y[1] (numeric) = 1.2142179748520296049261752469641
absolute error = 7e-31
relative error = 5.7650274868094037191589479545477e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.25
y[1] (closed_form) = 1.2220374217106447841445954494942
y[1] (numeric) = 1.222037421710644784144595449495
absolute error = 8e-31
relative error = 6.5464443705834794181414034198984e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.26
y[1] (closed_form) = 1.2297699781345132255582176464501
y[1] (numeric) = 1.229769978134513225558217646451
absolute error = 9e-31
relative error = 7.3184417899455118986279019966238e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.27
y[1] (closed_form) = 1.2374158963658905130162327094922
y[1] (numeric) = 1.2374158963658905130162327094933
absolute error = 1.1e-30
relative error = 8.8894930413496311111283418508108e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.28
y[1] (closed_form) = 1.2449754383107709479245900535965
y[1] (numeric) = 1.2449754383107709479245900535975
absolute error = 1.0e-30
relative error = 8.0322869771377759198110006257266e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.29
y[1] (closed_form) = 1.2524488755126971680701247779319
y[1] (numeric) = 1.2524488755126971680701247779329
absolute error = 1.0e-30
relative error = 7.9843578412783055483347517278752e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.3
y[1] (closed_form) = 1.259836489125606019642310227568
y[1] (numeric) = 1.259836489125606019642310227569
absolute error = 1.0e-30
relative error = 7.9375379950619904982611278211356e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.31
y[1] (closed_form) = 1.2671385698857133978428054362022
y[1] (numeric) = 1.2671385698857133978428054362032
absolute error = 1.0e-30
relative error = 7.8917967124163276248290515182958e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=74.4MB, alloc=44.3MB, time=0.96
TOP MAIN SOLVE Loop
x[1] = 0.32
y[1] (closed_form) = 1.2743554180824408675753072737661
y[1] (numeric) = 1.2743554180824408675753072737671
absolute error = 1.0e-30
relative error = 7.8471043934095612766118521314562e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.33
y[1] (closed_form) = 1.2814873435283869715294105783662
y[1] (numeric) = 1.2814873435283869715294105783671
absolute error = 9e-31
relative error = 7.0230892606553751462074168174018e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.34
y[1] (closed_form) = 1.2885346655283462285026440600266
y[1] (numeric) = 1.2885346655283462285026440600275
absolute error = 9e-31
relative error = 6.9846782091110227220092591754970e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.35
y[1] (closed_form) = 1.2954977128473789200350323573037
y[1] (numeric) = 1.2954977128473789200350323573045
absolute error = 8e-31
relative error = 6.1752328241605091144290534395289e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.36
y[1] (closed_form) = 1.3023768236779348583509123681247
y[1] (numeric) = 1.3023768236779348583509123681255
absolute error = 8e-31
relative error = 6.1426154508860657637788977283605e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.37
y[1] (closed_form) = 1.3091723456060344232038129044909
y[1] (numeric) = 1.3091723456060344232038129044916
absolute error = 7e-31
relative error = 5.3468896005129109605647012063114e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.38
y[1] (closed_form) = 1.3158846355765102494925308077246
y[1] (numeric) = 1.3158846355765102494925308077251
absolute error = 5e-31
relative error = 3.7997251923299640027841786027725e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.39
y[1] (closed_form) = 1.3225140598573130414506767528811
y[1] (numeric) = 1.3225140598573130414506767528816
absolute error = 5e-31
relative error = 3.7806781430659825767659424664417e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.4
y[1] (closed_form) = 1.3290609940028850827985267320518
y[1] (numeric) = 1.3290609940028850827985267320523
absolute error = 5e-31
relative error = 3.7620545803100637539613390616361e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.41
y[1] (closed_form) = 1.335525822816605105475642058277
y[1] (numeric) = 1.3355258228166051054756420582777
absolute error = 7e-31
relative error = 5.2413812450567963002233458595600e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.42
y[1] (closed_form) = 1.3419089403123082724360887896657
y[1] (numeric) = 1.3419089403123082724360887896664
absolute error = 7e-31
relative error = 5.2164493355047323254125825576176e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.43
y[1] (closed_form) = 1.3482107496748851224759104776634
y[1] (numeric) = 1.3482107496748851224759104776642
absolute error = 8e-31
relative error = 5.9337903973315474144395188518176e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.44
y[1] (closed_form) = 1.3544316632199634171655373889984
y[1] (numeric) = 1.3544316632199634171655373889991
absolute error = 7e-31
relative error = 5.1682194016038598765111607964979e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=115.0MB, alloc=44.3MB, time=1.44
TOP MAIN SOLVE Loop
x[1] = 0.45
y[1] (closed_form) = 1.3605721023526769216688406114864
y[1] (numeric) = 1.3605721023526769216688406114873
absolute error = 9e-31
relative error = 6.6148644268373290346109794481616e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.46
y[1] (closed_form) = 1.3666324975255252425363899035004
y[1] (numeric) = 1.3666324975255252425363899035012
absolute error = 8e-31
relative error = 5.8538048923065216443553584203826e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.47
y[1] (closed_form) = 1.3726132881953289364540192765334
y[1] (numeric) = 1.3726132881953289364540192765343
absolute error = 9e-31
relative error = 6.5568358381791071727005435743152e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.48
y[1] (closed_form) = 1.3785149227792841943999548311587
y[1] (numeric) = 1.3785149227792841943999548311596
absolute error = 9e-31
relative error = 6.5287650146395996830130579111972e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.49
y[1] (closed_form) = 1.3843378586101214957054681591367
y[1] (numeric) = 1.3843378586101214957054681591375
absolute error = 8e-31
relative error = 5.7789360814216401170015042724736e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.5
y[1] (closed_form) = 1.3900825618903727161162815826038
y[1] (numeric) = 1.3900825618903727161162815826046
absolute error = 8e-31
relative error = 5.7550538502697301818318949731330e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.51
y[1] (closed_form) = 1.3957495076457512631058084735755
y[1] (numeric) = 1.3957495076457512631058084735763
absolute error = 8e-31
relative error = 5.7316874956265025282730892708608e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.52
y[1] (closed_form) = 1.4013391796776499003878475719885
y[1] (numeric) = 1.4013391796776499003878475719893
absolute error = 8e-31
relative error = 5.7088248983663186200622170344727e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.53
y[1] (closed_form) = 1.4068520705147610118066950185642
y[1] (numeric) = 1.4068520705147610118066950185649
absolute error = 7e-31
relative error = 4.9756475088661813988322048244163e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.54
y[1] (closed_form) = 1.4122886813638241425379687789178
y[1] (numeric) = 1.4122886813638241425379687789184
absolute error = 6e-31
relative error = 4.2484232007056077735886558561011e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.55
y[1] (closed_form) = 1.4176495220595057428049817976178
y[1] (numeric) = 1.4176495220595057428049817976184
absolute error = 6e-31
relative error = 4.2323577912849960427758915394444e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.56
y[1] (closed_form) = 1.4229351110134161260945255038663
y[1] (numeric) = 1.4229351110134161260945255038669
absolute error = 6e-31
relative error = 4.2166364112884899318584500901576e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=155.6MB, alloc=44.3MB, time=1.92
TOP MAIN SOLVE Loop
x[1] = 0.57
y[1] (closed_form) = 1.428145975162268740133756363916
y[1] (numeric) = 1.4281459751622687401337563639167
absolute error = 7e-31
relative error = 4.9014597399293488210722544977172e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.58
y[1] (closed_form) = 1.43328264991518693465788732805
y[1] (numeric) = 1.4332826499151869346578873280507
absolute error = 7e-31
relative error = 4.8838936272717861960679770132282e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.59
y[1] (closed_form) = 1.4383456791001634952479965224907
y[1] (numeric) = 1.4383456791001634952479965224913
absolute error = 6e-31
relative error = 4.1714589803986695803461480977070e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.6
y[1] (closed_form) = 1.4433356149096782972409524989554
y[1] (numeric) = 1.443335614909678297240952498956
absolute error = 6e-31
relative error = 4.1570373085926177247036014131523e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.61
y[1] (closed_form) = 1.4482530178454795179007465786548
y[1] (numeric) = 1.4482530178454795179007465786555
absolute error = 7e-31
relative error = 4.8334095725991856882435805165351e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.62
y[1] (closed_form) = 1.4530984566625339286839996543607
y[1] (numeric) = 1.4530984566625339286839996543613
absolute error = 6e-31
relative error = 4.1291076819259424397422403723483e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.63
y[1] (closed_form) = 1.4578725083121518725237089657771
y[1] (numeric) = 1.4578725083121518725237089657775
absolute error = 4e-31
relative error = 2.7437241440480894031283003663946e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.64
y[1] (closed_form) = 1.4625757578842926135861107792603
y[1] (numeric) = 1.4625757578842926135861107792608
absolute error = 5e-31
relative error = 3.4186263330610736938825939466059e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.65
y[1] (closed_form) = 1.4672087985490558289176045706799
y[1] (numeric) = 1.4672087985490558289176045706802
absolute error = 3e-31
relative error = 2.0446987524657320324888997403283e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.66
y[1] (closed_form) = 1.4717722314973650927838170912302
y[1] (numeric) = 1.4717722314973650927838170912306
absolute error = 4e-31
relative error = 2.7178118423463142924745592127452e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.67
y[1] (closed_form) = 1.4762666658808492853029421448381
y[1] (numeric) = 1.4762666658808492853029421448386
absolute error = 5e-31
relative error = 3.3869219671207790943954064159134e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.68
y[1] (closed_form) = 1.4806927187509279371823940840443
y[1] (numeric) = 1.4806927187509279371823940840448
absolute error = 5e-31
relative error = 3.3767978573014554061815071022409e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.69
y[1] (closed_form) = 1.4850510149971066019735393154978
y[1] (numeric) = 1.4850510149971066019735393154981
absolute error = 3e-31
relative error = 2.0201326215085244379569422492480e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=196.1MB, alloc=44.3MB, time=2.41
TOP MAIN SOLVE Loop
x[1] = 0.7
y[1] (closed_form) = 1.4893421872844884262558599901919
y[1] (numeric) = 1.4893421872844884262558599901922
absolute error = 3e-31
relative error = 2.0143121074612731147729300704779e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.71
y[1] (closed_form) = 1.4935668759905081665414579441396
y[1] (numeric) = 1.4935668759905081665414579441398
absolute error = 2e-31
relative error = 1.3390762959131870096381873370331e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.72
y[1] (closed_form) = 1.497725729140894979445486962252
y[1] (numeric) = 1.4977257291408949794454869622521
absolute error = 1e-31
relative error = 6.6767898857797306533960395142235e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.73
y[1] (closed_form) = 1.5018194023448703887901321585503
y[1] (numeric) = 1.5018194023448703887901321585504
absolute error = 1e-31
relative error = 6.6585902302144112255328157000050e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.74
y[1] (closed_form) = 1.5058485587295879097914245606988
y[1] (numeric) = 1.5058485587295879097914245606988
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.75
y[1] (closed_form) = 1.5098138688738208863118387530001
y[1] (numeric) = 1.5098138688738208863118387529999
absolute error = 2e-31
relative error = 1.3246665971427404189249658679603e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.76
y[1] (closed_form) = 1.513716010740905172339688366667
y[1] (numeric) = 1.5137160107409051723396883666669
absolute error = 1e-31
relative error = 6.6062589871830638473464497211464e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.77
y[1] (closed_form) = 1.5175556696109433633712905653243
y[1] (numeric) = 1.5175556696109433633712905653243
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.78
y[1] (closed_form) = 1.5213335380122773572162650237646
y[1] (numeric) = 1.5213335380122773572162650237646
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.79
y[1] (closed_form) = 1.525050315652236096912780861085
y[1] (numeric) = 1.5250503156522360969127808610848
absolute error = 2e-31
relative error = 1.3114321406140863091719666603487e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.8
y[1] (closed_form) = 1.5287067093471654209207499816423
y[1] (numeric) = 1.528706709347165420920749981642
absolute error = 3e-31
relative error = 1.9624431433817352338805233692202e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.81
y[1] (closed_form) = 1.5323034329517470175496392406801
y[1] (numeric) = 1.5323034329517470175496392406799
absolute error = 2e-31
relative error = 1.3052245116669271179889374602588e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=236.7MB, alloc=44.3MB, time=2.90
TOP MAIN SOLVE Loop
x[1] = 0.82
y[1] (closed_form) = 1.5358412072876135516665579784369
y[1] (numeric) = 1.5358412072876135516665579784369
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.83
y[1] (closed_form) = 1.5393207600712671021124629178644
y[1] (numeric) = 1.5393207600712671021124629178645
absolute error = 1e-31
relative error = 6.4963718150186075620123143360524e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.84
y[1] (closed_form) = 1.5427428258413081179226710368709
y[1] (numeric) = 1.542742825841308117922671036871
absolute error = 1e-31
relative error = 6.4819617583032174871240724158772e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.85
y[1] (closed_form) = 1.5461081458849821703954160294615
y[1] (numeric) = 1.5461081458849821703954160294617
absolute error = 2e-31
relative error = 1.2935705728755559378137477093768e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.86
y[1] (closed_form) = 1.5494174681640518462720306642239
y[1] (numeric) = 1.5494174681640518462720306642241
absolute error = 2e-31
relative error = 1.2908077010193101898510587886406e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.87
y[1] (closed_form) = 1.5526715472400011947776638054828
y[1] (numeric) = 1.5526715472400011947776638054831
absolute error = 3e-31
relative error = 1.9321536517705510675407781966258e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.88
y[1] (closed_form) = 1.5558711441985802080154986057221
y[1] (numeric) = 1.5558711441985802080154986057223
absolute error = 2e-31
relative error = 1.2854534949487657427618083085721e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.89
y[1] (closed_form) = 1.5590170265736968802035530573802
y[1] (numeric) = 1.5590170265736968802035530573805
absolute error = 3e-31
relative error = 1.9242894393483302163995858265746e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.9
y[1] (closed_form) = 1.5621099682706644564847161514071
y[1] (numeric) = 1.5621099682706644564847161514076
absolute error = 5e-31
relative error = 3.2007989844244163241674762281164e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.91
y[1] (closed_form) = 1.5651507494888115465211782261747
y[1] (numeric) = 1.5651507494888115465211782261753
absolute error = 6e-31
relative error = 3.8334965510252856942598104217417e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.92
y[1] (closed_form) = 1.5681401566434628417974047066744
y[1] (numeric) = 1.5681401566434628417974047066748
absolute error = 4e-31
relative error = 2.5507924040168893365651805340280e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.93
y[1] (closed_form) = 1.571078982287298238494907084433
y[1] (numeric) = 1.5710789822872982384949070844334
absolute error = 4e-31
relative error = 2.5460209480853029872968914644491e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=277.3MB, alloc=44.3MB, time=3.38
TOP MAIN SOLVE Loop
x[1] = 0.94
y[1] (closed_form) = 1.573968025031098229960989815224
y[1] (numeric) = 1.5739680250310982299609898152243
absolute error = 3e-31
relative error = 1.9060107653335120571534712387055e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.95
y[1] (closed_form) = 1.5768080894638834941661809737605
y[1] (numeric) = 1.5768080894638834941661809737605
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.96
y[1] (closed_form) = 1.5795999860724566621250508003519
y[1] (numeric) = 1.5795999860724566621250508003518
absolute error = 1e-31
relative error = 6.3307166929420936317798091870180e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.97
y[1] (closed_form) = 1.5823445311603543130365277548499
y[1] (numeric) = 1.5823445311603543130365277548498
absolute error = 1e-31
relative error = 6.3197361908704337946366554873585e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.98
y[1] (closed_form) = 1.5850425467662173008766582673599
y[1] (numeric) = 1.5850425467662173008766582673599
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 0.99
y[1] (closed_form) = 1.5876948605815875753431264086536
y[1] (numeric) = 1.5876948605815875753431264086538
absolute error = 2e-31
relative error = 1.2596878969976517844846167316092e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1
y[1] (closed_form) = 1.590302305868139717400936607443
y[1] (numeric) = 1.5903023058681397174009366074431
absolute error = 1e-31
relative error = 6.2881126205379169632914226571662e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.01
y[1] (closed_form) = 1.5928657213743554662067313557792
y[1] (numeric) = 1.5928657213743554662067313557791
absolute error = 1e-31
relative error = 6.2779930949683604673984186629852e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.02
y[1] (closed_form) = 1.5953859512516495698896138080338
y[1] (numeric) = 1.5953859512516495698896138080338
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.03
y[1] (closed_form) = 1.5978638449699553475335022998374
y[1] (numeric) = 1.5978638449699553475335022998373
absolute error = 1e-31
relative error = 6.2583555110028978197074561685620e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.04
y[1] (closed_form) = 1.6003002572327784037344734209922
y[1] (numeric) = 1.6003002572327784037344734209922
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.05
y[1] (closed_form) = 1.6026960478917269902908495728121
y[1] (numeric) = 1.6026960478917269902908495728121
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.06
y[1] (closed_form) = 1.6050520818605275619186375399564
y[1] (numeric) = 1.6050520818605275619186375399566
absolute error = 2e-31
relative error = 1.2460654844805165587950882214097e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=318.0MB, alloc=44.3MB, time=3.87
TOP MAIN SOLVE Loop
x[1] = 1.07
y[1] (closed_form) = 1.6073692290285341243650930681759
y[1] (numeric) = 1.6073692290285341243650930681762
absolute error = 3e-31
relative error = 1.8664037769424935299126865812169e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.08
y[1] (closed_form) = 1.609648364173740023913524788526
y[1] (numeric) = 1.6096483641737400239135247885263
absolute error = 3e-31
relative error = 1.8637610963807932044378506326171e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.09
y[1] (closed_form) = 1.6118903668753008770278970738751
y[1] (numeric) = 1.6118903668753008770278970738754
absolute error = 3e-31
relative error = 1.8611687628703882640878213131783e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.1
y[1] (closed_form) = 1.6140961214255773877713700517847
y[1] (numeric) = 1.614096121425577387771370051785
absolute error = 3e-31
relative error = 1.8586253694423016771670611415158e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.11
y[1] (closed_form) = 1.6162665167417068486437375119336
y[1] (numeric) = 1.6162665167417068486437375119338
absolute error = 2e-31
relative error = 1.2374196825111962827019837938723e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.12
y[1] (closed_form) = 1.6184024462767121676139887939611
y[1] (numeric) = 1.6184024462767121676139887939615
absolute error = 4e-31
relative error = 2.4715731301583102289363462307324e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.13
y[1] (closed_form) = 1.6205048079301573103712158356535
y[1] (numeric) = 1.6205048079301573103712158356538
absolute error = 3e-31
relative error = 1.8512749763648328673096931419148e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.14
y[1] (closed_form) = 1.6225745039583580921751867408226
y[1] (numeric) = 1.6225745039583580921751867408229
absolute error = 3e-31
relative error = 1.8489135584722538497239625521636e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.15
y[1] (closed_form) = 1.6246124408841572981525767188099
y[1] (numeric) = 1.6246124408841572981525767188102
absolute error = 3e-31
relative error = 1.8465942550380324631033251461372e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.16
y[1] (closed_form) = 1.626619529406273154451639623394
y[1] (numeric) = 1.6266195294062731544516396233941
absolute error = 1e-31
relative error = 6.1477191311296169467748209895656e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.17
y[1] (closed_form) = 1.6285966843082302153326619350505
y[1] (numeric) = 1.6285966843082302153326619350506
absolute error = 1e-31
relative error = 6.1402556546697399989078885772528e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.18
y[1] (closed_form) = 1.6305448243668817730295994667128
y[1] (numeric) = 1.6305448243668817730295994667129
absolute error = 1e-31
relative error = 6.1329194086294825179944717728518e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=358.6MB, alloc=44.3MB, time=4.36
TOP MAIN SOLVE Loop
x[1] = 1.19
y[1] (closed_form) = 1.6324648722605329380656795583505
y[1] (numeric) = 1.6324648722605329380656795583507
absolute error = 2e-31
relative error = 1.2251412168094789847577588302401e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.2
y[1] (closed_form) = 1.6343577544766735776383733556231
y[1] (numeric) = 1.6343577544766735776383733556233
absolute error = 2e-31
relative error = 1.2237222814416212094952559586511e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.21
y[1] (closed_form) = 1.6362244012193303387030107136648
y[1] (numeric) = 1.6362244012193303387030107136649
absolute error = 1e-31
relative error = 6.1116311384599219605292503816161e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.22
y[1] (closed_form) = 1.6380657463160470204755229744352
y[1] (numeric) = 1.6380657463160470204755229744353
absolute error = 1e-31
relative error = 6.1047610710923250407595717975868e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.23
y[1] (closed_form) = 1.6398827271245025982395472454977
y[1] (numeric) = 1.6398827271245025982395472454979
absolute error = 2e-31
relative error = 1.2195994060544530054891004367636e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.24
y[1] (closed_form) = 1.6416762844387762365776934156974
y[1] (numeric) = 1.6416762844387762365776934156976
absolute error = 2e-31
relative error = 1.2182669744076374814844579228537e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.25
y[1] (closed_form) = 1.643447362395268665447538552438
y[1] (numeric) = 1.6434473623952686654475385524382
absolute error = 2e-31
relative error = 1.2169540964701589136612245200352e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.26
y[1] (closed_form) = 1.6451969083782893268863424891765
y[1] (numeric) = 1.6451969083782893268863424891766
absolute error = 1e-31
relative error = 6.0782997761995818612662101979966e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.27
y[1] (closed_form) = 1.646925872925318733551137016088
y[1] (numeric) = 1.6469258729253187335511370160881
absolute error = 1e-31
relative error = 6.0719186967642341350531947426797e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.28
y[1] (closed_form) = 1.6486352096319555127793868935926
y[1] (numeric) = 1.6486352096319555127793868935927
absolute error = 1e-31
relative error = 6.0656232146300085303297315626464e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.29
y[1] (closed_form) = 1.6503258750565576413866060900612
y[1] (numeric) = 1.6503258750565576413866060900613
absolute error = 1e-31
relative error = 6.0594093270562664481435798535316e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.3
y[1] (closed_form) = 1.6519988286245874069979841092929
y[1] (numeric) = 1.6519988286245874069979841092932
absolute error = 3e-31
relative error = 1.8159819171892055138840366179510e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=399.3MB, alloc=44.3MB, time=4.84
TOP MAIN SOLVE Loop
x[1] = 1.31
y[1] (closed_form) = 1.6536550325326696613381769786162
y[1] (numeric) = 1.6536550325326696613381769786166
absolute error = 4e-31
relative error = 2.4188841815900172474280428565682e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.32
y[1] (closed_form) = 1.6552954516523729595739827294274
y[1] (numeric) = 1.6552954516523729595739827294276
absolute error = 2e-31
relative error = 1.2082435181003675700977820405884e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.33
y[1] (closed_form) = 1.6569210534337232075157849860106
y[1] (numeric) = 1.6569210534337232075157849860109
absolute error = 3e-31
relative error = 1.8105871693663043373832492713396e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.34
y[1] (closed_form) = 1.6585328078084594652326394923001
y[1] (numeric) = 1.6585328078084594652326394923006
absolute error = 5e-31
relative error = 3.0147127487980567533486857344011e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.35
y[1] (closed_form) = 1.6601316870930415814200221730106
y[1] (numeric) = 1.6601316870930415814200221730112
absolute error = 6e-31
relative error = 3.6141711206694965056771043120883e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.36
y[1] (closed_form) = 1.6617186658914193576759752523919
y[1] (numeric) = 1.6617186658914193576759752523924
absolute error = 5e-31
relative error = 3.0089329214568213012549056619999e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.37
y[1] (closed_form) = 1.6632947209975729656881983896453
y[1] (numeric) = 1.6632947209975729656881983896459
absolute error = 6e-31
relative error = 3.6072981680609536645230433737709e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.38
y[1] (closed_form) = 1.6648608312978343632091500735982
y[1] (numeric) = 1.6648608312978343632091500735989
absolute error = 7e-31
relative error = 4.2045556411722313190957813998746e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.39
y[1] (closed_form) = 1.666417977672999476596163217804
y[1] (numeric) = 1.6664179776729994765961632178049
absolute error = 9e-31
relative error = 5.4008058725864672273346598586152e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.4
y[1] (closed_form) = 1.6679671429002409386167480352036
y[1] (numeric) = 1.6679671429002409386167480352047
absolute error = 1.1e-30
relative error = 6.5948541293645233741303189334710e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.41
y[1] (closed_form) = 1.6695093115548311901635625493609
y[1] (numeric) = 1.669509311554831190163562549362
absolute error = 1.1e-30
relative error = 6.5887622931288636432160089963641e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.42
y[1] (closed_form) = 1.6710454699116857734869821029759
y[1] (numeric) = 1.671045469911685773486982102977
absolute error = 1.1e-30
relative error = 6.5827053770005112630076331932696e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=440.0MB, alloc=44.3MB, time=5.33
TOP MAIN SOLVE Loop
x[1] = 1.43
y[1] (closed_form) = 1.6725766058467366625338976245749
y[1] (numeric) = 1.672576605846736662533897624576
absolute error = 1.1e-30
relative error = 6.5766793350737346282946561615797e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.44
y[1] (closed_form) = 1.6741037087381454929775201561292
y[1] (numeric) = 1.6741037087381454929775201561303
absolute error = 1.1e-30
relative error = 6.5706801451931806276297764279064e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.45
y[1] (closed_form) = 1.675627769367366570532866627248
y[1] (numeric) = 1.675627769367366570532866627249
absolute error = 1.0e-30
relative error = 5.9679125536189347026373907253385e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.46
y[1] (closed_form) = 1.6771497798200695511746481091234
y[1] (numeric) = 1.6771497798200695511746481091242
absolute error = 8e-31
relative error = 4.7699973468429681715804732588973e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.47
y[1] (closed_form) = 1.6786707333869317009069746014624
y[1] (numeric) = 1.6786707333869317009069746014632
absolute error = 8e-31
relative error = 4.7656755079413236364212906668905e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.48
y[1] (closed_form) = 1.6801916244643096557762265406478
y[1] (numeric) = 1.6801916244643096557762265406487
absolute error = 9e-31
relative error = 5.3565318794333607074962495371716e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.49
y[1] (closed_form) = 1.6817134484548006148683184845637
y[1] (numeric) = 1.6817134484548006148683184845646
absolute error = 9e-31
relative error = 5.3516846215801031898057609744581e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.5
y[1] (closed_form) = 1.6832372016677029100881898514343
y[1] (numeric) = 1.6832372016677029100881898514352
absolute error = 9e-31
relative error = 5.3468400003772845393357896620723e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.51
y[1] (closed_form) = 1.6847638812193859065815955149162
y[1] (numeric) = 1.6847638812193859065815955149171
absolute error = 9e-31
relative error = 5.3419948636873950254609678969806e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.52
y[1] (closed_form) = 1.6862944849335791967261292701527
y[1] (numeric) = 1.6862944849335791967261292701536
absolute error = 9e-31
relative error = 5.3371460800065995174170475197156e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.53
y[1] (closed_form) = 1.6878300112415910586889890070761
y[1] (numeric) = 1.687830011241591058688989007077
absolute error = 9e-31
relative error = 5.3322905387726076423585088951908e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.54
y[1] (closed_form) = 1.6893714590824661576224768070764
y[1] (numeric) = 1.6893714590824661576224768070773
absolute error = 9e-31
relative error = 5.3274251507055132022329092099036e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=480.8MB, alloc=44.3MB, time=5.83
TOP MAIN SOLVE Loop
x[1] = 1.55
y[1] (closed_form) = 1.6909198278030924736439127746956
y[1] (numeric) = 1.6909198278030924736439127746964
absolute error = 8e-31
relative error = 4.7311527539386093150661436165686e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.56
y[1] (closed_form) = 1.6924761170582674458239206637609
y[1] (numeric) = 1.6924761170582674458239206637616
absolute error = 7e-31
relative error = 4.1359520110492694416354065304027e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.57
y[1] (closed_form) = 1.6940413267107333254854085336454
y[1] (numeric) = 1.6940413267107333254854085336459
absolute error = 5e-31
relative error = 2.9515218555549305745558774973324e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.58
y[1] (closed_form) = 1.6956164567311917351946109430173
y[1] (numeric) = 1.6956164567311917351946109430178
absolute error = 5e-31
relative error = 2.9487800617593654622651866658798e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.59
y[1] (closed_form) = 1.6972025070983074319049726537566
y[1] (numeric) = 1.6972025070983074319049726537572
absolute error = 6e-31
relative error = 3.5352292816595873011662860637293e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.6
y[1] (closed_form) = 1.6988004776987112737942295370535
y[1] (numeric) = 1.6988004776987112737942295370541
absolute error = 6e-31
relative error = 3.5319038808653565856526328101700e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.61
y[1] (closed_form) = 1.700411368227012390414672390399
y[1] (numeric) = 1.7004113682270123904146723903995
absolute error = 5e-31
relative error = 2.9404649330317097871942432184198e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.62
y[1] (closed_form) = 1.7020361780858295548562557252877
y[1] (numeric) = 1.7020361780858295548562557252883
absolute error = 6e-31
relative error = 3.5251894626281172723924704769417e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.63
y[1] (closed_form) = 1.7036759062858517547020283025802
y[1] (numeric) = 1.7036759062858517547020283025809
absolute error = 7e-31
relative error = 4.1087626902352300892033822712739e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.64
y[1] (closed_form) = 1.7053315513459379556355072925434
y[1] (numeric) = 1.705331551345937955635507292544
absolute error = 6e-31
relative error = 3.5183774060032386705153268999185e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.65
y[1] (closed_form) = 1.7070041111932660476403854026587
y[1] (numeric) = 1.7070041111932660476403854026594
absolute error = 7e-31
relative error = 4.1007516936246347023698235397682e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.66
y[1] (closed_form) = 1.7086945830635409588147420683494
y[1] (numeric) = 1.70869458306354095881474206835
absolute error = 6e-31
relative error = 3.5114525787531445204526212363686e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.67
y[1] (closed_form) = 1.7104039634012719159052176575514
y[1] (numeric) = 1.710403963401271915905217657552
absolute error = 6e-31
relative error = 3.5079432276738480055454489519431e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=521.6MB, alloc=44.3MB, time=6.32
TOP MAIN SOLVE Loop
x[1] = 1.68
y[1] (closed_form) = 1.7121332477601288237519952658272
y[1] (numeric) = 1.7121332477601288237519952658277
absolute error = 5e-31
relative error = 2.9203334533344123345286050596819e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.69
y[1] (closed_form) = 1.7138834307033877279236095301669
y[1] (numeric) = 1.7138834307033877279236095301674
absolute error = 5e-31
relative error = 2.9173512681361129210232685263613e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.7
y[1] (closed_form) = 1.7156555057044753159123571426651
y[1] (numeric) = 1.7156555057044753159123571426656
absolute error = 5e-31
relative error = 2.9143379794925210415255396084874e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.71
y[1] (closed_form) = 1.7174504650476224023573102169489
y[1] (numeric) = 1.7174504650476224023573102169492
absolute error = 3e-31
relative error = 1.7467752701192545691607947599466e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.72
y[1] (closed_form) = 1.7192692997286363328636217196688
y[1] (numeric) = 1.7192692997286363328636217196692
absolute error = 4e-31
relative error = 2.3265697820762265154812508352902e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.73
y[1] (closed_form) = 1.7211129993558022290950516486574
y[1] (numeric) = 1.7211129993558022290950516486578
absolute error = 4e-31
relative error = 2.3240775018823084516373556011242e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.74
y[1] (closed_form) = 1.7229825520509229849326226846549
y[1] (numeric) = 1.7229825520509229849326226846553
absolute error = 4e-31
relative error = 2.3215557204793908168524413359783e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.75
y[1] (closed_form) = 1.7248789443505079096173230560574
y[1] (numeric) = 1.7248789443505079096173230560578
absolute error = 4e-31
relative error = 2.3190033208424225471998643270915e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.76
y[1] (closed_form) = 1.7268031611071198989301998234959
y[1] (numeric) = 1.7268031611071198989301998234964
absolute error = 5e-31
relative error = 2.8955240021649646271050121700750e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.77
y[1] (closed_form) = 1.7287561853908909996105141582696
y[1] (numeric) = 1.7287561853908909996105141582701
absolute error = 5e-31
relative error = 2.8922528475983120738775200564063e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.78
y[1] (closed_form) = 1.7307389983912162153734467096874
y[1] (numeric) = 1.7307389983912162153734467096878
absolute error = 4e-31
relative error = 2.3111514813719128228154395246606e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.79
y[1] (closed_form) = 1.7327525793186353850648297355354
y[1] (numeric) = 1.7327525793186353850648297355358
absolute error = 4e-31
relative error = 2.3084657600526596149632081768758e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=562.4MB, alloc=44.3MB, time=6.80
TOP MAIN SOLVE Loop
x[1] = 1.8
y[1] (closed_form) = 1.7347979053069129446833256934694
y[1] (numeric) = 1.7347979053069129446833256934697
absolute error = 3e-31
relative error = 1.7293080599317722666155345081768e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.81
y[1] (closed_form) = 1.736875951315325365212250149158
y[1] (numeric) = 1.7368759513153253652122501491582
absolute error = 2e-31
relative error = 1.1514927122374009656458747720491e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.82
y[1] (closed_form) = 1.7389876900311660374358289551691
y[1] (numeric) = 1.7389876900311660374358289551693
absolute error = 2e-31
relative error = 1.1500943977148890081827322274019e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.83
y[1] (closed_form) = 1.7411340917724773531701624163815
y[1] (numeric) = 1.7411340917724773531701624163816
absolute error = 1e-31
relative error = 5.7433830325038226345365528736157e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.84
y[1] (closed_form) = 1.7433161243910197096197170167184
y[1] (numeric) = 1.7433161243910197096197170167185
absolute error = 1e-31
relative error = 5.7361942909196857597826622973129e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.85
y[1] (closed_form) = 1.7455347531754871398780501645252
y[1] (numeric) = 1.7455347531754871398780501645252
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.86
y[1] (closed_form) = 1.7477909407549792479290645117109
y[1] (numeric) = 1.7477909407549792479290645117108
absolute error = 1e-31
relative error = 5.7215080859043588635857476839144e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.87
y[1] (closed_form) = 1.7500856470027391008748519351901
y[1] (numeric) = 1.75008564700273910087485193519
absolute error = 1e-31
relative error = 5.7140060642896917381497700165575e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.88
y[1] (closed_form) = 1.7524198289401667045206862404778
y[1] (numeric) = 1.7524198289401667045206862404776
absolute error = 2e-31
relative error = 1.1412790285587931939225406013471e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.89
y[1] (closed_form) = 1.7547944406411176608896175844488
y[1] (numeric) = 1.7547944406411176608896175844486
absolute error = 2e-31
relative error = 1.1397346342568169963260116529814e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.9
y[1] (closed_form) = 1.7572104331364965777211663049197
y[1] (numeric) = 1.7572104331364965777211663049195
absolute error = 2e-31
relative error = 1.1381676105975202892961434094269e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.91
y[1] (closed_form) = 1.7596687543191547705336610606025
y[1] (numeric) = 1.7596687543191547705336610606024
absolute error = 1e-31
relative error = 5.6828877454661442863963010824468e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=603.1MB, alloc=44.3MB, time=7.30
TOP MAIN SOLVE Loop
x[1] = 1.92
y[1] (closed_form) = 1.762170348849101767400763396841
y[1] (numeric) = 1.7621703488491017674007633968408
absolute error = 2e-31
relative error = 1.1349640523155029375415264707095e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.93
y[1] (closed_form) = 1.7647161580590400952127109352881
y[1] (numeric) = 1.7647161580590400952127109352879
absolute error = 2e-31
relative error = 1.1333267340849543474925861520100e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.94
y[1] (closed_form) = 1.7673071198602327938649323141593
y[1] (numeric) = 1.7673071198602327938649323141591
absolute error = 2e-31
relative error = 1.1316652196581257965122914913287e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.95
y[1] (closed_form) = 1.7699441686487130715441715408693
y[1] (numeric) = 1.7699441686487130715441715408691
absolute error = 2e-31
relative error = 1.1299791459110973253452096846678e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.96
y[1] (closed_form) = 1.7726282352118454800684347845526
y[1] (numeric) = 1.7726282352118454800684347845523
absolute error = 3e-31
relative error = 1.6924022422792290874885343553745e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.97
y[1] (closed_form) = 1.7753602466352479540853601861207
y[1] (numeric) = 1.7753602466352479540853601861205
absolute error = 2e-31
relative error = 1.1265319271345072678145155450054e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.98
y[1] (closed_form) = 1.7781411262100840218475261400928
y[1] (numeric) = 1.7781411262100840218475261400926
absolute error = 2e-31
relative error = 1.1247701155547671475826085793987e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 1.99
y[1] (closed_form) = 1.7809717933407344582663642838697
y[1] (numeric) = 1.7809717933407344582663642838694
absolute error = 3e-31
relative error = 1.6844736178401910233741920763372e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2
y[1] (closed_form) = 1.7838531634528576130024317704992
y[1] (numeric) = 1.7838531634528576130024317704987
absolute error = 5e-31
relative error = 2.8029212843516289786318084897127e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.01
y[1] (closed_form) = 1.7867861479018476074826176598346
y[1] (numeric) = 1.786786147901847607482617659834
absolute error = 6e-31
relative error = 3.3579843939609465801070778647027e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.02
y[1] (closed_form) = 1.7897716538816995549482971259098
y[1] (numeric) = 1.7897716538816995549482971259093
absolute error = 5e-31
relative error = 2.7936524691045812766095247245565e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.03
y[1] (closed_form) = 1.7928105843342909169364832683039
y[1] (numeric) = 1.7928105843342909169364832683035
absolute error = 4e-31
relative error = 2.2311336372912400714508947126260e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=643.6MB, alloc=44.3MB, time=7.78
TOP MAIN SOLVE Loop
x[1] = 2.04
y[1] (closed_form) = 1.7959038378590880679827297947086
y[1] (numeric) = 1.7959038378590880679827297947082
absolute error = 4e-31
relative error = 2.2272907466852085664286002285147e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.05
y[1] (closed_form) = 1.7990523086232870978140700058326
y[1] (numeric) = 1.7990523086232870978140700058322
absolute error = 4e-31
relative error = 2.2233928278944671668774177325493e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.06
y[1] (closed_form) = 1.8022568862723978368768903735121
y[1] (numeric) = 1.8022568862723978368768903735115
absolute error = 6e-31
relative error = 3.3291591480112365343809416609269e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.07
y[1] (closed_form) = 1.8055184558412800467226728609883
y[1] (numeric) = 1.8055184558412800467226728609875
absolute error = 8e-31
relative error = 4.4308602740216275782400961806379e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.08
y[1] (closed_form) = 1.8088378976656406715584311502276
y[1] (numeric) = 1.8088378976656406715584311502268
absolute error = 8e-31
relative error = 4.4227290960258179699119613242740e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.09
y[1] (closed_form) = 1.8122160872940010011629336881296
y[1] (numeric) = 1.8122160872940010011629336881286
absolute error = 1.0e-30
relative error = 5.5181057436323659491105431924488e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.1
y[1] (closed_form) = 1.8156538954001425483790614762808
y[1] (numeric) = 1.8156538954001425483790614762798
absolute error = 1.0e-30
relative error = 5.5076576132347910101230451617762e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.11
y[1] (closed_form) = 1.8191521876960403965215898429283
y[1] (numeric) = 1.8191521876960403965215898429272
absolute error = 1.1e-30
relative error = 6.0467728177989991610433709641495e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.12
y[1] (closed_form) = 1.8227118248452927232930981170161
y[1] (numeric) = 1.8227118248452927232930981170151
absolute error = 1.0e-30
relative error = 5.4863307867379284134119552302458e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.13
y[1] (closed_form) = 1.8263336623770551581834737903903
y[1] (numeric) = 1.8263336623770551581834737903893
absolute error = 1.0e-30
relative error = 5.4754507382755851848027104258427e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.14
y[1] (closed_form) = 1.8300185506004885798455500879914
y[1] (numeric) = 1.8300185506004885798455500879905
absolute error = 9e-31
relative error = 4.9179829335865515748493147072603e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.15
y[1] (closed_form) = 1.833767334519728908595846117736
y[1] (numeric) = 1.8337673345197289085958461177352
absolute error = 8e-31
relative error = 4.3626036135577867073562545494277e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=684.1MB, alloc=44.3MB, time=8.27
TOP MAIN SOLVE Loop
x[1] = 2.16
y[1] (closed_form) = 1.8375808537493873969903012560166
y[1] (numeric) = 1.8375808537493873969903012560158
absolute error = 8e-31
relative error = 4.3535499315183082989775746494407e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.17
y[1] (closed_form) = 1.8414599424305898683755300055835
y[1] (numeric) = 1.8414599424305898683755300055826
absolute error = 9e-31
relative error = 4.8874264341154610329498754097637e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.18
y[1] (closed_form) = 1.8454054291475632994217751323375
y[1] (numeric) = 1.8454054291475632994217751323366
absolute error = 9e-31
relative error = 4.8769770901548253597190137515001e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.19
y[1] (closed_form) = 1.849418136844778087909794836203
y[1] (numeric) = 1.8494181368447780879097948362023
absolute error = 7e-31
relative error = 3.7849742362440727692301034759750e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.2
y[1] (closed_form) = 1.8534988827446542914758573873451
y[1] (numeric) = 1.8534988827446542914758573873442
absolute error = 9e-31
relative error = 4.8556813730973677638741954643616e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.21
y[1] (closed_form) = 1.8576484782658400666223908224814
y[1] (numeric) = 1.8576484782658400666223908224806
absolute error = 8e-31
relative error = 4.3065198252514351548616893899590e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.22
y[1] (closed_form) = 1.8618677289420704800822855624998
y[1] (numeric) = 1.861867728942070480082285562499
absolute error = 8e-31
relative error = 4.2967606536398103508171815459841e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.23
y[1] (closed_form) = 1.8661574343416148065880960893144
y[1] (numeric) = 1.8661574343416148065880960893133
absolute error = 1.1e-30
relative error = 5.8944651708235048194378972344015e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.24
y[1] (closed_form) = 1.8705183879873203682492377336896
y[1] (numeric) = 1.8705183879873203682492377336884
absolute error = 1.2e-30
relative error = 6.4153338866195332324316729072625e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.25
y[1] (closed_form) = 1.8749513772772609110866109426036
y[1] (numeric) = 1.8749513772772609110866109426024
absolute error = 1.2e-30
relative error = 6.4001659698642329923683774583293e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.26
y[1] (closed_form) = 1.8794571834059974538208734312552
y[1] (numeric) = 1.8794571834059974538208734312539
absolute error = 1.3e-30
relative error = 6.9168907463170231575518300205647e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.27
y[1] (closed_form) = 1.8840365812864594827638656518757
y[1] (numeric) = 1.8840365812864594827638656518746
absolute error = 1.1e-30
relative error = 5.8385278233233510340361881129146e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=724.6MB, alloc=44.3MB, time=8.76
TOP MAIN SOLVE Loop
x[1] = 2.28
y[1] (closed_form) = 1.8886903394724543046286016495393
y[1] (numeric) = 1.8886903394724543046286016495382
absolute error = 1.1e-30
relative error = 5.8241416128980152654975621971135e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.29
y[1] (closed_form) = 1.893419220081812306257968981811
y[1] (numeric) = 1.8934192200818123062579689818101
absolute error = 9e-31
relative error = 4.7533055038973994963341802238200e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.3
y[1] (closed_form) = 1.898223978720175806682119428834
y[1] (numeric) = 1.8982239787201758066821194288329
absolute error = 1.1e-30
relative error = 5.7948904467092660958403755239545e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.31
y[1] (closed_form) = 1.903105364405439122555835676529
y[1] (numeric) = 1.9031053644054391225558356765279
absolute error = 1.1e-30
relative error = 5.7800267950148823225532913952986e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.32
y[1] (closed_form) = 1.9080641194928474029063638339918
y[1] (numeric) = 1.9080641194928474029063638339908
absolute error = 1.0e-30
relative error = 5.2409140226681392435284631744841e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.33
y[1] (closed_form) = 1.913100979600761723245819572184
y[1] (numeric) = 1.913100979600761723245819572183
absolute error = 1.0e-30
relative error = 5.2271156131480653100643463245172e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.34
y[1] (closed_form) = 1.9182166735370978624768944279386
y[1] (numeric) = 1.9182166735370978624768944279376
absolute error = 1.0e-30
relative error = 5.2131754133700070433919477748000e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.35
y[1] (closed_form) = 1.9234119232264461186528708877411
y[1] (numeric) = 1.9234119232264461186528708877401
absolute error = 1.0e-30
relative error = 5.1990943173656750131949481444408e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.36
y[1] (closed_form) = 1.9286874436378794515496369653549
y[1] (numeric) = 1.928687443637879451549636965354
absolute error = 9e-31
relative error = 4.6663859557379864612075066433628e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.37
y[1] (closed_form) = 1.9340439427134571711752833911776
y[1] (numeric) = 1.9340439427134571711752833911766
absolute error = 1.0e-30
relative error = 5.1705133369255475691322342674444e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.38
y[1] (closed_form) = 1.9394821212974313217888523926325
y[1] (numeric) = 1.9394821212974313217888523926314
absolute error = 1.1e-30
relative error = 5.6716171184096640733050260799789e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.39
y[1] (closed_form) = 1.9450026730661628407308417073819
y[1] (numeric) = 1.945002673066162840730841707381
absolute error = 9e-31
relative error = 4.6272429979811387428883350543452e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=765.1MB, alloc=44.3MB, time=9.24
TOP MAIN SOLVE Loop
x[1] = 2.4
y[1] (closed_form) = 1.9506062844587545003911777726652
y[1] (numeric) = 1.9506062844587545003911777726642
absolute error = 1.0e-30
relative error = 5.1266111873389945697788374755665e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.41
y[1] (closed_form) = 1.956293634608407569962655604432
y[1] (numeric) = 1.956293634608407569962655604431
absolute error = 1.0e-30
relative error = 5.1117070684543252590887764060067e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.42
y[1] (closed_form) = 1.9620653952745090612564674310893
y[1] (numeric) = 1.9620653952745090612564674310881
absolute error = 1.2e-30
relative error = 6.1160040989974757982740407168967e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.43
y[1] (closed_form) = 1.9679222307754563497986447558221
y[1] (numeric) = 1.9679222307754563497986447558211
absolute error = 1.0e-30
relative error = 5.0815016181099378625976295239310e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.44
y[1] (closed_form) = 1.9738647979222258886893249074626
y[1] (numeric) = 1.9738647979222258886893249074617
absolute error = 9e-31
relative error = 4.5595828090524655584447415999262e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.45
y[1] (closed_form) = 1.9798937459526926582980969326635
y[1] (numeric) = 1.9798937459526926582980969326626
absolute error = 9e-31
relative error = 4.5456984842736327889129842187766e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.46
y[1] (closed_form) = 1.9860097164667069197957236853138
y[1] (numeric) = 1.986009716466706919795723685313
absolute error = 8e-31
relative error = 4.0281776738901017568983773696074e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.47
y[1] (closed_form) = 1.9922133433619347647927844159384
y[1] (numeric) = 1.9922133433619347647927844159377
absolute error = 7e-31
relative error = 3.5136799094956553999947574535111e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.48
y[1] (closed_form) = 1.9985052527704688769768079664097
y[1] (numeric) = 1.9985052527704688769768079664089
absolute error = 8e-31
relative error = 4.0029917303994252685264925041018e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.49
y[1] (closed_form) = 2.0048860629962158446189086674284
y[1] (numeric) = 2.0048860629962158446189086674277
absolute error = 7e-31
relative error = 3.4914702282576604782613930560841e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.5
y[1] (closed_form) = 2.0113563844530662851664972095326
y[1] (numeric) = 2.0113563844530662851664972095319
absolute error = 7e-31
relative error = 3.4802385365950250488933767427091e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.51
y[1] (closed_form) = 2.0179168196038539648580824921216
y[1] (numeric) = 2.0179168196038539648580824921208
absolute error = 8e-31
relative error = 3.9644845229896615982237813705588e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
memory used=805.6MB, alloc=44.3MB, time=9.74
x[1] = 2.52
y[1] (closed_form) = 2.0245679629001100173973357395482
y[1] (numeric) = 2.0245679629001100173973357395473
absolute error = 9e-31
relative error = 4.4453928763684828776886337553263e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.53
y[1] (closed_form) = 2.031310400722618286214344827445
y[1] (numeric) = 2.0313104007226182862143448274442
absolute error = 8e-31
relative error = 3.9383444288741298711832340373574e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.54
y[1] (closed_form) = 2.0381447113227777347302956441934
y[1] (numeric) = 2.0381447113227777347302956441926
absolute error = 8e-31
relative error = 3.9251383650810125081526532515766e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.55
y[1] (closed_form) = 2.0450714647647777883356895241677
y[1] (numeric) = 2.0450714647647777883356895241668
absolute error = 9e-31
relative error = 4.4008242034882490535803028651497e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.56
y[1] (closed_form) = 2.0520912228685923904997118766176
y[1] (numeric) = 2.0520912228685923904997118766167
absolute error = 9e-31
relative error = 4.3857699402948635601042037049985e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.57
y[1] (closed_form) = 2.0592045391537984735576362784329
y[1] (numeric) = 2.059204539153798473557636278432
absolute error = 9e-31
relative error = 4.3706197363465530686891232687791e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.58
y[1] (closed_form) = 2.0664119587842244622823675054308
y[1] (numeric) = 2.06641195878422446228236750543
absolute error = 8e-31
relative error = 3.8714448810617646551063528984381e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.59
y[1] (closed_form) = 2.0737140185134343453436402545917
y[1] (numeric) = 2.073714018513434345343640254591
absolute error = 7e-31
relative error = 3.3755859957092975653221613912903e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.6
y[1] (closed_form) = 2.0811112466310527662022978483548
y[1] (numeric) = 2.0811112466310527662022978483542
absolute error = 6e-31
relative error = 2.8830750925559255219524373767247e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.61
y[1] (closed_form) = 2.0886041629099365008858325512774
y[1] (numeric) = 2.0886041629099365008858325512768
absolute error = 6e-31
relative error = 2.8727319932373075018754373389083e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.62
y[1] (closed_form) = 2.0961932785541976054533863232516
y[1] (numeric) = 2.0961932785541976054533863232511
absolute error = 5e-31
relative error = 2.3852762296082916955171168307322e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.63
y[1] (closed_form) = 2.1038790961480834307921516098051
y[1] (numeric) = 2.1038790961480834307921516098045
absolute error = 6e-31
relative error = 2.8518749062078634673114761471414e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.64
y[1] (closed_form) = 2.111662109605718616701092683734
y[1] (numeric) = 2.1116621096057186167010926837335
absolute error = 5e-31
relative error = 2.3678030577219480748167575795651e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=846.1MB, alloc=44.3MB, time=10.22
TOP MAIN SOLVE Loop
x[1] = 2.65
y[1] (closed_form) = 2.1195428041217140910206976339462
y[1] (numeric) = 2.1195428041217140910206976339458
absolute error = 4e-31
relative error = 1.8871994433051804672038807103904e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.66
y[1] (closed_form) = 2.1275216561226480128676889961174
y[1] (numeric) = 2.127521656122648012867688996117
absolute error = 4e-31
relative error = 1.8801218725500046277238286789254e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.67
y[1] (closed_form) = 2.1355991332194235118399371415703
y[1] (numeric) = 2.13559913321942351183993714157
absolute error = 3e-31
relative error = 1.4047580153666240802800302317143e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.68
y[1] (closed_form) = 2.1437756941605079873779541813793
y[1] (numeric) = 2.1437756941605079873779541813792
absolute error = 1e-31
relative error = 4.6646671231693158977815995338622e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.69
y[1] (closed_form) = 2.1520517887860586443140651156711
y[1] (numeric) = 2.1520517887860586443140651156709
absolute error = 2e-31
relative error = 9.2934566464507396266708213899219e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.7
y[1] (closed_form) = 2.1604278579829388520174727180567
y[1] (numeric) = 2.1604278579829388520174727180565
absolute error = 2e-31
relative error = 9.2574255261977566606807221690185e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.71
y[1] (closed_form) = 2.1689043336406298254618154062839
y[1] (numeric) = 2.1689043336406298254618154062836
absolute error = 3e-31
relative error = 1.3831868715778388533838641256540e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.72
y[1] (closed_form) = 2.1774816386080420370103712000129
y[1] (numeric) = 2.1774816386080420370103712000125
absolute error = 4e-31
relative error = 1.8369844912019580520628487219676e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.73
y[1] (closed_form) = 2.1861601866512306777417388751072
y[1] (numeric) = 2.1861601866512306777417388751068
absolute error = 4e-31
relative error = 1.8296920895477548416322303467108e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.74
y[1] (closed_form) = 2.1949403824120193967346267482207
y[1] (numeric) = 2.1949403824120193967346267482204
absolute error = 3e-31
relative error = 1.3667797194123791215294106965947e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.75
y[1] (closed_form) = 2.2038226213675364559033405104733
y[1] (numeric) = 2.2038226213675364559033405104731
absolute error = 2e-31
relative error = 9.0751405335831494813674928285706e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.76
y[1] (closed_form) = 2.2128072897906673467347668028599
y[1] (numeric) = 2.2128072897906673467347668028597
absolute error = 2e-31
relative error = 9.0382927118303238210839686107340e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=886.5MB, alloc=44.3MB, time=10.71
TOP MAIN SOLVE Loop
x[1] = 2.77
y[1] (closed_form) = 2.2218947647114278236322227921709
y[1] (numeric) = 2.2218947647114278236322227921708
absolute error = 1e-31
relative error = 4.5006631991856581805697571612645e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.78
y[1] (closed_form) = 2.2310854138792612165306483308824
y[1] (numeric) = 2.2310854138792612165306483308822
absolute error = 2e-31
relative error = 8.9642466736517028021303217129397e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.79
y[1] (closed_form) = 2.2403795957262637930204603803759
y[1] (numeric) = 2.2403795957262637930204603803757
absolute error = 2e-31
relative error = 8.9270586279896021550402687715752e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.8
y[1] (closed_form) = 2.2497776593313418474132118826338
y[1] (numeric) = 2.2497776593313418474132118826337
absolute error = 1e-31
relative error = 4.4448836792930496560532369121066e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.81
y[1] (closed_form) = 2.2592799443853041010102795216412
y[1] (numeric) = 2.2592799443853041010102795216409
absolute error = 3e-31
relative error = 1.3278566949861665172502740417378e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.82
y[1] (closed_form) = 2.26888678115689290430546393624
y[1] (numeric) = 2.2688867811568929043054639362397
absolute error = 3e-31
relative error = 1.3222343331165764393886439800545e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.83
y[1] (closed_form) = 2.2785984904597576379729748872755
y[1] (numeric) = 2.2785984904597576379729748872751
absolute error = 4e-31
relative error = 1.7554650443013817400045205032087e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.84
y[1] (closed_form) = 2.2884153836203736152731805064138
y[1] (numeric) = 2.2884153836203736152731805064134
absolute error = 4e-31
relative error = 1.7479344128826054168416739308582e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.85
y[1] (closed_form) = 2.2983377624469096939591458928251
y[1] (numeric) = 2.2983377624469096939591458928248
absolute error = 3e-31
relative error = 1.3052911756564754733207010687772e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.86
y[1] (closed_form) = 2.3083659191990477108968268336072
y[1] (numeric) = 2.3083659191990477108968268336068
absolute error = 4e-31
relative error = 1.7328275238909748641070995391842e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.87
y[1] (closed_form) = 2.3185001365587567574303062412621
y[1] (numeric) = 2.3185001365587567574303062412616
absolute error = 5e-31
relative error = 2.1565666187198376894732534642952e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.88
y[1] (closed_form) = 2.3287406876020252180401820952345
y[1] (numeric) = 2.328740687602025218040182095234
absolute error = 5e-31
relative error = 2.1470831967764737947871961430340e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=927.0MB, alloc=44.3MB, time=11.20
TOP MAIN SOLVE Loop
x[1] = 2.89
y[1] (closed_form) = 2.3390878357715533990676844927907
y[1] (numeric) = 2.3390878357715533990676844927902
absolute error = 5e-31
relative error = 2.1375853969805023252417743050854e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.9
y[1] (closed_form) = 2.3495418348504094782188933306545
y[1] (numeric) = 2.349541834850409478218893330654
absolute error = 5e-31
relative error = 2.1280744721527121778950479378533e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.91
y[1] (closed_form) = 2.3601029289366514092321528933972
y[1] (numeric) = 2.3601029289366514092321528933968
absolute error = 4e-31
relative error = 1.6948413355015016847933059322219e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.92
y[1] (closed_form) = 2.3707713524189173194970682648417
y[1] (numeric) = 2.3707713524189173194970682648413
absolute error = 4e-31
relative error = 1.6872145835231083850443528707459e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.93
y[1] (closed_form) = 2.3815473299529868415649803953237
y[1] (numeric) = 2.3815473299529868415649803953233
absolute error = 4e-31
relative error = 1.6795803088569994429481413145790e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.94
y[1] (closed_form) = 2.3924310764393157223982366186717
y[1] (numeric) = 2.3924310764393157223982366186713
absolute error = 4e-31
relative error = 1.6719394925906282175405110746959e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.95
y[1] (closed_form) = 2.403422797001545956878610595298
y[1] (numeric) = 2.4034227970015459568786105952976
absolute error = 4e-31
relative error = 1.6642931093897862676466551981322e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.96
y[1] (closed_form) = 2.4145226869659935945436126770238
y[1] (numeric) = 2.4145226869659935945436126770233
absolute error = 5e-31
relative error = 2.0708026588405464648411881065854e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.97
y[1] (closed_form) = 2.4257309318421162707529236251939
y[1] (numeric) = 2.4257309318421162707529236251934
absolute error = 5e-31
relative error = 2.0612343827445720064718243869123e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.98
y[1] (closed_form) = 2.4370477073039624155155580356046
y[1] (numeric) = 2.4370477073039624155155580356042
absolute error = 4e-31
relative error = 1.6413301996558318945760302241706e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 2.99
y[1] (closed_form) = 2.4484731791726039950414158127892
y[1] (numeric) = 2.4484731791726039950414158127887
absolute error = 5e-31
relative error = 2.0420889403777811570877343842848e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3
y[1] (closed_form) = 2.4600075033995545427284272052687
y[1] (numeric) = 2.4600075033995545427284272052685
absolute error = 2e-31
relative error = 8.1300565028201863137404440721467e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=967.5MB, alloc=44.3MB, time=11.68
TOP MAIN SOLVE Loop
x[1] = 3.01
y[1] (closed_form) = 2.4716508260511741377683744258176
y[1] (numeric) = 2.4716508260511741377683744258173
absolute error = 3e-31
relative error = 1.2137636790682692856507521039466e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.02
y[1] (closed_form) = 2.483403283294062890860533466737
y[1] (numeric) = 2.4834032832940628908605334667367
absolute error = 3e-31
relative error = 1.2080196640558142667847060207054e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.03
y[1] (closed_form) = 2.4952650013814443976723926912916
y[1] (numeric) = 2.4952650013814443976723926912915
absolute error = 1e-31
relative error = 4.0075903739537631192421505229788e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.04
y[1] (closed_form) = 2.5072360966405405216907550451568
y[1] (numeric) = 2.5072360966405405216907550451568
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.05
y[1] (closed_form) = 2.5193166754609387689744177984351
y[1] (numeric) = 2.519316675460938768974417798435
absolute error = 1e-31
relative error = 3.9693302939656769352533249726815e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.06
y[1] (closed_form) = 2.5315068342839534180612607282068
y[1] (numeric) = 2.5315068342839534180612607282067
absolute error = 1e-31
relative error = 3.9502164736713179776543827074372e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.07
y[1] (closed_form) = 2.5438066595929814689078863372732
y[1] (numeric) = 2.5438066595929814689078863372731
absolute error = 1e-31
relative error = 3.9311163693549089183558462626930e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.08
y[1] (closed_form) = 2.5562162279048543752588814626402
y[1] (numeric) = 2.5562162279048543752588814626401
absolute error = 1e-31
relative error = 3.9120321242136378223734645682413e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.09
y[1] (closed_form) = 2.5687356057621864252652564819142
y[1] (numeric) = 2.568735605762186425265256481914
absolute error = 2e-31
relative error = 7.7859317070764348068527652536572e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.1
y[1] (closed_form) = 2.5813648497267205355076239454585
y[1] (numeric) = 2.5813648497267205355076239454583
absolute error = 2e-31
relative error = 7.7478392882421581636024094095489e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.11
y[1] (closed_form) = 2.5941040063736721238391691632832
y[1] (numeric) = 2.5941040063736721238391691632829
absolute error = 3e-31
relative error = 1.1564686661093957299804004483037e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.12
y[1] (closed_form) = 2.6069531122870716266564150260244
y[1] (numeric) = 2.6069531122870716266564150260242
absolute error = 2e-31
relative error = 7.6717912208455732344078527342579e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1007.9MB, alloc=44.3MB, time=12.16
TOP MAIN SOLVE Loop
x[1] = 3.13
y[1] (closed_form) = 2.6199121940561061263421727608608
y[1] (numeric) = 2.6199121940561061263421727608607
absolute error = 1e-31
relative error = 3.8169218123750017946428524907768e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.14
y[1] (closed_form) = 2.632981268272460454714885693655
y[1] (numeric) = 2.6329812682724604547148856936549
absolute error = 1e-31
relative error = 3.7979761270998915809279061830388e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.15
y[1] (closed_form) = 2.6461603415286580383718053432053
y[1] (numeric) = 2.6461603415286580383718053432053
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.16
y[1] (closed_form) = 2.659449410417401651840082905726
y[1] (numeric) = 2.659449410417401651840082905726
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.17
y[1] (closed_form) = 2.6728484615319141444599116498647
y[1] (numeric) = 2.6728484615319141444599116498645
absolute error = 2e-31
relative error = 7.4826539131729213830222511413813e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.18
y[1] (closed_form) = 2.6863574714672791069273158461397
y[1] (numeric) = 2.6863574714672791069273158461395
absolute error = 2e-31
relative error = 7.4450255457163969939675201624200e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.19
y[1] (closed_form) = 2.6999764068227813434310491703005
y[1] (numeric) = 2.6999764068227813434310491703003
absolute error = 2e-31
relative error = 7.4074721354825313702906558540085e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.2
y[1] (closed_form) = 2.7137052242052469153383392777164
y[1] (numeric) = 2.7137052242052469153383392777162
absolute error = 2e-31
relative error = 7.3699972353693382584535109755437e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.21
y[1] (closed_form) = 2.7275438702333824224278933347958
y[1] (numeric) = 2.7275438702333824224278933347956
absolute error = 2e-31
relative error = 7.3326043325157219334375783812847e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.22
y[1] (closed_form) = 2.7414922815431130877456572625241
y[1] (numeric) = 2.741492281543113087745657262524
absolute error = 1e-31
relative error = 3.6476484239347432988326627872701e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.23
y[1] (closed_form) = 2.755550384793919112279291505415
y[1] (numeric) = 2.755550384793919112279291505415
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.24
y[1] (closed_form) = 2.7697180966761696658211761562575
y[1] (numeric) = 2.7697180966761696658211761562575
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1048.3MB, alloc=44.3MB, time=12.64
TOP MAIN SOLVE Loop
x[1] = 3.25
y[1] (closed_form) = 2.7839953239194537806269707748284
y[1] (numeric) = 2.7839953239194537806269707748283
absolute error = 1e-31
relative error = 3.5919600561402806446168561941565e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.26
y[1] (closed_form) = 2.7983819633019073147873054328283
y[1] (numeric) = 2.7983819633019073147873054328283
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.27
y[1] (closed_form) = 2.8128779016605350526240382595053
y[1] (numeric) = 2.8128779016605350526240382595052
absolute error = 1e-31
relative error = 3.5550778773926406723097569168484e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.28
y[1] (closed_form) = 2.8274830159025269099096415838683
y[1] (numeric) = 2.8274830159025269099096415838682
absolute error = 1e-31
relative error = 3.5367144360398642567294504473991e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.29
y[1] (closed_form) = 2.8421971730175671122986248744605
y[1] (numeric) = 2.8421971730175671122986248744604
absolute error = 1e-31
relative error = 3.5184047380439048057749823432676e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.3
y[1] (closed_form) = 2.8570202300911351160634089488972
y[1] (numeric) = 2.8570202300911351160634089488971
absolute error = 1e-31
relative error = 3.5001502245859188064072599832057e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.31
y[1] (closed_form) = 2.8719520343187969410536619294145
y[1] (numeric) = 2.8719520343187969410536619294143
absolute error = 2e-31
relative error = 6.9639046059986977184376291571317e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.32
y[1] (closed_form) = 2.8869924230214854867577104152688
y[1] (numeric) = 2.8869924230214854867577104152686
absolute error = 2e-31
relative error = 6.9276246936139453149451407150806e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.33
y[1] (closed_form) = 2.9021412236617683034471532851407
y[1] (numeric) = 2.9021412236617683034471532851404
absolute error = 3e-31
relative error = 1.0337195087338853442367273602879e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.34
y[1] (closed_form) = 2.9173982538611011916411200989301
y[1] (numeric) = 2.9173982538611011916411200989297
absolute error = 4e-31
relative error = 1.3710846624063421495992223433415e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.35
y[1] (closed_form) = 2.9327633214180659045446056247285
y[1] (numeric) = 2.9327633214180659045446056247279
absolute error = 6e-31
relative error = 2.0458521000251895169001563494422e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.36
y[1] (closed_form) = 2.9482362243275901297058346922217
y[1] (numeric) = 2.9482362243275901297058346922211
absolute error = 6e-31
relative error = 2.0351150801589623189313426491552e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1088.8MB, alloc=44.3MB, time=13.12
TOP MAIN SOLVE Loop
x[1] = 3.37
y[1] (closed_form) = 2.9638167508011478279105082340292
y[1] (numeric) = 2.9638167508011478279105082340286
absolute error = 6e-31
relative error = 2.0244166574664722412696008964866e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.38
y[1] (closed_form) = 2.9795046792879379092958746500094
y[1] (numeric) = 2.9795046792879379092958746500089
absolute error = 5e-31
relative error = 1.6781312795907183026882696468144e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.39
y[1] (closed_form) = 2.9952997784970391288346639253275
y[1] (numeric) = 2.995299778497039128834663925327
absolute error = 5e-31
relative error = 1.6692819983810987782022503746712e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.4
y[1] (closed_form) = 3.0112018074205389857177984602343
y[1] (numeric) = 3.0112018074205389857177984602337
absolute error = 6e-31
relative error = 1.9925599092077228143081529635770e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.41
y[1] (closed_form) = 3.027210515357634313765216359047
y[1] (numeric) = 3.0272105153576343137652163590465
absolute error = 5e-31
relative error = 1.6516855945874978423242583292199e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.42
y[1] (closed_form) = 3.0433256419397011528258498543986
y[1] (numeric) = 3.0433256419397011528258498543982
absolute error = 4e-31
relative error = 1.3143516240511648433420445762999e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.43
y[1] (closed_form) = 3.0595469171563313942005103587744
y[1] (numeric) = 3.0595469171563313942005103587741
absolute error = 3e-31
relative error = 9.8053734138789519021948979515313e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.44
y[1] (closed_form) = 3.0758740613823335964448349870275
y[1] (numeric) = 3.0758740613823335964448349870271
absolute error = 4e-31
relative error = 1.3004433602207866250847715024210e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.45
y[1] (closed_form) = 3.0923067854056952714932148600522
y[1] (numeric) = 3.092306785405695271493214860052
absolute error = 2e-31
relative error = 6.4676635883577442218736472233177e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.46
y[1] (closed_form) = 3.108844790456503844898394624218
y[1] (numeric) = 3.1088447904565038448983946242178
absolute error = 2e-31
relative error = 6.4332578009026925653195217730512e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.47
y[1] (closed_form) = 3.1254877682368233981148199464733
y[1] (numeric) = 3.125487768236823398114819946473
absolute error = 3e-31
relative error = 9.5985018098227445005270385066091e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.48
y[1] (closed_form) = 3.1422354009515242051764018526177
y[1] (numeric) = 3.1422354009515242051764018526173
absolute error = 4e-31
relative error = 1.2729791023259204486885861645421e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1129.3MB, alloc=44.3MB, time=13.60
TOP MAIN SOLVE Loop
x[1] = 3.49
y[1] (closed_form) = 3.1590873613400619808407213272332
y[1] (numeric) = 3.1590873613400619808407213272326
absolute error = 6e-31
relative error = 1.8992827084892148887852890551329e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.5
y[1] (closed_form) = 3.1760433127092036623013423733282
y[1] (numeric) = 3.1760433127092036623013423733275
absolute error = 7e-31
relative error = 2.2040001696415514776762691146622e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.51
y[1] (closed_form) = 3.1931029089666964519173336942424
y[1] (numeric) = 3.1931029089666964519173336942416
absolute error = 8e-31
relative error = 2.5053999911919026437719396624135e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.52
y[1] (closed_form) = 3.2102657946558767540837834877278
y[1] (numeric) = 3.2102657946558767540837834877269
absolute error = 9e-31
relative error = 2.8035061816321510061036655864874e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.53
y[1] (closed_form) = 3.227531604991215545378460985316
y[1] (numeric) = 3.2275316049912155453784609853152
absolute error = 8e-31
relative error = 2.4786744110044969808700103956565e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.54
y[1] (closed_form) = 3.2448999658947966234772311138702
y[1] (numeric) = 3.2448999658947966234772311138697
absolute error = 5e-31
relative error = 1.5408795502332923786345861830993e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.55
y[1] (closed_form) = 3.2623704940337240870437291772895
y[1] (numeric) = 3.2623704940337240870437291772889
absolute error = 6e-31
relative error = 1.8391534655468767332595673477519e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.56
y[1] (closed_form) = 3.2799427968584553058764793868963
y[1] (numeric) = 3.2799427968584553058764793868957
absolute error = 6e-31
relative error = 1.8293001956457375792010717617918e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.57
y[1] (closed_form) = 3.2976164726420555480483865639633
y[1] (numeric) = 3.2976164726420555480483865639628
absolute error = 5e-31
relative error = 1.5162466713401610557142289263826e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.58
y[1] (closed_form) = 3.315391110520370338608599145451
y[1] (numeric) = 3.3153911105203703386085991454505
absolute error = 5e-31
relative error = 1.5081176951141732066512712581226e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.59
y[1] (closed_form) = 3.3332662905331115326443501606522
y[1] (numeric) = 3.3332662905331115326443501606518
absolute error = 4e-31
relative error = 1.2000241358935212145032651956865e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.6
y[1] (closed_form) = 3.3512415836658529941297082747341
y[1] (numeric) = 3.3512415836658529941297082747337
absolute error = 4e-31
relative error = 1.1935874809790596352940864417631e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1169.7MB, alloc=44.3MB, time=14.08
TOP MAIN SOLVE Loop
x[1] = 3.61
y[1] (closed_form) = 3.3693165518929316810283503064616
y[1] (numeric) = 3.3693165518929316810283503064611
absolute error = 5e-31
relative error = 1.4839804817956111401825312627720e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.62
y[1] (closed_form) = 3.387490748221249846577595727932
y[1] (numeric) = 3.3874907482212498465775957279315
absolute error = 5e-31
relative error = 1.4760187913798638864537961062419e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.63
y[1] (closed_form) = 3.405763716734973976570076455602
y[1] (numeric) = 3.4057637167349739765700764556016
absolute error = 4e-31
relative error = 1.1744795977316672016758113848623e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.64
y[1] (closed_form) = 3.4241349926411259927765627558659
y[1] (numeric) = 3.4241349926411259927765627558655
absolute error = 4e-31
relative error = 1.1681782431465104352762949072437e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.65
y[1] (closed_form) = 3.4426041023160621634275955254717
y[1] (numeric) = 3.4426041023160621634275955254714
absolute error = 3e-31
relative error = 8.7143334256230805259954226261379e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.66
y[1] (closed_form) = 3.4611705633528350729016090798401
y[1] (numeric) = 3.4611705633528350729016090798398
absolute error = 3e-31
relative error = 8.6675878726239389321541591279505e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.67
y[1] (closed_form) = 3.4798338846094339144620438135202
y[1] (numeric) = 3.4798338846094339144620438135201
absolute error = 1e-31
relative error = 2.8737003924893874390511225107941e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.68
y[1] (closed_form) = 3.4985935662578982820543751314638
y[1] (numeric) = 3.4985935662578982820543751314638
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.69
y[1] (closed_form) = 3.5174490998343005498248069716278
y[1] (numeric) = 3.5174490998343005498248069716277
absolute error = 1e-31
relative error = 2.8429693553976597583329109621471e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.7
y[1] (closed_form) = 3.5363999682895918411643298936456
y[1] (numeric) = 3.5363999682895918411643298936455
absolute error = 1e-31
relative error = 2.8277344445392527432242313889751e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.71
y[1] (closed_form) = 3.5554456460413065027236108273902
y[1] (numeric) = 3.5554456460413065027236108273901
absolute error = 1e-31
relative error = 2.8125869428306883670429121560805e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.72
y[1] (closed_form) = 3.5745855990261199129943999105103
y[1] (numeric) = 3.5745855990261199129943999105102
absolute error = 1e-31
relative error = 2.7975270763482222701603589374770e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1210.1MB, alloc=44.3MB, time=14.56
TOP MAIN SOLVE Loop
x[1] = 3.73
y[1] (closed_form) = 3.5938192847532543697203943020784
y[1] (numeric) = 3.5938192847532543697203943020782
absolute error = 2e-31
relative error = 5.5651101002350947647212895679638e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.74
y[1] (closed_form) = 3.6131461523587277155933226437975
y[1] (numeric) = 3.6131461523587277155933226437972
absolute error = 3e-31
relative error = 8.3030131455976262600236038033610e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.75
y[1] (closed_form) = 3.6325656426604392774168875977093
y[1] (numeric) = 3.632565642660439277416887597709
absolute error = 3e-31
relative error = 8.2586257073192014751213611621912e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.76
y[1] (closed_form) = 3.6520771882140876101905548624369
y[1] (numeric) = 3.6520771882140876101905548624366
absolute error = 3e-31
relative error = 8.2145032686645878817359478406556e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.77
y[1] (closed_form) = 3.6716802133699144543853782538038
y[1] (numeric) = 3.6716802133699144543853782538035
absolute error = 3e-31
relative error = 8.1706462046338238300267021160628e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.78
y[1] (closed_form) = 3.6913741343302692320634197407623
y[1] (numeric) = 3.691374134330269232063419740762
absolute error = 3e-31
relative error = 8.1270548333196625907934075898657e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.79
y[1] (closed_form) = 3.7111583592079883254391227481598
y[1] (numeric) = 3.7111583592079883254391227481595
absolute error = 3e-31
relative error = 8.0837294171414469288147600408458e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.8
y[1] (closed_form) = 3.7310322880855833000034318256493
y[1] (numeric) = 3.7310322880855833000034318256488
absolute error = 5e-31
relative error = 1.3401116940120430335051713408721e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.81
y[1] (closed_form) = 3.750995313075232153437669625635
y[1] (numeric) = 3.7509953130752321534376696256345
absolute error = 5e-31
relative error = 1.3329795381431117983530104778491e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.82
y[1] (closed_form) = 3.7710468183795675912422723433438
y[1] (numeric) = 3.7710468183795675912422723433433
absolute error = 5e-31
relative error = 1.3258917857054127002492922525584e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.83
y[1] (closed_form) = 3.7911861803532562503034774729765
y[1] (numeric) = 3.791186180353256250303477472976
absolute error = 5e-31
relative error = 1.3188484453522956615853345699479e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.84
y[1] (closed_form) = 3.8114127675653627125269230597523
y[1] (numeric) = 3.8114127675653627125269230597518
absolute error = 5e-31
relative error = 1.3118495174674764367701590343739e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.85
y[1] (closed_form) = 3.8317259408624920721887649260472
y[1] (numeric) = 3.8317259408624920721887649260466
absolute error = 6e-31
relative error = 1.5658739932348726628367264193852e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1250.6MB, alloc=44.3MB, time=15.05
TOP MAIN SOLVE Loop
x[1] = 3.86
y[1] (closed_form) = 3.8521250534327047428001953906352
y[1] (numeric) = 3.8521250534327047428001953906345
absolute error = 7e-31
relative error = 1.8171788046606019964812829019283e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.87
y[1] (closed_form) = 3.8726094508701971120579391906727
y[1] (numeric) = 3.872609450870197112057939190672
absolute error = 7e-31
relative error = 1.8075667295670779949366478887070e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.88
y[1] (closed_form) = 3.8931784712407415768691319229587
y[1] (numeric) = 3.893178471240741576869131922958
absolute error = 7e-31
relative error = 1.7980167237925586018368560459605e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.89
y[1] (closed_form) = 3.9138314451478794145016116973683
y[1] (numeric) = 3.9138314451478794145016116973677
absolute error = 6e-31
relative error = 1.5330246292129980102951090390372e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.9
y[1] (closed_form) = 3.9345676957998598706276695153856
y[1] (numeric) = 3.934567695799859870627669515385
absolute error = 6e-31
relative error = 1.5249451690474110788863802114249e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.91
y[1] (closed_form) = 3.9553865390773187704082363861256
y[1] (numeric) = 3.9553865390773187704082363861249
absolute error = 7e-31
relative error = 1.7697385403027903645600491728235e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.92
y[1] (closed_form) = 3.9762872836016898848127974157074
y[1] (numeric) = 3.9762872836016898848127974157068
absolute error = 6e-31
relative error = 1.5089452979778782441336188952826e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.93
y[1] (closed_form) = 3.997269230804342211095410160473
y[1] (numeric) = 3.9972692308043422110954101604725
absolute error = 5e-31
relative error = 1.2508539483576104703411772940968e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.94
y[1] (closed_form) = 4.0183316749964362537563938505644
y[1] (numeric) = 4.0183316749964362537563938505638
absolute error = 6e-31
relative error = 1.4931569828678518013545533417136e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.95
y[1] (closed_form) = 4.0394739034394923204198066883598
y[1] (numeric) = 4.0394739034394923204198066883592
absolute error = 6e-31
relative error = 1.4853419389319925567153549669959e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.96
y[1] (closed_form) = 4.0606951964166637758559301912485
y[1] (numeric) = 4.0606951964166637758559301912478
absolute error = 7e-31
relative error = 1.7238427563283026496250114554420e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.97
y[1] (closed_form) = 4.0819948273047081268827525106807
y[1] (numeric) = 4.0819948273047081268827525106799
absolute error = 8e-31
relative error = 1.9598260993589507702353594628327e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1291.2MB, alloc=44.3MB, time=15.53
TOP MAIN SOLVE Loop
x[1] = 3.98
y[1] (closed_form) = 4.1033720626466487410979362833252
y[1] (numeric) = 4.1033720626466487410979362833243
absolute error = 9e-31
relative error = 2.1933180473512941819734263752948e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 3.99
y[1] (closed_form) = 4.1248261622251199333299490479899
y[1] (numeric) = 4.1248261622251199333299490479891
absolute error = 8e-31
relative error = 1.9394756737298315665684245884314e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4
y[1] (closed_form) = 4.1463563791363880853608318169022
y[1] (numeric) = 4.1463563791363880853608318169015
absolute error = 7e-31
relative error = 1.6882292210149998900747058991649e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.01
y[1] (closed_form) = 4.167961959865041396870317585315
y[1] (numeric) = 4.1679619598650413968703175853141
absolute error = 9e-31
relative error = 2.1593287286843232103109283780744e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.02
y[1] (closed_form) = 4.1896421443593407986884466192346
y[1] (numeric) = 4.1896421443593407986884466192336
absolute error = 1.0e-30
relative error = 2.3868386977783636396416368849791e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.03
y[1] (closed_form) = 4.2113961661072244933281454781476
y[1] (numeric) = 4.2113961661072244933281454781467
absolute error = 9e-31
relative error = 2.1370585062575789466713228908492e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.04
y[1] (closed_form) = 4.2332232522129585224070534208273
y[1] (numeric) = 4.2332232522129585224070534208266
absolute error = 7e-31
relative error = 1.6535863059763460600983062949499e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.05
y[1] (closed_form) = 4.2551226234744256959657292715176
y[1] (numeric) = 4.255122623474425695965729271517
absolute error = 6e-31
relative error = 1.4100651217192968949302408418327e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.06
y[1] (closed_form) = 4.2770934944610451548537141522107
y[1] (numeric) = 4.2770934944610451548537141522101
absolute error = 6e-31
relative error = 1.4028218012466097860361830506353e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.07
y[1] (closed_form) = 4.2991350735923147742921442269604
y[1] (numeric) = 4.2991350735923147742921442269598
absolute error = 6e-31
relative error = 1.3956295620612960422218907428761e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.08
y[1] (closed_form) = 4.3212465632169685544380089817521
y[1] (numeric) = 4.3212465632169685544380089817513
absolute error = 8e-31
relative error = 1.8513176424823973385720946938508e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.09
y[1] (closed_form) = 4.3434271596927410822769628863557
y[1] (numeric) = 4.3434271596927410822769628863549
absolute error = 8e-31
relative error = 1.8418635114318180459865460732587e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1331.6MB, alloc=44.3MB, time=16.01
TOP MAIN SOLVE Loop
x[1] = 4.1
y[1] (closed_form) = 4.3656760534667310884649713203402
y[1] (numeric) = 4.3656760534667310884649713203395
absolute error = 7e-31
relative error = 1.6034171831053254177093229332456e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.11
y[1] (closed_form) = 4.3879924291563560628300760061255
y[1] (numeric) = 4.3879924291563560628300760061248
absolute error = 7e-31
relative error = 1.5952625518421492764644196986971e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.12
y[1] (closed_form) = 4.4103754656308898331401917272407
y[1] (numeric) = 4.41037546563088983314019172724
absolute error = 7e-31
relative error = 1.5871664565861792946099286328558e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.13
y[1] (closed_form) = 4.4328243360935749534470053079295
y[1] (numeric) = 4.4328243360935749534470053079289
absolute error = 6e-31
relative error = 1.3535388603482307412044043808223e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.14
y[1] (closed_form) = 4.4553382081643016908355692264027
y[1] (numeric) = 4.455338208164301690835569226402
absolute error = 7e-31
relative error = 1.5711489617494505523810542095528e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.15
y[1] (closed_form) = 4.4779162439628453427498138283373
y[1] (numeric) = 4.4779162439628453427498138283364
absolute error = 9e-31
relative error = 2.0098634073680713055383471780637e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.16
y[1] (closed_form) = 4.5005576001926535612316097892908
y[1] (numeric) = 4.5005576001926535612316097892901
absolute error = 7e-31
relative error = 1.5553628287526758488844863472907e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.17
y[1] (closed_form) = 4.5232614282251753054107794572422
y[1] (numeric) = 4.5232614282251753054107794572416
absolute error = 6e-31
relative error = 1.3264765026756950578779984130163e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.18
y[1] (closed_form) = 4.5460268741847229894210819669533
y[1] (numeric) = 4.5460268741847229894210819669526
absolute error = 7e-31
relative error = 1.5398061194381673183413975002327e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.19
y[1] (closed_form) = 4.5688530790338593395980987485076
y[1] (numeric) = 4.5688530790338593395980987485069
absolute error = 7e-31
relative error = 1.5321131756506901805066605344141e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.2
y[1] (closed_form) = 4.5917391786593004223444551186229
y[1] (numeric) = 4.5917391786593004223444551186222
absolute error = 7e-31
relative error = 1.5244768327725150638551237720429e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.21
y[1] (closed_form) = 4.6146843039583262524311770505132
y[1] (numeric) = 4.6146843039583262524311770505123
absolute error = 9e-31
relative error = 1.9502959264797577667892882813044e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1372.1MB, alloc=44.3MB, time=16.49
TOP MAIN SOLVE Loop
x[1] = 4.22
y[1] (closed_form) = 4.6376875809256903407463615868448
y[1] (numeric) = 4.6376875809256903407463615868441
absolute error = 7e-31
relative error = 1.5093729100662679991409488159283e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.23
y[1] (closed_form) = 4.6607481307410194906088104104552
y[1] (numeric) = 4.6607481307410194906088104104546
absolute error = 6e-31
relative error = 1.2873469734237818170871025816927e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.24
y[1] (closed_form) = 4.6838650698566951027398281302941
y[1] (numeric) = 4.6838650698566951027398281302936
absolute error = 5e-31
relative error = 1.0674944571264041949663384086236e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.25
y[1] (closed_form) = 4.7070375100862072008359222794552
y[1] (numeric) = 4.7070375100862072008359222794547
absolute error = 5e-31
relative error = 1.0622392511820937937538436033683e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.26
y[1] (closed_form) = 4.730264558692972342413475864514
y[1] (numeric) = 4.7302645586929723424134758645134
absolute error = 6e-31
relative error = 1.2684279971135209557675251238528e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.27
y[1] (closed_form) = 4.7535453184796065332083226779057
y[1] (numeric) = 4.7535453184796065332083226779051
absolute error = 6e-31
relative error = 1.2622157985272063533754222387826e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.28
y[1] (closed_form) = 4.776878887877644217913179263164
y[1] (numeric) = 4.7768788878776442179131792631632
absolute error = 8e-31
relative error = 1.6747336886228615956190422775609e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.29
y[1] (closed_form) = 4.8002643610376943754286253662208
y[1] (numeric) = 4.80026436103769437542862536622
absolute error = 8e-31
relative error = 1.6665748796948767673932833970032e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.3
y[1] (closed_form) = 4.823700827920024703093237603664
y[1] (numeric) = 4.8237008279200247030932376036632
absolute error = 8e-31
relative error = 1.6584776472237380726402601841152e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.31
y[1] (closed_form) = 4.8471873743855648315499399031558
y[1] (numeric) = 4.8471873743855648315499399031551
absolute error = 7e-31
relative error = 1.4441364567399931031265137729929e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.32
y[1] (closed_form) = 4.8707230822873194700029198405699
y[1] (numeric) = 4.8707230822873194700029198405693
absolute error = 6e-31
relative error = 1.2318499530017144022026801201339e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.33
y[1] (closed_form) = 4.8943070295621823406267625493371
y[1] (numeric) = 4.8943070295621823406267625493366
absolute error = 5e-31
relative error = 1.0215950837982619101065593350073e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1412.5MB, alloc=44.3MB, time=16.98
TOP MAIN SOLVE Loop
x[1] = 4.34
y[1] (closed_form) = 4.9179382903231417208108726455763
y[1] (numeric) = 4.9179382903231417208108726455759
absolute error = 4e-31
relative error = 8.1334896126506154615394171854731e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.35
y[1] (closed_form) = 4.9416159349518683727617974225641
y[1] (numeric) = 4.9416159349518683727617974225637
absolute error = 4e-31
relative error = 8.0945181751340621600691856372084e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.36
y[1] (closed_form) = 4.9653390301916766017476474330366
y[1] (numeric) = 4.9653390301916766017476474330364
absolute error = 2e-31
relative error = 4.0279223389158869850571244801068e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.37
y[1] (closed_form) = 4.9891066392408491469562573075772
y[1] (numeric) = 4.989106639240849146956257307577
absolute error = 2e-31
relative error = 4.0087337165122679399203022843227e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.38
y[1] (closed_form) = 5.0129178218463165725557714761559
y[1] (numeric) = 5.0129178218463165725557714761557
absolute error = 2e-31
relative error = 3.9896923729409481626889638119615e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.39
y[1] (closed_form) = 5.0367716343976817910966146332443
y[1] (numeric) = 5.0367716343976817910966146332439
absolute error = 4e-31
relative error = 7.9415949150498595565310088301629e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.4
y[1] (closed_form) = 5.0606671300215803168808602577823
y[1] (numeric) = 5.0606671300215803168808602577819
absolute error = 4e-31
relative error = 7.9040962332231930651858996206279e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.41
y[1] (closed_form) = 5.0846033586763668133522935335094
y[1] (numeric) = 5.0846033586763668133522935335089
absolute error = 5e-31
relative error = 9.8336087346282387040830449531487e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.42
y[1] (closed_form) = 5.1085793672471184659313348565068
y[1] (numeric) = 5.1085793672471184659313348565063
absolute error = 5e-31
relative error = 9.7874568261711688277559081393950e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.43
y[1] (closed_form) = 5.1325941996409456800367096510664
y[1] (numeric) = 5.1325941996409456800367096510659
absolute error = 5e-31
relative error = 9.7416624138136200156450698778092e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.44
y[1] (closed_form) = 5.1566468968826005733034876438366
y[1] (numeric) = 5.1566468968826005733034876438362
absolute error = 4e-31
relative error = 7.7569786723581172226677510512070e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.45
y[1] (closed_form) = 5.1807364972103737012279432702555
y[1] (numeric) = 5.1807364972103737012279432702551
absolute error = 4e-31
relative error = 7.7209099558602244030976448422412e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1453.0MB, alloc=44.3MB, time=17.46
TOP MAIN SOLVE Loop
x[1] = 4.46
y[1] (closed_form) = 5.2048620361722694266465863988873
y[1] (numeric) = 5.204862036172269426646586398887
absolute error = 3e-31
relative error = 5.7638415372989276142818657808729e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.47
y[1] (closed_form) = 5.2290225467224503155925613446698
y[1] (numeric) = 5.2290225467224503155925613446695
absolute error = 3e-31
relative error = 5.7372099148442170221233586960031e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.48
y[1] (closed_form) = 5.2532170593179409151701985931512
y[1] (numeric) = 5.253217059317940915170198593151
absolute error = 2e-31
relative error = 3.8071908649814536917577189010903e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.49
y[1] (closed_form) = 5.2774446020155812431505179934839
y[1] (numeric) = 5.2774446020155812431505179934839
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.5
y[1] (closed_form) = 5.3017042005692202940195181752062
y[1] (numeric) = 5.3017042005692202940195181752061
absolute error = 1e-31
relative error = 1.8861859548720852204829205692888e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.51
y[1] (closed_form) = 5.3259948785271398422096416782592
y[1] (numeric) = 5.3259948785271398422096416782592
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.52
y[1] (closed_form) = 5.3503156573296988002152788818011
y[1] (numeric) = 5.350315657329698800215278881801
absolute error = 1e-31
relative error = 1.8690486020764843479498164698987e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.53
y[1] (closed_form) = 5.3746655564071883672378692086186
y[1] (numeric) = 5.3746655564071883672378692086185
absolute error = 1e-31
relative error = 1.8605808854615907764466128034778e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.54
y[1] (closed_form) = 5.3990435932778881829272807804022
y[1] (numeric) = 5.3990435932778881829272807804022
absolute error = 0
relative error = 0 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.55
y[1] (closed_form) = 5.4234487836463136806858075749921
y[1] (numeric) = 5.4234487836463136806858075749922
absolute error = 1e-31
relative error = 1.8438451986775768954519582376319e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.56
y[1] (closed_form) = 5.4478801415016448158813262073901
y[1] (numeric) = 5.4478801415016448158813262073903
absolute error = 2e-31
relative error = 3.6711527200536450402931982089970e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.57
y[1] (closed_form) = 5.4723366792163263261788146856254
y[1] (numeric) = 5.4723366792163263261788146856258
absolute error = 4e-31
relative error = 7.3094917847284674525369171374433e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1493.5MB, alloc=44.3MB, time=17.94
TOP MAIN SOLVE Loop
x[1] = 4.58
y[1] (closed_form) = 5.4968174076448296640463665993177
y[1] (numeric) = 5.496817407644829664046366599318
absolute error = 3e-31
relative error = 5.4577035719390616533247854144878e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.59
y[1] (closed_form) = 5.5213213362225667253247514756035
y[1] (numeric) = 5.5213213362225667253247514756038
absolute error = 3e-31
relative error = 5.4334819825075813533563642308226e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.6
y[1] (closed_form) = 5.5458474730649454825700921787708
y[1] (numeric) = 5.5458474730649454825700921787711
absolute error = 3e-31
relative error = 5.4094527744774636139946067191978e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.61
y[1] (closed_form) = 5.5703948250665576176888711718273
y[1] (numeric) = 5.5703948250665576176888711718278
absolute error = 5e-31
relative error = 8.9760244237988242059726579094464e-30 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.62
y[1] (closed_form) = 5.5949623980004882351846582243842
y[1] (numeric) = 5.5949623980004882351846582243848
absolute error = 6e-31
relative error = 1.0723932661538999711925629842773e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.63
y[1] (closed_form) = 5.6195491966177377251279927125974
y[1] (numeric) = 5.6195491966177377251279927125981
absolute error = 7e-31
relative error = 1.2456515202701882465317362460964e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.64
y[1] (closed_form) = 5.6441542247467458337459747992399
y[1] (numeric) = 5.6441542247467458337459747992406
absolute error = 7e-31
relative error = 1.2402212486165881121522543313875e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.65
y[1] (closed_form) = 5.6687764853930079893074429838229
y[1] (numeric) = 5.6687764853930079893074429838237
absolute error = 8e-31
relative error = 1.4112392719335399394047020208298e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.66
y[1] (closed_form) = 5.693414980838773921754162833204
y[1] (numeric) = 5.6934149808387739217541628332047
absolute error = 7e-31
relative error = 1.2294905647240797784367095674860e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.67
y[1] (closed_form) = 5.7180687127428186062991456798947
y[1] (numeric) = 5.7180687127428186062991456798953
absolute error = 6e-31
relative error = 1.0493053339196313726066256040181e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.68
y[1] (closed_form) = 5.7427366822402755539808796320554
y[1] (numeric) = 5.7427366822402755539808796320561
absolute error = 7e-31
relative error = 1.2189310406043654064503555131212e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.69
y[1] (closed_form) = 5.767417890042522465927611603558
y[1] (numeric) = 5.7674178900425224659276116035587
absolute error = 7e-31
relative error = 1.2137147218143386272111815344565e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1533.9MB, alloc=44.3MB, time=18.42
TOP MAIN SOLVE Loop
x[1] = 4.7
y[1] (closed_form) = 5.7921113365371092628494917036729
y[1] (numeric) = 5.7921113365371092628494917036736
absolute error = 7e-31
relative error = 1.2085403047837549039429751340481e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.71
y[1] (closed_form) = 5.8168160218877184970389038522753
y[1] (numeric) = 5.816816021887718497038903852276
absolute error = 7e-31
relative error = 1.2034074953823802409847271641537e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.72
y[1] (closed_form) = 5.8415309461341481509210826531746
y[1] (numeric) = 5.8415309461341481509210826531753
absolute error = 7e-31
relative error = 1.1983160004711628081337645797151e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.73
y[1] (closed_form) = 5.8662551092923068239584801849428
y[1] (numeric) = 5.8662551092923068239584801849435
absolute error = 7e-31
relative error = 1.1932655279365213067466235122525e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.74
y[1] (closed_form) = 5.890987511454211308473521317219
y[1] (numeric) = 5.8909875114542113084735213172197
absolute error = 7e-31
relative error = 1.1882557867232729878233803468061e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.75
y[1] (closed_form) = 5.9157271528879765547154963123733
y[1] (numeric) = 5.9157271528879765547154963123741
absolute error = 8e-31
relative error = 1.3523274135614097981742788096916e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.76
y[1] (closed_form) = 5.9404730341377880262584087164105
y[1] (numeric) = 5.9404730341377880262584087164112
absolute error = 7e-31
relative error = 1.1783573395205208279311512216940e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.77
y[1] (closed_form) = 5.9652241561238464485775487727873
y[1] (numeric) = 5.965224156123846448577548772788
absolute error = 7e-31
relative error = 1.1734680569905930201598476945515e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.78
y[1] (closed_form) = 5.9899795202422749564132217146596
y[1] (numeric) = 5.9899795202422749564132217146603
absolute error = 7e-31
relative error = 1.1686183527580530090897291997866e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.79
y[1] (closed_form) = 6.0147381284649786492901502413476
y[1] (numeric) = 6.0147381284649786492901502413483
absolute error = 7e-31
relative error = 1.1638079415082481800983812646798e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.8
y[1] (closed_form) = 6.0394989834394465693202152576495
y[1] (numeric) = 6.0394989834394465693202152576502
absolute error = 7e-31
relative error = 1.1590365391556959500776612803877e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.81
y[1] (closed_form) = 6.0642610885884861211739226395384
y[1] (numeric) = 6.0642610885884861211739226395392
absolute error = 8e-31
relative error = 1.3192044147067017756597187930049e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1574.4MB, alloc=44.3MB, time=18.91
TOP MAIN SOLVE Loop
x[1] = 4.82
y[1] (closed_form) = 6.0890234482098799608617106191698
y[1] (numeric) = 6.0890234482098799608617106191706
absolute error = 8e-31
relative error = 1.3138395783895249340003921308350e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.83
y[1] (closed_form) = 6.1137850675759553877192667889538
y[1] (numeric) = 6.1137850675759553877192667889547
absolute error = 9e-31
relative error = 1.4720831531567718713145580494680e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.84
y[1] (closed_form) = 6.1385449530330562827406304097327
y[1] (numeric) = 6.1385449530330562827406304097335
absolute error = 8e-31
relative error = 1.3032404358376814375466751099639e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.85
y[1] (closed_form) = 6.1633021121009076461481397184653
y[1] (numeric) = 6.163302112100907646148139718466
absolute error = 7e-31
relative error = 1.1357548068682753638537664634958e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.86
y[1] (closed_form) = 6.1880555535718627978282707459854
y[1] (numeric) = 6.1880555535718627978282707459861
absolute error = 7e-31
relative error = 1.1312115638586126620308510673590e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.87
y[1] (closed_form) = 6.212804287610023315996029785628
y[1] (numeric) = 6.2128042876100233159960297856289
absolute error = 9e-31
relative error = 1.4486211996003773830446481680149e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.88
y[1] (closed_form) = 6.2375473258502218021766327470316
y[1] (numeric) = 6.2375473258502218021766327470324
absolute error = 8e-31
relative error = 1.2825553991142734034765326577478e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.89
y[1] (closed_form) = 6.2622836814968575743104585897138
y[1] (numeric) = 6.2622836814968575743104585897146
absolute error = 8e-31
relative error = 1.2774892366562002441912821048750e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.9
y[1] (closed_form) = 6.2870123694225754044943291441219
y[1] (numeric) = 6.2870123694225754044943291441226
absolute error = 7e-31
relative error = 1.1134064303810027747243263982126e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.91
y[1] (closed_form) = 6.3117324062667774335675731995194
y[1] (numeric) = 6.3117324062667774335675731995203
absolute error = 9e-31
relative error = 1.4259159642230874701283293281817e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.92
y[1] (closed_form) = 6.3364428105339584114335092408118
y[1] (numeric) = 6.3364428105339584114335092408127
absolute error = 9e-31
relative error = 1.4203552796275595756886300182994e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.93
y[1] (closed_form) = 6.3611426026918544296742604464858
y[1] (numeric) = 6.3611426026918544296742604464866
absolute error = 8e-31
relative error = 1.2576356952938970088025781523526e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
memory used=1615.0MB, alloc=44.3MB, time=19.40
TOP MAIN SOLVE Loop
x[1] = 4.94
y[1] (closed_form) = 6.3858308052693953316674308040397
y[1] (numeric) = 6.3858308052693953316674308040406
absolute error = 9e-31
relative error = 1.4093702565018589201890809712102e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.95
y[1] (closed_form) = 6.4105064429544510050452574116347
y[1] (numeric) = 6.4105064429544510050452574116358
absolute error = 1.1e-30
relative error = 1.7159330698574822455320967876039e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.96
y[1] (closed_form) = 6.4351685426913617819484480229353
y[1] (numeric) = 6.4351685426913617819484480229364
absolute error = 1.1e-30
relative error = 1.7093569386761550247662354809646e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.97
y[1] (closed_form) = 6.4598161337782431941159535140125
y[1] (numeric) = 6.4598161337782431941159535140135
absolute error = 1.0e-30
relative error = 1.5480316765844479003257482564978e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.98
y[1] (closed_form) = 6.4844482479640553524162533206808
y[1] (numeric) = 6.484448247964055352416253320682
absolute error = 1.2e-30
relative error = 1.8505815053374327585557057937897e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
TOP MAIN SOLVE Loop
x[1] = 4.99
y[1] (closed_form) = 6.509063919545427243963091597697
y[1] (numeric) = 6.5090639195454272439630915976981
absolute error = 1.1e-30
relative error = 1.6899511413567752685234451207668e-29 %
Desired digits = 8
Estimated correct digits = 12
Correct digits = 32
h = 0.001
Finished!
diff ( y , x , 1 ) = ( 0.1 * x + 1.0 ) - sin ( x ) ;
Iterations = 4900
Total Elapsed Time = 19 Seconds
Elapsed Time(since restart) = 19 Seconds
Time to Timeout = 2 Minutes 40 Seconds
Percent Done = 100 %
> quit
memory used=1635.5MB, alloc=44.3MB, time=19.62