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

  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

  Build a simulation using newtons laws of motion

Build a new and different simulation of your own using Newtons laws of motion and Show the code and describe how it works

  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?

  Design the automatic control section using statecharts

Aim of this project is to design an embedded system which can move loads from one place to another. The system can be operated manually, automatically and wirelessly.

  Need an expert who can model a drill in simulink

Need an expert who can model a drill in Simulink. Working model of a drill needing for an improvment to behave more realistically as a drill to drill through plastic block.

  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.

  Number of packets received with time

Let x be the number of packets received with time -

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Build a matlab based graphical user interface

Build a Matlab based graphical user interface (GUI) that operates in conjunction with a base Matlab/ Simulink simulation program. Any base simulation is considered acceptable.

  Simulate the standardised sum of independent

Simulate the standardised sum of independent and identically distributed variates - Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

  Plot the original periodic square wave

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

  Use matlab to plot the function

Plot the original periodic square wave on the same graph. Comment on the difference between the original periodic square wave and its truncated Fourier series presentation.

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