You are on page 1of 4

In[ ]:= Quit[]

detén núcleo del sistema

In[4]:= ode = k * y ''[x] + 2 * l ^ 2 * y[x] ⩵ G, y[0.1] ⩵ 0, y '[1] ⩵ 2


Out[4]= 4.5 y[x] + x2 y′′ [x] ⩵ ⅇ1.5 x , y[0.1] ⩵ 0, y′ [1] ⩵ 2

In[1]:= k = x^2
l = 1.5
G = Exp[l * x]
exponencial
2
Out[1]= x

Out[2]= 1.5

Out[3]= ⅇ1.5 x

1
Out[]= ⅇ0.01 x

In[5]:=

s = NDSolve[ode, y[x], {x, 1, 490}]


resolvedor diferencial numérico

Domain: {{1., 490.}}


In[6]:= y[x_] = InterpolatingFunction Output: scalar
[x]
función interpolante

Domain: {{1., 490.}}


Out[6]= InterpolatingFunction Output: scalar
[x]
2 c2.nb

In[7]:= grafsol1 = Plot[y[x] /. s, {x, 0, 10}, AxesLabel → {HoldForm[X], HoldForm[Y]},


representación gráfica etiqueta de ejes forma sin evalu⋯ forma sin evaluación
PlotLabel → HoldForm[y[x]], LabelStyle → {GrayLevel[0]}, PlotStyle → Thickness[0.01]]
etiqueta de r⋯ forma sin evaluación estilo de etiqueta nivel de gris estilo de repr⋯ grosor

InterpolatingFunction : Input value {0.000204286} lies outside the range of data in the interpolating function. Extrapolation will
be used.

InterpolatingFunction : Input value {0.000204286} lies outside the range of data in the interpolating function. Extrapolation will
be used.

InterpolatingFunction : Input value {0.000204286} lies outside the range of data in the interpolating function. Extrapolation will
be used.

General: Further output of InterpolatingFunction::dmval will be suppressed during this calculation.

y(x)
Y

15 000

Out[7]=
10 000

5000

X
2 4 6 8 10
c2.nb 3

In[8]:= grafsol2 = Plot[y[x] /. s, {x, 0, 400}, AxesLabel → {HoldForm[X], HoldForm[Y]},


representación gráfica etiqueta de ejes forma sin evalu⋯ forma sin evaluación
PlotLabel → HoldForm[y[x]], LabelStyle → {GrayLevel[0]}, PlotStyle → Thickness[0.01]]
etiqueta de r⋯ forma sin evaluación estilo de etiqueta nivel de gris estilo de repr⋯ grosor

InterpolatingFunction : Input value {0.00817143} lies outside the range of data in the interpolating function. Extrapolation will
be used.

InterpolatingFunction : Input value {0.00817143} lies outside the range of data in the interpolating function. Extrapolation will
be used.

InterpolatingFunction : Input value {0.00817143} lies outside the range of data in the interpolating function. Extrapolation will
be used.

General: Further output of InterpolatingFunction::dmval will be suppressed during this calculation.


Y y(x)

1 × 10210

8 × 10209

209
Out[8]= 6 × 10

4 × 10209

2 × 10209

X
100 200 300 400

In[9]:= y '[x_]

Domain: {{1., 490.}}


In[10]:= u[x_] = InterpolatingFunction Output: scalar
[x_]
función interpolante

Rule: Pattern x_ appears on the right-hand side of rule


u[x_] → InterpolatingFunction[{{1., 490.}}, {5, 3, 2, {3363}, {4}, {1}, 0, 0, 0, Automatic, {}, {}, False}, {{1., 49, 3313}}, {{
7.26008, 2., -28.1887}, {7.26011, 1.99956, -28.1878}, {7.26014, 1.99913, -28.187}, {7.26381, 1.94678, -28.0864}, {
7.26739, 1.89461, -27.9858}, 41, {0.715904, -6.33127, 4.99723}, {0.293272, -5.96551, 5.64297}, {-0.102747, -
5.557, 6.2433}, {-0.469316, -5.10856, 6.8066}, 3313}, {Automatic}][x_].

Domain: {{1., 490.}}


Out[10]= InterpolatingFunction Output: scalar
[x_]

In[ ]:= y '[2]


1
Out[]= 4 Cos2 2+ 2 Sin2 2 
2
4 c2.nb

campo1 = VectorPlot[{u '[x], 1}, {x, 0, 10}, {y, 0, 15 000}]


representación vectorial

14 000

12 000

10 000

8000
Out[]=

6000

4000

2000

0
0 2 4 6 8 10

In[ ]:= Show[campo1, grafsol2]


muestra

14 000

12 000

10 000

8000
Out[]=

6000

4000

2000

0
0 2 4 6 8 10

You might also like