Question: Solve using False Position method CW1: Solving non-linear equations Temperature rise on a semi-infinite slab could be estimated by the following equation 2 Qle_- erfc(s)
Solve using False Position method
CW1: Solving non-linear equations Temperature rise on a semi-infinite slab could be estimated by the following equation 2 Qle_- erfc(s) T (x, t)--x TTS where s--, complementary error function erfc(s)- dt, heat flux Q 200J/m2s, conductivity k 0.015J/m/s/o C, and diffusivity a 2.5 x 10-5 m2/s. We would like to find the position on the slab in which the temperature rises 30 C in two minutes. You are asked to write a single script code in MATLAB, using one of the following iterative root-finding methods, to obtain the answer with accuracy of 1e - 6. 4at Bisection Method, using initial guess of x 0.001 and xr -1. Secant Method, using initial guess of x1-1-0.001 and x,-0.002. False Position Method, using initial guess ofx, 0.001 and Xr-1. Newton-Raphson Method, using initial guess of ,-0.001. 2. 4 You need to find the solution x as well as the number of iterations required (these must be printed when user runs the code). Your code must not ask for any input from user. CW1: Solving non-linear equations Temperature rise on a semi-infinite slab could be estimated by the following equation 2 Qle_- erfc(s) T (x, t)--x TTS where s--, complementary error function erfc(s)- dt, heat flux Q 200J/m2s, conductivity k 0.015J/m/s/o C, and diffusivity a 2.5 x 10-5 m2/s. We would like to find the position on the slab in which the temperature rises 30 C in two minutes. You are asked to write a single script code in MATLAB, using one of the following iterative root-finding methods, to obtain the answer with accuracy of 1e - 6. 4at Bisection Method, using initial guess of x 0.001 and xr -1. Secant Method, using initial guess of x1-1-0.001 and x,-0.002. False Position Method, using initial guess ofx, 0.001 and Xr-1. Newton-Raphson Method, using initial guess of ,-0.001. 2. 4 You need to find the solution x as well as the number of iterations required (these must be printed when user runs the code). Your code must not ask for any input from user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
