def main(): args = argparser().parse_args() if (args.c == True): r = cauchymeth.adamsm(args.y0, args.a, args.b, args.n, func, True) print(r[-1][1]) pipe_ploter.plot((' '.join([(str(x[0])+' '+str(x[1])) for x in r])).split()) else: r = cauchymeth.adamsm(args.y0, args.a, args.b, args.n, func, False) print(str(r[0])+' '+str(r[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)