Write a function in matlab that takes as input the number n

Assignment Help Computer Engineering
Reference no: EM132199128

Question :

Write a function in Matlab that takes as input the number n, a sparse matrix given as r, c, v, m, an n-component column vector b, and a tolerance tol.

Directly use this coordinate list form to output the approximate solution of Jacobi method solving Ax = b using the zero vector for initial guess and iterated until the 2-norm (do not use Matlab's ‘norm' command) of the residual falls below tol (while loop); the number of iterations used; the number of flops used for calculating the approximation; and the 2-norm of the final residual vector.

(a) Write out or print out your function.

(b) Create the r, c, v, m for the 10×10 tridiagonal matrix with 2's down the main diagonal and -1's in the upper and lower diagonals. Take b the vector of 1's and tol = 10-4 and write down your results for the number of iterations, the 2-norm of the residual vector, and the number of flops used. What about for tol = 10-8.

Reference no: EM132199128

Questions Cloud

Write out or print out your function : Write a function in Matlab that takes as input s and a number x and outputs the floating point number of x using s-digit rounding.
Write a function in matlab that takes as input the number n : Write a function in Matlab that takes as input the number n, the size of matrices and vectors; m, the number of nonzero elements of a sparse matrix;
Calculate the gross pay for each employee : ACC508 Informatics and Financial Applications Assignment Task, University of the Sunshine Coast, Australia. Calculate the gross pay for each employee
Test your function with three different integer arrays : Write a function, named avg, that receives an array of integer values and returns the average of those values in that array.
Write a function in matlab that takes as input the number n : Write a function in Matlab that takes as input the number n, a sparse matrix given as r, c, v, m, an n-component column vector b, and a tolerance tol.
Write a function to remove duplicate entries in linked list : Write a function to remove duplicate entries in a linked list. For example, given the list (5,2,2,5,3,9,2) as input, your function should change the list.
How often the police should monitor the tickets : For the NJ Light Rail problem, assume the price of a ticket is $5.00, and that a passenger has to decide whether to buy a ticket or try to get a free ride.
Discuss the macroeconomic impacts of slow wage growth : Wage growth has slowed considerably in many advanced economies since the Global Financial Crisis. Compare and contrast, and explain, the likely causes.
What are some arguments for inflation targeting like given : Some observers argue that the mandate of the Federal Reserve Bank should be changed to prioritize the control of inflation over other goals.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How the open call can be used to emulate the function

Specify how the open call can be used to emulate the function performed by the shell's > and >> symbols.

  Control the functions of motion detection camera device

Project Title: A Specialized Simple RISC Machine (SSRC) To Control the Functions of Motion Detection Camera Device. One sentence Description of this new automated device: My RISC machine automates a motion detection camera by automaticall triggering..

  Identify the key qualifications needed for a position

Identify the key qualifications needed for a position in this field and explain how this course has helped you to understand those expected qualifications.

  Do legal taxpayers have a social responsibility to fund

Outline the argument on both sides of the issue: do legal taxpayers have a social responsibility to fund education for children of illegal immigrants?

  Page replacement algorithm

Anomaly reflects the fact that, for some page replacement algorithm the page fault rate may increase the as the number of allocated frames increases.

  Discuss the emerging internet of things environment

Describe the role of cybersecurity within the emerging Internet of Things environment

  Concept of aloha

A large population of the ALOHA users manage to produce the 50 requests/sec., involving both the originals and retransmissions. Time is slotted in units of 40 msec. State the chance of success on the first attempt?

  Build a login screen which will be passed

Build a login screen which will be passed an id and password. If the user fails to login in three tries, have them authentic based on their personal information

  Determinants of site success such as trusera

Determinants of site success such as Trusera (invitation only), DailyStrength, PatientsLikeMe, and Caring.com rest with a triad of: blog ratings, site ratings, and community forum ratings.

  Create a class named pizza that stores information

Create a class named Pizza that stores information for a single pizza. Cost should be printed out with the $ and two decimal places.

  Comapre the advantages and disadvantages of using javascript

comapre the advantages and disadvantages of using JavaScript on the client-side. Where JavaScript is blocked or disabled, does that amount to a potentially significant business loss.

  How ethical are major internet companies

Research and Write a Business Report that Addresses the Question: How Ethical are Major Internet Companies? Write a Business report with the following report.

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