Método de la bisección
(Práctica 1 de Métodos Numéricos y Álgebra Lineal)
Rubén Darío Santiago Acosta y Raúl Martínez Rosado
Objetivos
Conocer los elementos básicos del paquete Mathematica.Conocer los comandos de manipulación algebraica de Mathematica.
Graficar funciones elementales usando los comandos de Mathematica.
Elaborar una tabla de valores de funciones usando el comando Table.Usar el comando ListPlot para graficar funciones elementales.
Cálculos básicos
Cálculos numéricos básicos.
En Mathematica se pueden realizar operaciones básicas como si tuviéramos unacalculadora
In[165]:=
2+2
Out[165]=
4
In[166]:=
2^10
Out[166]=
1024
Variables en Mathematica.
Algunas instrucciones requieren del uso de variables en Mathematica
Printed by Mathematicafor Students
2
practica1ConociendoMathe_mn.nb
In[167]:=
a = 2^44
Out[167]=
17 592 186 044 416
In[168]:=
Log[4,a]
Out[168]=
22
In[169]:=
x + 2 x^2 + 3x - x^2 + 1Out[169]=
1 + 4 x + x2
In[170]:=
(1 Km + 2 Km) / (5 Hr)
Out[170]=
3 Km
5 Hr
Funciones matemáticas
LA NOTACION DE FUNCIONES MATEMATICAS ES LA ESTANDAR:
Sin, Cos, Tan, Sinh, Cosh, Log,Exp, Arcsin, etc.
EN GENERAL, INICIANDO CON MAYUSCULAS, LIMITANDO SU ARGUMENTO
CON [ ], Y ESCRIBIENDO EL NOMBRE COMPLETO PARA FUNCIONES NO
TAN COMUNES:
Mean, Derivative, Integrate,Interpolation, etc.
Algunos ejemplos se muestran abajo.
In[100]:=
Cosh[1]
Out[100]=
Cosh@1D
Printed by Mathematica for Students
3
practica1ConociendoMathe_mn.nb
In[101]:=
N[%]
Out[101]=1.54308
In[102]:=
Cos[Pi Sin[Pi/2]]
Out[102]=
In[172]:=
−1
Clear@gD
In[173]:=
D[(g[x])^2,x]
Out[173]=
2 g@xD g @xD
In[104]:=
D[x^2 - x^-1 + Cos[x^2] - Cos[Sin[x]] +Log[x],x]
Out[104]=
1
x2
+
1
x
+ 2 x − 2 x SinAx2 E + Cos@xD Sin@Sin@xDD
In[105]:=
Integrate[x Cos[x],x]
Out[105]=
Cos@xD + x Sin@xD
Información
Capacidad numérica...
Regístrate para leer el documento completo.