Taylor级数与maple中非线性DE的数值解

Taylor级数与maple中非线性DE的数值解,maple,Maple,我想画两张图:DE的数值解和给定DE的泰勒级数近似。我有 de := diff(y(x), x$2) = x+y(x)-y(x)^2; cond := y(0) = -1, (D(y))(0) = 1; stp := 0.1e-1; a, b := -5, 30; numpts := floor((b-a)/stp+1); p := dsolve({cond, de}, y(x), numeric, stepsize = stp, output = listprocedure); 绘制eva

我想画两张图:DE的数值解和给定DE的泰勒级数近似。我有

de := diff(y(x), x$2) = x+y(x)-y(x)^2;
cond := y(0) = -1, (D(y))(0) = 1;
stp := 0.1e-1;
a, b := -5, 30;
numpts := floor((b-a)/stp+1);
p := dsolve({cond, de}, y(x), numeric, stepsize = stp, output = listprocedure); 
绘制
eval
会给出奇怪的垂直线,而我希望得到的绘图似乎会随着
x->∞。对于泰勒级数,我尝试了
f:=[seq(Taylor(y(x),x=I,n),I=-5..30 by stp)]
但它似乎无法以这种方式工作。我能用它做什么?为什么我的情节与预期不同

restart;
kernelopts(version);

    Maple 2018.0, X86 64 LINUX, Mar 9 2018, Build ID 1298750

de := diff(y(x), x$2) = x+y(x)-y(x)^2:
cond := y(0) = -1, (D(y))(0) = 1:
stp := 0.1e-1:
a, b := -5, 30:
numpts := floor((b-a)/stp+1):

p := dsolve({cond, de}, y(x), numeric, stepsize = stp,
            output = listprocedure):

Y:=eval(y(x),p);

                Y := proc(x)  ...  end;

plot(Y, 0..20);


最近,你的另一个问题似乎消失了。是这样吗?它被删除了吗?非常感谢你的回答,情节看起来不错。我的最后一个问题毫无用处,因为它是由我对结果的错误想法引起的。事实上,如果可以这样做,Maple会自动完成所需的工作,所以这个问题是不必要的。简单检查(使用另一个类似的DE)显示我的“问题”是我的数学技能问题,而不是我的枫树技能:)
Order:=10:
S := convert(rhs(dsolve({cond, de}, {y(x)}, series)),polynom);

plot([S, Y(x)], x=0..1.5);
Order:=40:
S := convert(rhs(dsolve({cond, de}, {y(x)}, series)),polynom):

plot([S, Y(x)], x=0..2.0);