def main(): args = argparser().parse_args() eps = args.p if (args.c == True): r = cauchymeth.range_kutta(args.y0, args.a, args.b, args.p, func, cnt=True, vls=True) print(str(r[0])+' '+str(r[1][-1][1])) pipe_ploter.plot((' '.join([(str(x[0])+' '+str(x[1])) for x in r[1]])).split()) else: r = cauchymeth.range_kutta(args.y0, args.a, args.b, args.p, func, cnt=True, vls=False) print(str(r[0])+' '+str(r[1][0])+' '+str(r[1][1]))
def main(): args = argparser().parse_args() eps = args.p rk = cauchymeth.range_kutta(args.y0, args.a, args.b, args.p, func, cnt=True, vls=True) if (args.n == -1): rkn = cauchymeth.range_kuttan(args.y0, args.a, args.b, len(rk[1]), func, vls=True) am = cauchymeth.adamsm(args.y0, args.a, args.b, len(rk[1]), func, vls=True) else: rkn = cauchymeth.range_kuttan(args.y0, args.a, args.b, args.n, func, vls=True) am = cauchymeth.adamsm(args.y0, args.a, args.b, args.n, func, vls=True) pipe_ploter.plotm(rk[1], rkn, am, args.m)