Use matlab roots function to obtain the six roots

Assignment Help MATLAB Programming
Reference no: EM13314176

write a MATLAB program that does the following:

a) Plot the given function in MATLAB for x ranging from -1 to 1. Put a proper title of the plot, also label the axes appropriately.

b) Use MATLAB's roots function to obtain the six roots of the equation. Display the roots and plot them with different colors and symbols on the same chart where you plotted the function.

c) Write a MATLAB program segment that will implement the root finding algorithm by Newton-Raphson method. Newton-Raphson method needs one initial value to run each time. You program segment will be executed with different initial values that you get from d).

d) Use a loop in your program to execute the Newton-Raphson program segment for each initial value between -1 to 1 with an interval 0.1. Plot the initial values on the x-axis with the color that you used in b) to plot the root obtained from this initial value; these plots will be on the same chart. For example, if you start from 0.1 and obtain the first root that you plotted by using color red in b), then plot (0.1, 0) with color red.

e) In the plot, you will see one root is obtained from an initial value that is close to another root. Can you explain by observing the plot why that is happening.


Attachment:- Numerical-data-analysis-Assignment-.pdf

Reference no: EM13314176

Questions Cloud

Determine the increment of vertical stress in the soil : Constructing the foundation causes changes in the levels of vertical stress at all points in the soil. One such point lies at the centre of the footing plan, and is at a depth of 10 m. Determine the increment of vertical stress there.
Explain the filtrate required of kmno4 : When 25.0 mL of unknown was passed through a jones reductor, molybdate ion (MoO4^2-) was converted to Mo^3+. The filtrate required 16.43 mL of .01033 M KMnO4 to reach purple end point
To what maximum height above point of release does it rise : A block of mass 0.243 kg is placed on top of a light, vertical spring of force constant 4 825 N/m, To what maximum height above the point of release does it rise
What is the total head 5m below the river bed : Consider again the scenario above. Assume the water is static. Assume a datum at the water surface. a) What is the total head 5.0m below the river bed b) What is the pore water pressure at that level
Use matlab roots function to obtain the six roots : In the plot, you will see one root is obtained from an initial value that is close to another root. Can you explain by observing the plot why that is happening.
Define what the effect does the bulkiness of the base : what the effect does the bulkiness of the base have on the product composition in the E2 dehydrobromination of 2-bromoheptane
Find the magnitude and direction of the total field : The total electric field consists of the vector sum of two parts. One part has a magnitude of E1 = 1300 N/C, Find the magnitude and direction of the total field
What is effective vertical stress 12m below water surface : A river is 6 m deep. The riverbed material has a saturated unit weight of 19.5kN/m3. What is the effective vertical stress 12 m below the water surface
At what distance from the charge is net electric field zero : A 5.5 %u03BCC point charge is placed in an external uniform electric field that has a magnitude of 68000 N/C

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd