Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use matlab language thanks Background: The amount of two unknown substances s and s2 over time t is described by Si = 5e-0.5t S2

Please use matlab language thanks

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Background: The amount of two unknown substances s and s2 over time t is described by Si = 5e-0.5t S2 = 1 + 2 sin(0.1nt) As a check S = 1.8394 and s2 = 2.1756 when t = 2. (a) Use the false-position method to determine the time when s = 1. Use initial guesses of t = 0 and tu = 20 seconds and a precision of 0.001. Also, provide the number of iterations taken. Provide your answers to 4 decimal places as printed by MATLAB. The time required for S1=1 [4dp] = [2 marks] Number of iterations = [2 marks] (b) Use fzero() to determine the times for when s2 = 2. There should be two solutions over the range of Osts 20. Provide your answers to 4 decimal places as printed by MATLAB. Lower time value for when S2=2 [4dp] = [2 marks] Higher time value for when S2=2 [4dp] = [2 marks] (c) Consider the following initial guesses of t, and tu. tL = [0, 10, 15, 30, 35, 50, 55] tU = [5, 15, 20, 35, 40, 55, 60] Write a MATLAB code to determine the intersection points between the su and s2 equations using the above guesses and the following conditions: 1. A for loop must be used. 2. Bisection method must be used with a precision of 0.01. 3. Use vectors to store the root and iteration values determined for each bracket pair. 4. Determine the t that requires the least number of iterations to converge within the precision of the solution. Provide the number of iterations. Also, determine the corresponding root (time) value. Provide your answers to 4 decimal places as printed by MATLAB. The t value that requires the least number of iterations = [2 marks] Number of iterations for the above t value = [2 marks] Corresponding root (time) value [4dp] = [2 marks] Copy and paste your MATLAB code into the textbox of the next question. Copy and paste your MATLAB code for part (c) in the previous question in the plain text box below. You can also upload your m-file below (optional). [6 marks] LE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions