Documentos de Académico
Documentos de Profesional
Documentos de Cultura
CATEDRA:
METODOS NUMERICOS
CATEDRATICO:
ING. HENRRY OCHOA LEON
ALUMNA:
VASQUEZ RIVAS MAYELI SHERLY
2021 – VERANO
SOLUCIÓN :
function momentoflector
x=linspace(0,12,100);
y1=((-50*x.^3)./9+265*x).*(0<=x & x<=3);
y2=(-50*x.^2+415*x-150).*(3<x & x<=6);
y3=(-185*x+1650).*(6<x & x<=10);
y4=(100*x-1200).*(10<x & x<=12);
f=y1+y2+y3+y4;
plot(x,f)
grid on
800
700
600
500
400
300
200
100
-100
-200
0 2 4 6 8 10 12
Por lo tanto el momento cero se encuentra en la función 3 .porque cumple con las
restricciones (6<x & x<=10).
[ C ] ceq [ D ] deq
Kp1= a b
∗(RT ) ∆ n
[ A ]eq [ B ] eq
[ D ]eeq
Kp2= a C
∗(RT )∆ n
[ A ] eq [ C ] eq
Para la reacción 1.
Equilibrio A B C D
Moles inic. 2 1 0 0
Moles que x x - -
reaccionan
Moles que se - - x x
obtinen
Concentración 2-x 3-x x X
en equilibrio
x∗x
2.6=
( 2−x )∗(1−x)
x2
2.6=
2−3 x+ x 2
Para la reacción 2.
Equilibrio A C D
Moles inic. 2 X x
Moles que Y Y -
reaccionan
Moles que se - - 2Y+2x
obtinen
Concentración en 2-Y X-Y 2Y+2x
equilibrio
2( x + y )
3.1=
( 2−Y )∗( X−Y )
2 X +2 Y
3.1=
2 X−2 Y −YX+Y 2
#METODOS NUMERICOS
#ECUACION 1
f1=function(x,y) 5.2-7.8*x+1.6*x^2
#ECUACION 2
f2=function(x,y) 4.2*X-4.2*Y-3.1*X*Y+3.1*Y^2
x=1
y=1
i=0
#ERROR
E=1
#TOLERANCIA
tol=1*10^-4
cat("-----------------------------------------------------------------------------------------------------------\n")
cat("-----------------------------------------------------------------------------------------------------------\n")
cat(formatC( c((i), (x),(y)), digits=5, width = -15, format = "f", flag = " "), "\n")
while(E>T){
i=i+1
x1=x-f1(x,y)/df1x(x,y)
y1=y-f2(x1,y)/df2y(x1,y)
E=((x1-x)^2+(y1-y)^2)^0.5
x=x1
y=y1
cat(formatC( c((i),(x),(y),(E)), digits=5, width = -15, format = "f", flag = " "), "\n")
cat("---------------------------------------------------------------------------\n")
cat("---------------------------------------------------------------------------\n")
RESPUESTA
--------------------
Iteracion x y Error
-----------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
RESPUESTA