Code:
g = @(x) 1/(1.2 + exp(0.5 * x)); ... Defining the given function g(x) in MATLAB
n=0; ... Initializing n to 0
x_n = 1; ... Initializing x0 to 1
x_n1 = g(1); ... Initializing x n+1 to g(x) (Here x n+1 is g(1) )
while(abs(x_n1 - x_n) > 10^-6) ... Using while to loop until
the given codition fails ( till x n+1 - x <= 10^-6)
n=n+1; ... Updating n as the loop progreses
x_n = x_n1; ... Updating x_n as x_n1 (x n+1) the loop
progreses
x_n1 = g(x_n); ... Updating x_n1 as g(x_n) (g(x n)) the loop
progreses
end
disp(n) ... Displaying the scalar value of n
disp(x_n1)
Code :
Output:
MATLAB 5. Given the recurrence formula In+1 = g(n), where g(x) = 1.2 + €0.52 repeat...
Given: F = mg where g = 9,8 N/kg (55 marks] 1. An experiment was done to see how the contact surface area affects the force of friction between a wooden block and a granite table. The contact surface area was changed by placing the block on its different sides. The force required to pull the block along at constant speed was measured with the spring-balance. Spring Scale 5cm m = 408 g 10cm 30cm 1.1 State a suitable hypothesis...
3 (b) The energy of a Bohr atom in the n-th excited state is given by the formula E--a2mc2 2,7, where α-e2/(4πέρ,10hc)-1 /137, m is the electron mass and e denotes the electron electric charge. i) Why is the total energy negative? Explain briefly your answer. ii) What is the radius of the electron in the n-th excited state in the Bohr atom? To answer that correctly follow the next steps Use Bohr's angular momentum quantization principle to obtain an...