You are on page 1of 5

In[127]:= Clear[y];

borra

In[128]:=

DSolvey '[x] ⩵ x y[x] + x2 && y[0] ⩵ 1, y[x], x // FullSimplify


resolvedor diferencial simplifica completamente

y[x] → - x + 1 ⅇ 2 π Erf x  
x2
Out[128]= 2 2+
2 2

In[129]:=

1 x2 x
Y[x_] := - x + ⅇ2 2+ 2 π Erf  ;
2 2
función error

In[132]:=

f (x, y (x)) = x y (x) + x2 , o bien, f (x, y) = x y + x2 ; y (a) = ya con a = 0; ya = 1;

In[136]:=

f[x_, y_] := x y + x2 ; a = 0; ya = 1;
poli5 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 5, 0}] //. ϵ → 0 //.
dersxena[f, a, ya, 5]

ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[137]= EconomizedRationalApproximation[y[x], {x, {0, 0}, 5, 0}] //. dersxena[f, 0, 1, 5]

In[138]:= Plot[Evaluate[{Y[x], poli5}], {x, - 0.9, 2}, PlotStyle → {Red, {Dashed, Thick}}]
repr⋯ evalúa estilo de repre⋯ rojo rayado grueso

ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0., 1., 5.]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

General: Further output of ReplaceRepeated::reps will be suppressed during this calculation.

Out[138]=

-0.5 0.5 1.0 1.5 2.0


2 lab5.nb

In[139]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
poli5a = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 5, 0}] //. ϵ → 1 //.
dersxena[f, a, ya, 5]
ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[139]= EconomizedRationalApproximation[y[x], {x, {- 1, 1}, 5, 0}] //. dersxena[f, 0, 1, 5]

In[140]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
era22 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 2, 2}] //. ϵ → 1 //.
dersxena[f, a, ya, 5]
ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[140]= EconomizedRationalApproximation[y[x], {x, {- 1, 1}, 2, 2}] //. dersxena[f, 0, 1, 5]

In[141]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
era22 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 1, 1}] //. ϵ → 1 //.
dersxena[f, a, ya, 5]
ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[141]= EconomizedRationalApproximation[y[x], {x, {- 1, 1}, 1, 1}] //. dersxena[f, 0, 1, 5]

In[142]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
era21 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 2, 1}] //. ϵ → 1 //.
dersxena[f, a, ya, 5]
ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[142]= EconomizedRationalApproximation[y[x], {x, {- 1, 1}, 2, 1}] //. dersxena[f, 0, 1, 5]


lab5.nb 3

In[143]:= Plot[Evaluate[{Y[x], era21}], {x, - 0.9, 2}, PlotStyle → {Red, {Dashed, Thick}}]
repr⋯ evalúa estilo de repre⋯ rojo rayado grueso

ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0., 1., 5.]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0, 1, 5]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

General: Further output of ReplaceRepeated::reps will be suppressed during this calculation.

Out[143]=

-0.5 0.5 1.0 1.5 2.0

In[144]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
a = 0;
era51 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 5, 1}] //. ϵ → 0 //.
dersxena[f, a, ya, 7]
ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[144]= EconomizedRationalApproximation[y[x], {x, {0, 0}, 5, 1}] //. dersxena[f, 0, 1, 7]


4 lab5.nb

In[145]:= Plot[Evaluate[{Y[x], era51}], {x, - 0.9, 2}, PlotStyle → {Red, {Dashed, Thick}}]
repr⋯ evalúa estilo de repre⋯ rojo rayado grueso

ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0., 1., 7.]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

General: Further output of ReplaceRepeated::reps will be suppressed during this calculation.

Out[145]=

-0.5 0.5 1.0 1.5 2.0


lab5.nb 5

In[146]:= f[x_, y_] := x y + x2 ;


a = 0;
ya = 1;
a = 0;
era52 = EconomizedRationalApproximation[y[x], {x, {a - ϵ, a + ϵ}, 5, 3}] //. ϵ → 0 //.
dersxena[f, a, ya, 7]
Plot[Evaluate[{Y[x], era52}], {x, - 2, 2}, PlotStyle → {Red, {Dashed, Thick}}]
repr⋯ evalúa estilo de repre⋯ rojo rayado grueso

ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

Out[146]= EconomizedRationalApproximation[y[x], {x, {0, 0}, 5, 3}] //. dersxena[f, 0, 1, 7]

ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0., 1., 7.]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

ReplaceRepeated : {dersxena[f, 0, 1, 7]} is neither a list of replacement rules nor a valid dispatch table, and so cannot be used
for replacing.

General: Further output of ReplaceRepeated::reps will be suppressed during this calculation.


7

4
Out[147]=

-2 -1 1 2

You might also like