deber matlab 22-10-15
DESCRIPTION
MatlabTRANSCRIPT
UNIVERSIDAD TÉCNICA DE MANABÍ INSTITUTO DE CIENCIAS BÁSICAS
DEPARTAMENTO DE MATEMÁTICAS Y ESTADÍSTICA
TAREA AUTÓNOMA Nº 3
DE MÉTODOS NUMÉRICOS
TEMA: MATLAB
ESTUDIANTE:
MOREIRA VÁSQUEZ JONATHAN RICARDO
PROFESOR GUÍA:
Lcdo. Felipe Rumbaut León.
FECHA: 22 de OCTUBRE de 2015
QUINTO SEMESTRE PARALELO "D"
PERÍODO ACADÉMICO:
OCTUBRE 2015 - FEBRERO 2016
PORTOVIEJO – MANABÍ - ECUADOR
log ( x )+4 x−x2−2
>> syms x
>> f=' log(x)+4*x-x^2-2';
>> ezplot(f,[0,5]); grid on
>> format long
>> x=fzero(f,0.5)
x = 0.711653712812500
>> x=fzero(f,4)
x = 3.828223409141338
x5−x4+3 x3−8 x2+x−9
f='x^5-x^4+3*x^3-8*x^2+x-9';
>> ezplot(f,[-1,3]); grid on
>> x=fzero(f,2)
x = 1.980671598631637
>> x=solve(f)
x =
1.980671598631636696920395928458
- 1.1414428150989190799739696161064*i - 0.11667240689306184182356912632324
1.1414428150989190799739696161064*i - 0.11667240689306184182356912632324
1.8198557833078860773703059379684*i - 0.37366339242275650663662883790576
- 1.8198557833078860773703059379684*i - 0.37366339242275650663662883790576
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5-7
-6
-5
-4
-3
-2
-1
0
1
2
3
X: 0.6236Y: -0.3669
x
log(x)+4 x-x2-2
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-20
0
20
40
60
80
100
x
x5-x4+3 x3-8 x2+x-9
x2−tan (x )=0
>> syms x
>> y='x^2-tan(x)';
>> ezplot(y,[-5,5]); grid on
>> ezplot(y,[-5,-4]); grid on
>> ezplot(y,[-4.8,-4.7]); grid on
>> ezplot(y,[-1,1]); grid on
>> ezplot(y,[-0.2,0.2]); grid on
>> ezplot(y,[4,5]); grid on
>> ezplot(y,[4.6,4.7]); grid on
>> x=fzero(y,-4.76)
x = -1.853927459696150
>> x=fzero(y,-4.75)
x = -4.712388980384692
>> x=fzero(y,-1)
x = -1.570796326794896
>> x=fzero(y,4.6)
x = 1.570796326794896
4.6 4.61 4.62 4.63 4.64 4.65 4.66 4.67 4.68 4.69 4.7
-40
-30
-20
-10
0
10
X: 4.667Y: -0.006123
x
x2-tan(x)
x4−3x3+8 x2−x−9
>>syms x
>> f='x^4-3*x^3-8*x^2-x-9';
>> ezplot (f,[-5,5]); grid on
>> x=fzero(f,-2)
x = -1.972272833367676
>> x=fzero(f,5)
x = 4.793964895850145
>> x=solve(f)
x = 4.7939648958501457630762715993474
-1.9722728333676757676021949867876
0.08915396875876500226296169372014 - 0.9715596770591439974297126823469*i
0.9715596770591439974297126823469*i + 0.08915396875876500226296169372014
x2+10 cos ( x )=0
>>syms x
>> f='x^2+10*cos(x)';
>> ezplot (f,[-5,5]);grid on
ezplot (f,[0,5]);grid on
>> ezplot (f,[-5,5]);grid on
>> x=fzero(f,-3);
>> x=fzero(f,-3)
x = -3.161950024710256
>> x=fzero(f,-2)
x = -1.968872937819828
>> x=fzero(f,2)
x = 1.968872937819828
>> x=fzero(f,3)
x = 3.161950024710256
-5 -4 -3 -2 -1 0 1 2 3 4 5
-100
0
100
200
300
400
500
X: -1.905Y: -2.208
x
x4-3 x3-8 x2-x-9
-5 -4 -3 -2 -1 0 1 2 3 4 5
0
5
10
15
20
25
X: 3.176Y: 0.08968
x
x2+10 cos(x)
sen ( x )−log ( x )=0
>>syms x
f='sin(x)-log(x)';
>> ezplot (f,[-5,5]);grid on
>> x=fzero(f,2)
x = 2.219107148913746
x3−9 x2−9 x+19=0
>> syms x
>> f='x^3-9*x^2-9*x+19';
>> ezplot (f,[-5,5]);grid on
>> x=fzero(f,-2)
x = -1.806263130685724
>> x=fzero(f,1)
x = 1.081687820602189
>> ezplot (f,[-5,25]);grid on
>> ezplot (f,[-5,10]);grid on
>> ezplot (f,[8,10]);grid on
>> x=fzero(f,9.6)
x = 9.724575310083536
-5 -4 -3 -2 -1 0 1 2 3 4 5-3
-2
-1
0
1
2
3
4
x
sin(x)-log(x)
-5 0 5 10-300
-250
-200
-150
-100
-50
0
x
x3-9 x2-9 x+19
1(x+1)
−x2+100 x−100
>> syms x
>> f='(1/(x+1))-x^2+100*x-100';
>> ezplot (f,[-5,5]);grid on
>> x=fzero(f,1)
x = 1.005115323826751
5ex−2 x−10=0
>> syms x
>> f='5*exp(x)-2*x-10';
>> ezplot (f,[-5,5]);grid on
>> ezplot (f,[-4,5]);grid on
>> ezplot (f,[-10,5]);grid on
>> ezplot (f,[-6,5]);grid on
>> x=fzero(f,-5)
x = -4.982863991332290
-5 -4 -3 -2 -1 0 1 2 3 4 5
-600
-400
-200
0
200
400
X: 1.005Y: -0.04852
x
(1/(x+1))-x2+100 x-100
-6 -5 -4 -3 -2 -1 0 1 2 3 4 5
0
50
100
150
200
250
300
X: -5.594Y: 1.206
x
5 exp(x)-2 x-10
5ex−2 x−10=0
>> syms x
>> f='5*exp(x)-2*x-10';
>> ezplot(f,[-5,5]);
>> ezplot(f,[-5,5]); grid on
>> ezplot(f,[-15,5]); grid on
>> ezplot(f,[-6,2]); grid on
>> x=fzero(f,-5)
x = -4.982863991332290
>> x=fzero(f,1)
x = 0.850182048243230
(x2+1 ) cos(x )=1
>> syms x
>> f='(x^2+1)*cos(x)-1';
>> ezplot(f,[-5,5]);grid on
>> x=fzero(f,-5)
x = -4.754760631452614
>> x=fzero(f,-1)
x = -1.102505824406416
>> x=fzero(f,1)
x = 1.102505824406416
>> x=fzero(f,5)
x = 4.754760631452614
>> x=fzero(f,0)
x = 0
>> x=solve(f)
x = 0
-6 -5 -4 -3 -2 -1 0 1 2
-6
-4
-2
0
2
4
6
8
X: 0.8545Y: 0.04203
x
5 exp(x)-2 x-10
-5 -4 -3 -2 -1 0 1 2 3 4 5
-14
-12
-10
-8
-6
-4
-2
0
2
4
6
X: 1.097Y: 0.005347
x
(x2+1) cos(x)-1
x3−4 x2−4 x+16−log (x )=0
>> syms x
>> f='x^3-4*x^2-4*x+16-log(x)';
>> ezplot(f,[-5,5]);grid on
>> ezplot(f,[-25,25]);grid on
>> ezplot(f,[-5,5]);grid on
>> x=fzero(f,2)
x = 1.919995784680161
>> x=fzero(f,4)
x = 4.109652550449433
-5 -4 -3 -2 -1 0 1 2 3 4 5
-5
0
5
10
15
20
X: 4.099Y: -0.1393
x
x3-4 x2-4 x+16-log(x)