Up to [local] / OpenXM / src / util
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: HEAD
Revision 1.3 / (download) - annotate - [selected], Thu Nov 8 02:53:35 2018 UTC (5 years, 7 months ago) by takayama
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +9 -1
lines
Diff to previous 1.2 (colored)
rk4_adaptive_step(RK_mat,Y0,X,X0,H,H1) RK_mat for X and H. Y0 is the value at X=X0. Returns [[NewX0,NewY0],NewH]. Options: mode=0(rational), mode=1(bigfloat), mode=2(double, default). Example: P=newmat(2,2,[[-2*x,1],[-1,-2*x]]); M=tk_rk.rk4_mat(P,x,x,h); tk_rk.rk4_adaptive_step(M,newvect(2,[1,0]),x,0,h,1/100);"