Contents

Ejemplo1

Calcula caudal

g = 9.8; d = 2; th = pi/3; % Input
Dc = d/2*(1-cos(th));
Qnum = 2^(3/2)*Dc^(5/2)*sqrt(g)*(th-0.5*sin(2*th))^(3/2);
Qden = 8*sqrt(sin(th))*(1-cos(th))^(5/2);
Q = Qnum/Qden % m^3/s
Q =

    0.5725

Ejercicio 2

A = [ 4 -2 -10;2 10 -12;-4 -6 16];
B = [-10;32;-16];
X= A\B
X =

    2.0000
    4.0000
    1.0000

Ejercicio 4

A = [ 0 -1 -1;-6 -11 6;-6 -11 5];
[V,D] = eig(A)
V =

   -0.2285   -0.8018    0.7071
   -0.6232    0.5345    0.0000
   -0.7479    0.2673    0.7071


D =

   -6.0000         0         0
         0    1.0000         0
         0         0   -1.0000

Ejemplo plot

grafica del seno

x=0:0.1:2*pi;
y = sin(x);
plot (x,y)