Homework Statement
I must solve this problem, please help me, which equations i should use?
Most of us have passed our finger through a 800C candle flame and know that if we limit exposure to about 0.25 s, we will not be burned. Why not? Show all the calculations that support your answer...
Homework Statement
An oil having a density of 833 kg/m^3 and a viscosity of 3.3*10^-3 Pa.s is pumped from an open tank to a pressurized tank held at 345 kPa gage. The oil is pumped from an inlet at the side of the open tank through a line of commercial steel pipe having an inside diameter of...
Homework Statement
For turbulent flow in a smooth, circular tube with a radius R, the velocity profile varies according to the following expression at a Reynolds number of about 10^5.
Vx= Vxmax * [(R-r)/R)]^(1/7)
where r is the radial distance from the center and Vmax the maximum...
I want to compute x within 0.1% relative error with Simpson method, these are my m-files. Which command i should add for this?
function simps(a, b, n)
%simps(a, b, n) approximates the integral of a function f(x) in the
%interval [a;b] by the composite simpson rule
%n is the number of...
Homework Statement
The relative velocity of two small spheres subjected to a constant force in a liquid is given by u = uo/f where f is the drag correction factor and u0 is the relative velocity of the spheres when they are far apart. The drag coefficient factor, f, is a function of (r/a)...
If I use err(iter), I have an infinite loop, so I use abs(fnnew).
These are my results:
iteration n relative approximate error
1 62.759758 8.349685
2 62.689966 8.470309
3 62.691698 0.002762
4 62.691697 0.000001
nnew =
62.6917
iter =
4
how can second iterations' relative...
I rearranged my m-file and i solved infinite loop problem but i think i have mistaken at calculating absolute relative approximate error at the end of each iteration, i think this command is wrong:
err(iter)=(abs((nnew-n2)/nnew))*100;
How can i fix this error calculation problem...
I try to solve this equation with secant method in MATLAB.
fn=40*n^1.5-875*n+35000
my initial guess is n1=60; n2=68; I want to find root and absolute relative approximate
error at the end of each iteration. I have an infinite loop. Can you help me repair my file?
This is my m-file...