In numerical integration and in many other cases we need a

Assignment Help Applications of MATLAB
Reference no: EM13380169

In numerical integration and in many other cases, we need a polynomial named Legendre polynomial. Often the zeros i.e. the roots of the polynomial are also needed. The sixth order Legendre polynomial is given by the following equation:

P6(x) = 693x6 - 945x4 + 315x2 - 15

There are six roots of the P6(x) = 0 equation. Note that all the zeros of Legendre polynomial have magnitude less than one i.e. the roots are between -1 and 1. Also, note that for a polynomial of even order, the zeros are symmetrical about the origin. Therefore, for each root x, -x is also a root. If you find the three roots between 0 and 1, the other roots are negative of them.

Now 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.

Reference no: EM13380169

Questions Cloud

Your boss calls you into his office and he is extremely : your boss calls you into his office and he is extremely angry. he was embarrassed at a meeting because he put forward a
Option 1 for students enrolled in civil construction : option 1 for students enrolled in civil construction mechanical coastal or environmental engineering.a circular shaft
The figure below is an example profile of a man instead of : the figure below is an example profile of a man. instead of the profile you can also use a unique different to every
Consider the following three sets of equationsa write all : consider the following three sets of equations.a write all of the above sets of equations in the matrix format and
In numerical integration and in many other cases we need a : in numerical integration and in many other cases we need a polynomial named legendre polynomial. often the zeros i.e.
1 five reactors linked by pipes are shown in the following : 1. five reactors linked by pipes are shown in the following figure. the rate of mass flow through each pipe is computed
1 social changeshow have the recent changes in information : 1. social changeshow have the recent changes in information technology affected society? are these changes for the
Write a program that calculates an employees wage for a : write a program that calculates an employees wage for a week. an employees wage is calculated as followsi if the number
1 the subset-sum problem is defined as follows given a set : 1. the subset-sum problem is defined as follows given a set b of n positive integers and an integer k can you find a

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  1 let pnx be the lagrange interpolating polynomial of

1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  Doctors record heart sound signals from patients in

doctors record heart sound signals from patients in hospitals in an environment in which many background noises occur.

  Develop your own matlab function for the fixed-point method

develop your own matlab function for the fixed-point method. use the approximate relative error as your stopping

  Exercises1make a program that will graph the following

exercises1.make a program that will graph the following parabolas where x ranges from -10 to 10 in increments of 0.1.

  1 five reactors linked by pipes are shown in the following

1. five reactors linked by pipes are shown in the following figure. the rate of mass flow through each pipe is computed

  Write the algorithm and draw the flowchart for each problem

write the algorithm and draw the flowchart for each problem. the report could also contain the outputs of your program

  Project is on load frequency control using fpid tuned using

project is on load frequency control using fpid tuned using ga and pso algorithm and the system is a two area

  Anbspdesign and explain a computer-based simulation model

anbspdesign and explain a computer-based simulation model which you will use to estimate the probability that among 25

  Matrix1

matrix1

  Problem 1 consider a steel cantilever beam with length of l

problem 1. consider a steel cantilever beam with length of l 18 ft under a distributed random dead load. furthermore

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