Question: Write a Matlab program that finds numerically the root (or the zero) of the expression below in the interval 0.0 S x S 5.0 exp(3x


Write a Matlab program that finds numerically the root (or the zero) of the expression below in the interval 0.0 S x S 5.0 exp(3x ln(x +1) atan where, V is the square root function, atan0 is the arctangent function, expo is the exponential function and ln0 is the natural logarithm function. Your program MUST perform the following tasks: l. Prompt the user to enter a positive integer number n, defined the range 2S n S15, and then verify if the number entered lies within the specifications. Your program must allow the user to reenter the number WITHOUT THE NEED to rerun the program. 2. The output of your program should be: (a) A plot displaying the function corresponding to the difference between the two sides of the above-defined expression. The x-axis must be defined in the range [0,5l and the curve must have 1000 evenly spaced points Label the x-axis and y-axis and add a title to the plot (b) Determine i) numerically the root or zero of the above-defined expression using the BISECTION METHOD (see details below) with a precision better than 10 where n is the number provided by the user, and ii the corresponding NUMBER of bisections. Both values MUUST be displayed inside the plot with an identifying text. (c) Determine numerically the root (or zero of the above-defined expression using the function feero( defined in Matlab. Display also the determined value in the same plot with an identifying text 3. Your program MUST also allow the user to START OVER as often he/she wishes, WITHOUT THE NEED to rerun the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
