Ejercicio en Matlab

download Ejercicio en Matlab

of 4

description

trabajo

Transcript of Ejercicio en Matlab

  • Instituto nacional de Mxico

    INSTITUTO Tecnolgico DE TLAXIACO

    CLAVE: 20DIT0004L

    MOMBRE: MISAEL MENDOZA ORTIZ

    Cesar Ortiz Cruz

    CARRERA: ING. CIVIL

    GRUPO: 4BC

    ASIGNATURA: mtodo numricos

    CATEDRATICO: ING. Lucia Snchez Vzquez

    Trabajo: ejercicios en matlab

    Ciclo escolar: febrero-julio 2015

    Tlaxiaco, Oaxaca a 01 de marzo del 2015.

  • Pgina | 2

    EJERCICIOS DE INTEGRALES RESUELTOS EN MATLAB.

    1.- Ejercicio (2x^3-5x^2-3x+4) dx

    >> syms x

    >> f=2*x^3-5*x^2-3*x+4;

    >> F=int(f)

    F =

    x^4/2 - (5*x^3)/3 - (3*x^2)/2 + 4*x

    2.- Ejercicio (4x^2/x^3+8) dx

    >> syms x

    >> f=4*x^2/sqrt(x^3+8);

    >> F=int(f)

    F =

    (8*(x^3 + 8)^(1/2))/3

    3.- ejercicio 2

    +1

    4

    0

    >> syms x

    >> f=x^2/x+1;

    >> L=int(f,x,0,4)

    L =

    12

  • Pgina | 3

    EJERCICIOS DE DERIVADAS RESUELTOS EN MATLAB.

    1.- Ejercicio y=ax^3

    >> syms x a

    >> f=a*x^3;

    >> diff(f)

    ans =

    3*a*x^2

    2.- Ejercicio / =+^

    >> syms x a b c

    >> f=(a+b*x+c*x^2)/x;

    >> diff(f)

    ans =

    (b + 2*c*x)/x - (c*x^2 + b*x + a)/x^2

  • Pgina | 4

    EJERCICIOS DE LMITES RESUELTOS CON MATLAB.

    1.- Ejercicio lim

    4+5

    2+3

    >> syms x

    >> f=(4*x+5)/(2*x);

    >> a=limit(f,inf)

    a =

    2

    2.- Ejercicio lim

    2+32+^3

    2+5^2

    >> syms x h

    >> f=(x^2*h+3*x*h^2+h^3)/2*x*h+5*h^2;

    >> a=limit(f,h,0)

    a =

    0