Is partial pivoting needed

Assignment Help Simulation in MATLAB
Reference no: EM131068223

Linear systems that arise in many applications can become quite large. It is often necessary to exploit any structure and /or sparsity in the matrices to reduce the computation burden. We will consider the one-dimensional Poisson equation: -y"(t) = f(t) on [0, 1], with y(0) = y(1) = 0.

Such problems are frequently very hard to handle because it is often not possible to express y(t) in terms of elementary functions (as is done in undergraduate courses on ODE). Numerical methods are employed in order to approximate y(t) at discrete points inside the interval [a, b]. This approach will leads to a linear system of equations.

The approach we consider begins by subdividing the interval [a, b] into n + 1 equal subintervals, each of length b-a/n+1: t0 = a, t1 = a + h, t2 = a + 2h, ··· , tn = a + nh, tn+1 = b; The points ti = a + ih are called grid points, and the value h = b-a/n+1 is called the step size. Smaller step sizes generally produce better approximations to the derivatives, so better accuracy requires smaller step size, and hence larger number of grid points.

Let yi = y(ti) and fi = f(ti), and show that by using the finite difference method, we can compute approximations to yi by solving the linear system Ty = h2f, where

808_Figure.png

(a) Prove that the matrix T has an LU factorization with L(i, i) = 1 and L(I + 1, i) = -i/i+1, U(i, i) = i+1/i and U(i, i + 1) = -1.

(b) Is partial pivoting needed?

(c) Write a Matlab function T = poissonmat(n) which the n x n matrix T for given n.

(d) Write a Matlab function y = poissonsolve(f) which, given a vector f of length n, computes the solution y of Ty = h2f.

(e) Let f(t) = sin πt, then the right hand side fi = sin π(ti). Experiment with various values of n, say n = 10, 100, 500, 1000. Fill the following table:

n

h

absolute error

residual

CPU time

10

 

 

 

 

100

 

 

 

 

500

 

 

 

 

1000

 

 

 

 

Reference no: EM131068223

Questions Cloud

How does a swot analysis align with strategic planning : Name a company that you consider one of the most creative or innovative. What do you think makes it creative or innovative? Do you think its creativity or innovation can be replicated? How?
Describe the population and sampling strategy : Describe the population and sampling strategy. The sampling strategy should provide a tractable sample while offering the chance to collect enough data.
Elective office in the united kingdom : Which political party did Tony Blair use to contest for elective office in the United Kingdom?
Effective academic writing : This course develops the skills used in writing applied research papers for a university-level audience. Students will write position papers, persuasive essays, and case study analyses.
Is partial pivoting needed : Prove that the matrix T has an LU factorization with L(i, i) = 1 and L(I + 1, i) = -i/i+1, U(i, i) = i+1/i and U(i, i + 1) = -1. Is partial pivoting needed
The student compares the very different films : After reading the student essay, "All in the Family," think about how the student compares the very different films The Godfather and My Big Fat Greek Wedding.
Determining the type of government : Explain any type of government you know in the world history today as long as government types are concerned.
A concept of managerial communication : You are required to post items to the course online discussion forum that add value to the topic that is covered that week linking theory to real world examples. You will have two open discussion postings during the semester (Check syllabus calend..
Compare the current state to best practice model : Development of a methodology for applying the best practice model for the acquisition of ICT to the particular case project that was specified in the Team QA Plan.

Reviews

Write a Review

Simulation in MATLAB Questions & Answers

  The hodgkin-huxley model for the action potential

MATLAB Project - The Hodgkin-Huxley model for the action potential, Develop a cellular model for a neuron based on the Hodgkin-Huxley equations for the action potential

  Produce a simulation of the mechanism motion

Write a code to produce a simulation of the mechanism motion using the equation written in red in the file.

  Create and use at least one loop in function

Make a main m-file that you use to run and call your function file. Give it a unique name. Make sure and include your name, your section, and date at the top of the m-file. Create and use at least one loop (for/while/midpoint), Create and use at l..

  How dc motors are physically constructed

How DC motors are physically constructed. How to test DC motors to assess performance. How to use Excel and MATLAB.

  Fuzzy system for forecasting electricity price

The task is formulated as a time-series prediction problem for business application, and the goal is to model the behaviour of underlying dynamics of the electricity market. In principle, the merits of such a fuzzy forecasting system

  Use the matlab program to simulate an open loop system

For this laboratory you will use the MATLAB program to simulate an open loop system. You are to determine the system response to a step and sinusoidal input. Each student will be assigned a specific system Your system transfer function is

  Generator and degradations - acquisition

Plot the autocorrelation function and show that other than peak there are only three values in the autocorrelation. What are the values of the autocorrelation function?

  Calculate the stress intensity factor

Use the three-parameter zone finite element method or the boundary collocation method to calculate the stress intensity factor K, at the crack tip for the plate

  Project is on load frequency control using fpid

Project is on load frequency control using FPID tuned using GA and PSO algorithm and the system is a two area system.

  Write the specification of load mover

Write the specification of LOAD MOVER detailed of the whole design and precise for automatic control section and divide the design into various modules and Is the kernel required if yes which one?

  Develop and simulate in matlab model

Develop and simulate in matlab model of trash to steamp lant in Baltimore

  Develop a fuzzy forecasting system using matlab

Develop a fuzzy forecasting system using Matlab Toolbox. The system performs a forecasting task for power marketing price. The data used in this assignment is from the real world and it has been split up into two parts.

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