What can you say about the robustness of your algorithm

Assignment Help Engineering Mathematics
Reference no: EM131083315

• Please read the Guidelines for Assignments first.

• Submit a one-page PDF report to Canvas and upload you Matlab scripts (as m-files). Do not use any other file formats.

• Keep in mind that Canvas discussions are open forums.

• Acknowledge any collaborations and assistance from colleagues, TAs, instructors etc. Computing the matrix exponential

Recall from calculus that the exponential of a real number x has the Taylor series expansion

exp(A) = 1 +x+x21/2! + x31/3! + x41/4!+.....

Let A be an 7/ x n matrix. The exponential of A is defined as

exp(A) = 1 +A +A21/2! + A31/3! + A41/4!+.....

where I is the n x n identity matrix. Matrix exponentials are useful in a number of problems in computational mathematics, including the solution of systems of differential equations.

Note: the exponential of a matrix is not equal to the exponential of its entries. For example:

325_exp.png

A simple algorithm for computing (an approximation to) the matrix exponential involves summing the first k terms of the infinite series (1). Your goal in this assignment to investigate the accuracy, efficiency and robustness of this algorithm. You will be testing on a particular matrix A which is contained in the file CA5matrix.mat. Download this file from Canvas and load it into Matlab using the following command:

1. load('CA3matrix.mat');

This loads the matrix as a 1000 x 1000 array A.

(a) Let k = 50 and k = 150. Run your algorithm to get the output, which you should call expAk. Plot the result using the following commands:

1. imagesc (real (expAk) ) ;

2 colormap gray

(b) Run your algorithm for k = 10, 20, 30, ... ,150 and use the tic and toc commands (recall the in-class demo TicToe.m) to plot the computational time versus k. How does the computational time appear to depend on k? Does this agree with what you would expect from counting the number of flops in your algorithm? Explain.

(c) Matlab has a built-in function for computing the matrix exponential exp(A):

1 expA = expm(A);

Using this, compute the error of your algorithm:

1 err = norm(epr - eprk);

Note: if you don't know What a norm is, don't worry. It's just a way of measuring the error.

Now plot the error against 1: for the same range as in part (b) (you might want to use a log scale for the y-axis). How does the error behave? "What can you say about the accuracy of your algorithm?

What can you say about the robustness of your algorithm?

Reference no: EM131083315

Questions Cloud

Provide sufficient appropriate audit evidence : Identify one substantive audit procedure for each of the account balances above that will provide sufficient appropriate audit evidence regarding the accuracy of that account balance
Privacy of individually identifiable health information : Privacy Rule, which protects the privacy of individually identifiable health information; the Security Rule, which sets national standards for the security of electronic Protected Health Information(ePHI);
Describes discrete-time smoothing filter as impulse response : For a particular wide sense stationary input process Xn, the output process Yn is a wide sense stationary random sequence, with µY = 0 and autocorrelation function
Olap and data mining toolsets : Mention some valid criteria that might be used to evaluate "OLAP and Data Mining toolsets" and then summarise at least two major vendors product sets against that criteria.
What can you say about the robustness of your algorithm : Now plot the error against 1: for the same range as in part (b) (you might want to use a log scale for the y-axis). How does the error behave? "What can you say about the accuracy of your algorithm? What can you say about the robustness of your alg..
Shipping charges for online orders : Shipping charges for online orders from orinoco.com are based on the value of the order and the shipping weight. Shipping is free for orders with a value of $100 and up. Orders less than $100 incur shipping charges as follows:
The autocorrelation function of the output : (a) What is the expected value of the output µV? (b) What is the autocorrelation function of the output RV [n]?
Identification of possible interventions or action plan : Identification of possible interventions or action plan, Determining success of previous interventions from the literature and Design of own group-level intervention or action plan- Realistic and value for money
Calculate the solubility product constant for ticl : Calculate the solubility product constant for TICL.

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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