“FACULTAD DE INGENIERÍA ELÉCTRICA Y ELECTRÓNICA
ESCUELA PROFESIONAL DE INGENIERÍA ELÉCTRICA”
INFORME DEL LABORATORIO DE METODOS NUMERICOS
Docente: Juvenal Tordocillo Puchuc
Tema: Funciones en Octave y matlab
Grupo: 93-G
Alumno: Dionicio Melchor Jorge Gustavo
Ciclo: 2019-A
Callao – Perú
2018
Programación:
>> %Nuevo scrip para la grafica de la funcion Seno
>> x=0:0.02:2;
>> f=sin(2*pi*x);
>> plot(x,f,'r')
>> grid
>> legend('- Funcion Seno')
>> xlabel('Eje variable independiente x')
>> ylabel('Eje variable dependiente y')
>> title('Grafica de la Funcion Seno')
>> grid minor
Gráfico obtenido luego de programar y declarar la función Seno:
>> %Nuevo scrip para la gráfica de la función Coseno
>> x=linspace(0,5,100)
x =
Columns 1 through 9:
0.00000 0.05051 0.10101 0.15152 0.20202 0.25253 0.30303 0.35354 0.40404
Columns 10 through 18:
0.45455 0.50505 0.55556 0.60606 0.65657 0.70707 0.75758 0.80808 0.85859
Columns 19 through 27:
0.90909 0.95960 1.01010 1.06061 1.11111 1.16162 1.21212 1.26263 1.31313
Columns 28 through 36:
1.36364 1.41414 1.46465 1.51515 1.56566 1.61616 1.66667 1.71717 1.76768
Columns 37 through 45:
1.81818 1.86869 1.91919 1.96970 2.02020 2.07071 2.12121 2.17172 2.22222
Columns 46 through 54:
2.27273 2.32323 2.37374 2.42424 2.47475 2.52525 2.57576 2.62626 2.67677
Columns 55 through 63:
2.72727 2.77778 2.82828 2.87879 2.92929 2.97980 3.03030 3.08081 3.13131
Columns 64 through 72:
3.18182 3.23232 3.28283 3.33333 3.38384 3.43434 3.48485 3.53535 3.58586
Columns 73 through 81:
3.63636 3.68687 3.73737 3.78788 3.83838 3.88889 3.93939 3.98990 4.04040
Columns 82 through 90:
4.09091 4.14141 4.19192 4.24242 4.29293 4.34343 4.39394 4.44444 4.49495
Columns 91 through 99:
4.54545 4.59596 4.64646 4.69697 4.74747 4.79798 4.84848 4.89899 4.94949
Column 100:
5.00000
>> f=cos(2*pi*x.^2)
f =
Columns 1 through 8:
1.000000 0.999872 0.997946 0.989615 0.967301 0.920799 0.838120 0.707163
Columns 9 through 16:
0.518482 0.269253 -0.031888 -0.360178 -0.672127 -0.907691 -1.000000 -0.894064
Columns 17 through 24:
-0.572460 -0.080528 0.462068 0.878790 0.991873 0.707617 0.096811 -0.584487
Columns 25 through 32:
-0.981379 -0.829808 -0.160691 0.635020 0.999999 0.611967 -0.283116 -0.953512
Columns 33 through 40:
-0.762530 0.173648 0.948458 0.708522 -0.343375 -0.998734 -0.406942 0.727704
Columns 41 through 48:
0.872600 -0.235447 -0.999996 -0.209824 0.925724 0.507476 -0.799339 -0.663058
Columns 49 through 56:
0.715723 0.709878 -0.715499 -0.663538 0.798761 0.508581 -0.925117 -0.211704
Columns 57 through 64:
0.999987 -0.232954 -0.874005 0.725501 0.410160 -0.998533 0.339459 0.711682
Columns 65 through 72:
-0.946924 0.168595 0.766044 -0.951757 0.277270 0.617025 -0.999968 0.629557
Columns 73 through 80:
0.167963 -0.834076 0.979808 -0.577705 -0.105421 0.713930 -0.993013 0.874161
Columns 81 through 88:
-0.453233 -0.090747 0.581101 -0.898892 0.999933 -0.902789 0.663298 -0.348788
Columns 89 through 96:
0.019391 0.281579 -0.529675 0.716618 -0.845559 0.926208 -0.970859 0.991627
Columns 97 through 100:
-0.998798 1.000000 -0.999877 1.000000
>> plot(x,f,'b')
>> grid minor
>> xlabel('Eje x')
>> ylabel('Eje y')
>> legend('Grafico')
>> title('Funcion')
>>
Grafico obtenido luego de programar y declarar la funcion: