primera practica

5
1. x=[0:0.1:1.3];fx=(x.^10) - 1, plot(x,fx); grid Columns 1 through 12 -1.0000 -1.0000 -1.0000 -1.0000 -0.9999 -0.9990 -0.9940 -0.9718 -0.8926 -0.6513 0 1.5937 Columns 13 through 14 5.1917 12.7858 x=[0.9998:0.0000001:1.0002],fx=(x.^10) - 1, plot(x,fx), grid

Upload: edwar-vidal-sanca-pacori

Post on 15-Apr-2016

221 views

Category:

Documents


0 download

DESCRIPTION

métodos numericos

TRANSCRIPT

Page 1: Primera Practica

1. x=[0:0.1:1.3];fx=(x.^10) - 1, plot(x,fx); grid

Columns 1 through 12

-1.0000 -1.0000 -1.0000 -1.0000 -0.9999 -0.9990 -0.9940 -0.9718 -0.8926 -0.6513

0 1.5937

Columns 13 through 14

5.1917 12.7858

x=[0.9998:0.0000001:1.0002],fx=(x.^10) - 1, plot(x,fx), grid

Page 2: Primera Practica

2. x=[2.9:0.1:3.1]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

>> x=[2.9:0.1:3.1]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

>> x=[3:0.01:3.05]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

>> x=[3.01:0.001:3.015]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

>> x=[3.014:0.0001:3.015]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

>> x=[3.0142:0.00001:3.0144]; fx=-0.875*x.^2+1.75*x+2.675; plot(x,fx); grid

3. x=[0:0.1:4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-100:1:100]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-40:0.5:20]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-10:0.5:10]; fx=-5 -10*x +x.^3; plot(x,fx);grid

Page 3: Primera Practica

>> x=[-4:0.1:4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-2:0.01:2.5]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.5:0.001:0.5]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.1:0.00001:0.1]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.02:0.000001:0.02]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.0000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.0000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-4:0.001:4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.1:0.00001:0.1]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.02:0.000001:0.02]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.0000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.005:0.0000001:0.005]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-10:0.5:10]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-10:0.01:10]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-4:0.001:4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-1:0.001:0]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.6:0.00001:-0.5]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.52:0.000001:-0.51]; fx=-5 -10*x +x.^3; plot(x,fx);grid

Page 4: Primera Practica

>> x=[-0.514:0.0000001:-0.512]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.514:0.00000001:-0.5135]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[-0.5136:0.000000001:-0.5135]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3:0.01:4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3.3:0.0001:3.4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3.38:0.00001:3.4]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3.385:0.00001:3.39]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3.387:0.00001:3.388]; fx=-5 -10*x +x.^3; plot(x,fx);grid

Page 5: Primera Practica

>> x=[3.387:0.000001:3.388]; fx=-5 -10*x +x.^3; plot(x,fx);grid

>> x=[3.3876:0.0000001:3.3877]; fx=-5 -10*x +x.^3; plot(x,fx);grid

4. f(x)=lnx-0.5 en [1,2]

>> x=[1:0.1:2];fx=log(x)-0.5; plot(x,fx);grid

x=[1.6:0.001:1.7];fx=log(x)-0.5; plot(x,fx);grid