Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Other Engineering Expert

SECOND PAPER APPLIED LINEAR ALGEBRA ASSIGNMENT

QUESTION 1 -

1. (a) How would you write the matrix2350_figure.png in MAtlab/Octave?

(b) Give the Matlab/Octave command to find the transpose of A.

(c) Give the command to find the entry of A in the second row and second column.

2. Set up any 3 x 3 matrix and call it A. Then write some Matlab/Octave command-line statements to perform the following operations.

(a) interchange columns 2 and 3

(b) add a fourth column (of 0 s)

(c) remove the second column

3. We can draw the Mexican hat using the following equation

z = sin(r)/r, where

r = √(x2+y2) + ε, and ε = 2.2204 x 10-16

Write a Matlab/Octave code that solves for z and plot z in the internal -8 < x < 8, -8 < y < 8.

Hint: Plot using the meshgrid function with the grid width of 0.5.

4. Write a Matlab/Octave code that draws a graph of the population of the United States from 1790 to 2000, using the (logistic) model

P(t) = 197273000/1 + e-0.03134(t-1913.25),

where t is the date in sears. The actual data (in 1000s) for every decade limn 1790 to 1950 is as follows:

Year

Data

1790

3929

1800

5308

1810

7240

1820

9638

1830

12866

1840

17069

1850

23192

1860

31443

1870

38558

1880

50156

1890

62948

1900

75995

1910

91972

1920

105711

1930

122775

1940

131669

1950

150697

Superimpose the data on the graph of P(t).

QUESTION 2 -

2. Suppose we have invested some money that thaws 10% interest per year, compounded annually. We want to know how long it will take for the investment to double. More specifically we want a statement of the account each year until the balance has doubled. Write a Matlab/Octave code that implements and solves this problem

The pseudocode for this problem is as follows

(a) Initialise balance year, interest rate

(b) Display headings

(c) Repeat

Update year and balance according to interest rate

Display year, balance,

Until balance exceeds twice initial balance

(d) Stop

2. The binomial coefficient is widely used in Mathematics and Statistics. It is defined as the number of ways of choosing r objects out, of n without regard to order and is given by

496_figure1.png

Write a Matlab/Octave code that computes the binomial coefficient when n = 10 and r = 3.

QUESTION 3 -

1. (a) Write an Octave/Matlab code that evaluates

13 1/(1 + v)1.8 dv, where v is taken to be the 0.3 after the integration.

(b) Calculate the average slope of a function in (a) above over an interval a < x < b defined as f(b) - f(a)/b-a, where a = 1 and b = 3.

2. Use Octave to draw the following graphs

(i) f(x) = x sin (x) , -3 ≤ x ≤ 8,

(ii) f(x)= cos (x2) , 0 ≤ x ≤ 5

3. Write an Octave/Matlab code that plots the following graph

Z = sin√(x2+y2)/√(x2+y2),

in the range -7 ≤ x ≤ 7, -11 ≤ y ≤ 11, with a contom map.

QUESTION 4 -

1. Consider the equation

AX =B

where XT = (x1  x2     , xn) and BT = (b1,   b2   bn) are 1 x n vectors, and A a n x n matrix

(a) Write Octave/Matlab commands that can be used to capture A and B into the computer memory.

(b) Write Octave/Matlab command(s) that replaces the ith column of A with B.

(c) Express the ratio B/A in Octave/Matlab using \ and /.

2. Consider the system of equations                                                                      

3x1 + 4x2 + 5x3 = 4

6x1 + 2x2 + 3x3 = 7

x1 + 3x2 + 3x3 = 1

(a) Solve the system by wilting an Octave/Matlab code using the Gauss-seidal iterative method.

(b) Find the exact solution by Gaussian elimination i.e., by Analytic means and by using either Octave or Matlab.

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M92487157

Have any Question?


Related Questions in Other Engineering

Question 1 define rock mechanics discuss the main

Question 1 . Define rock mechanics. Discuss the main objectives of the application of rock mechanics in mining. Question 2. Define stress. Draw a diagram and define the normal and shear stress by resolving the resultant ...

Introduction to engineering design assignment -

Introduction to Engineering Design Assignment - Drafting Question 1 - Field notes and traverse drawing may be an outdated form of keeping and presenting information on the position of features on a site. Modern electroni ...

Assignment -problem 1 - given is the lcc difference

Assignment - Problem 1 - Given is the LCC difference equation that represents some LTI system: y(n) - ¾y(n-1) - ¼y(n-2) = x(n) + x(n-1)   a) Find the impulse response of the system (solve the LCCDE). b) Draw a block diag ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

Assignment 11 what is the purpose of ore reserve and

ASSIGNMENT 1 1. What is the purpose of ore reserve and resource estimation? Why are resource and reserve estimates important to the mining industry? 2. What is meant by ore? What is meant by the term waste? How is the di ...

Engineering analysis homework -for every problem provide

Engineering Analysis Homework - For every problem, provide The MATLAB script/function files that solve the problems. Problem 1: Write a script that solves the problem. For (c), show results of the evaluation of every ind ...

1 online discussion forum - post your proposed topic and

1. Online Discussion forum - Post your proposed topic and chosen data set as well as a short plan for the project. This is required for approval of the topic. As discussed, students must select unique topics, therefore i ...

Question - show that the zero-point energy of a simple

Question - Show that the zero-point energy of a simple harmonic oscillator does not contribute to its entropy or heat capacity, but does contribute to its energy and Helmholtz function.

Conceptual design of forced-free-mixed convection

Conceptual Design of Forced-Free-Mixed Convection Experiment This assessment is to be completed individually. 1. Learning Outcomes: - Develop a basic ability to conceptually design an experimental apparatus - Use theory ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As