Professional Documents
Culture Documents
initial6
guesses for the interest rate of 0.01 and 0.3 and a stop- 5.18 For fluid flow in pipes, friction is described by a di-
ping criterion of 0.00005. The formula relating present mensionless number, the Fanning friction factor f. The Fan-
-1.0 ´ 10
Tabla I. factor
Resultados de las iteraciones
worth P, annual payments A, number of years n, and interest ning
-1.2 ´ 106
xl
friction
xu
is dependent on a number of parameters
xr ea
rate i is related to the300.000000
200.000000 size of the267.8145695364
pipe and the fluid, which can
i(1 + n all be represented
267.8145695364 by another
300.000000 dimensionless
268.3318065838 25.321quantity,
% the
A=P I. i)PROBLEMA
Reynolds
267.8145695364 number Re.
268.3318065838A formula that
268.3281572933 predicts given
0.193f % Re is
(1 + i)n − 1 268.3281572933 268.3318065838 268.3281572999 0.001 %
the von Karman equation:
5.15figura
La ManyP.513b
fields ofmuestra
engineering una require accurate population
viga uniforme que
1
soporta
estimates.una carga distribuida
For example, que aumenta
transportation linealmente.
engineers √ =I se
might find En la tabla 4 log 10 Re f − 0.4
muestran los resultados de aplicar el
La ecuación para la curva elástica resultante es: método de fla falsa posición a la ecuación (2.2). Con
it necessary to determine separately the population growth
Typical
un error values
relativo for the Reynolds
aproximado de: ea =number
0.001% for turbulent flow
podemos
trends of a citywand 0 adjacent suburb. Thepopulation of the
y= −x5 + 2L2 x3 − L4 x (1.1) decir are
que10,000
la raiz tose 500,000
encuentra en x = 268.3281572999
and for the Fanning friction factor are
r
urban area is120EILdeclining with time according to Resultado. El punto a de deflexión máxima se to solve
−ku t
0.001 to 0.01. Develop function that uses bisection
P (t) = P e + P encuentra en x r = 268.3281572999cm y tiene un valor
de: for f given a user-supplied value of Re between 2,500 and
Utilice el u método u,max u,min
de la falsa posición para determinar
el punto
while the de suburban
deflexión population
máxima (es decir, el as
is growing, valor
in de x
donde dy/dx = 0). Luego sustituya este valor en la (1.1) 2.5(−x5r + 2(600)2 x3r − (600)4 xr )
para determinar el valor Pdes,max
la deflexión máxima. Utilice y=
Ps (t) = 120(50000)(30000)(600)
1 + [Ps,max
los siguientes valores de los − 1]e−ks t L = 600cm,
/P0parámetros: a
2 4 = −0.51519cm. (2.3)
E= 50000kN/cm
where Pu,max, ku,, PIs,max
= 30000cm
, P0, and kys =
w0empirically
= 2.5kN/cm.derived pa-
x
rameters. Determine the time and corresponding values of q
Pu(t)II.
and DESARROLLO
Ps(t) when the suburbs are 20%
Y RESULTADOS larger than the city. III. CÓDIGO DE MATLAB
The parameter values are Pu,max = 80,000, ku = 0.05/yr,
Q
Pu,min
De = 110,000
acuerdo people, Plas,max
al enunciado, = 320,000
ecuación people,
que hay = El programa se compone de dos partes, el programa
que P0 principal
10,000 and ks = 0.09/yr. To obtain your solutions, FIGURE comienza con la definición de las variables xl ,
resolver es people,
la siguiente: xu y xr y terminaP5.17
con la linea xrn. El segundo programa
use (a) graphical, and (b) false-position methods. comienza con la linea function y=f(x), tal programa tiene
dy w0
−5x4 + 6L2 x2 − L4 = 0
= (2.1) el nombre de archivo f.m
dx 120EIL
220/09/17 05:45 PM C:\Users\Jos-RH\Dropbox\...\metfalspos.m 1 of 1
xrv = xl;
while (1)
xr =xu-f(xu)*(xl-xu)/(f(xl)-f(xu));
T = table(xl,xu,xr,e)
xrn = xr; %xr x-nueva
fl = f(xl);
fr = f(xr);
if fl*fr < 0, xu=xr; e = 100*abs((xrn-xrv)/xrn);
elseif fl*fr > 0, xl=xr; e = 100*abs((xrn-xrv)/xrn) ;
else e=0;
end
xrv=xr;%xv x-vieja
if e <= er, break, end
end
format long 05:45 PM
20/09/17 C:\Users\Jos-RH\Dropbox\Documento...\f.m 1 of 1
xrn
function y = f(x)
y = -5*power(x,4)/power(600,2)+6*power(x,2)-power(600,2) ;
end
∗
josueramirezhdz@gmail.com [2] Steven C. Chapra, Raymond P. Canale, Métodos
[1] Steven C. Chapra, Applied Numerical Methods with numéricos para ingenieros (Mc Graw Hill, México, 2006).
MATLAB for Engineers and Scientists (Mc Graw Hill,
New York USA, 2012).