Docsity

Ejercicios de Interpolación Numérica con Wolfram Mathematica, Ejercicios de Física Computacional

Toggle sidebar
bg1
EJERCICIO 1
In[2]:= a= {{3, 0.98},{5, 1.23},{7, 1.45},{9, 1.79},{11, 1.89},
{13, 2.32},{15, 2.48},{17, 2.67},{19, 2.85},{21, 3.02},{23, 3.23},
{25, 3.32},{27, 3.41},{29, 3.58},{31, 3.67},{33, 3.79},{35, 4.11},{37,
4.32}}
Out[2]= {{3, 0.98},{5, 1.23},{7, 1.45},{9, 1.79},{11, 1.89},{13, 2.32},
{15, 2.48},{17, 2.67},{19, 2.85},{21, 3.02},{23, 3.23},{25, 3.32},
{27, 3.41},{29, 3.58},{31, 3.67},{33, 3.79},{35, 4.11},{37, 4.32}}
In[3]:=
interpolación
Interpolation[a, 4]
Out[3]= 1.11813
In[4]:=
interpolación
Interpolation[a, 6.67]
Out[4]= 1.40945
In[5]:=
interpolación
Interpolation[a, 7.34]
Out[5]= 1.50924
In[6]:=
interpolación
Interpolation[a, 23.34]
Out[6]= 3.25046
In[7]:=
interpolación
Interpolation[a, 36.56]
Out[7]= 4.29902
GRÁFICA Nº 1
In[8]:= a=
interpolación
Interpolation[{{3, 0.98},{5, 1.23},{7, 1.45},{9, 1.79},{11, 1.89},{13, 2.32},
{15, 2.48},{17, 2.67},{19, 2.85},{21, 3.02},{23, 3.23},{25, 3.32},
{27, 3.41},{29, 3.58},{31, 3.67},{33, 3.79},{35, 4.11},{37, 4.32}}]
Out[8]= InterpolatingFunctionDomain: 3., 37.
Output
:scalar
Printed by Wolfram Mathematica Student Edition
pf3
pf4

Vista previa parcial del texto

¡Descarga Ejercicios de Interpolación Numérica con Wolfram Mathematica y más Ejercicios en PDF de Física Computacional solo en Docsity!

EJERCICIO 1

In[2]:= a = {{ 3, 0.98 } , { 5, 1.23 } , { 7, 1.45 } , { 9, 1.79 } , { 11, 1.89 } ,

Out[2]= {{3, 0.98}, {5, 1.23}, {7, 1.45}, {9, 1.79}, {11, 1.89}, {13, 2.32},

In[3]:=

interpolación

Interpolation [ a, 4 ]

Out[3]= 1.

In[4]:=

interpolación

Interpolation [ a, 6.67 ]

Out[4]= 1.

In[5]:=

interpolación

Interpolation [ a, 7.34 ]

Out[5]= 1.

In[6]:=

interpolación

Interpolation [ a, 23.34 ]

Out[6]= 3.

In[7]:=

interpolación

Interpolation [ a, 36.56 ]

Out[7]= 4.

GRÁFICA Nº 1

In[8]:= a =

interpolación

Interpolation [{{ 3, 0.98 } , { 5, 1.23 } , { 7, 1.45 } , { 9, 1.79 } , { 11, 1.89 } , { 13, 2.32 } ,

{ 27, 3.41 } , { 29, 3.58 } , { 31, 3.67 } , { 33, 3.79 } , { 35, 4.11 } , { 37, 4.32 }}]

Out[8]= InterpolatingFunction

Domain:  3., 37. 

Output: scalar

In[9]:=

representación gráfica

Plot a x .

, x .

Out[9]=

5 10 15 20 25 30 35

EJERCICIO 2

In[10]:= b = {{ 50, 0.009 } , { 100, 0.048 } , { 150, 0.093 } , { 200, 0.112 } , { 250, 0.137 } ,

Out[10]= {{50, 0.009}, {100, 0.048}, {150, 0.093}, {200, 0.112}, {250, 0.137},

In[11]:=

interpolación

Interpolation [ b, 59 ]

Out[11]= 0.

In[12]:=

interpolación

Interpolation [ b, 158 ]

Out[12]= 0.

In[13]:=

interpolación

Interpolation [ b, 581.34 ]

Out[13]= 0.

In[14]:=

interpolación

Interpolation [ b, 781.98 ]

Out[14]= 0.

In[15]:=

interpolación

Interpolation [ b, 981.49 ]

Out[15]= 0.

In[22]:=

interpolación

Interpolation [ c, 99 ]

Out[22]= 4.

In[23]:=

interpolación

Interpolation [ c, 108 ]

Out[23]= 4.

GRÁFICA Nº 3

In[24]:= c =

interpolación

Interpolation [

{ 84, 3.12 } , { 88, 3.37 } , { 92, 3.59 } , { 96, 3.91 } , { 100, 4.07 } , { 104, 4.33 } , { 114, 4.71 }}]

Out[24]= InterpolatingFunction

Domain:  34., 114. 

Output: scalar

In[25]:=

representación gráfica

Plot c x .

, x .

Out[25]=

40 60 80 100

2

3

4