Apm1513 applied linear algebra assignment how do you find


APPLIED LINEAR ALGEBRA ASSIGNMENT

QUESTION 1 -

1. (a) How would you write the matrix451_figure.pngin 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 cohinnis 2 and 3.

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

(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 the Matlab/Octave code that solves for z and plot z in the interval -8 < x < 8, -8 < y < 8

Hint: (Plot using the meshgnd 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 years. The actual data (in 1000s) for every decade from 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 -

1. On Matlab/Octave command line, assign values to the variables a and b, for example a = 3, and b = 5, and write statements to find the sum, difference, product, and quotient of a and b.

2. What do the following Matlab/Octave statements do?

(a) 1 + 1  5

(b) 1+ [1 · 5]

(c) 1  5'

(d) [1  5]'

3. Given the following vectors

a = [2   4   5],

b = [6   2   2],

Calcuate-

 (a) a. *b,

(b) a. /b,

(c) a. ^b,

4. Given the vector [1 2 3 4 5] Write Matlab/Octave statements that use different vector array operations to produce the following vectors:

(a) [2  4  6  8  10]

(b) [½  1  3/2   2  5/2]

(c) [1   ½  1/3  ¼   1/5]

(d) [1  1/22  1/32  1/42   1/52]  

QUESTION 3 -

1. What does the following Matlab/Octave command do?

(a) plot(x, y, '- -')

(b) plot(x, y, '0')

(c) plot(x, sin(x), x, cos(x), 'om- -')

2. Write a Matlab/Octave code to evaluate the following series n=1Un in which Un is not known explicitly but is given in terms of a recurrence relation. You should stop the summation when |Un| < 10-8. Un+1 = Un2, with U1 = 0.5.

3. (a) How do you find the dominant eigenvalues and eigenvectors of the following matrix, using both eig and power method. Also give the power method code

458_figure1.png

(b) Also give the power method code

(c) How can one diagonalize matrix A?

QUESTION 4 -

1. The Milko Dairy can receive no more than 100,000 litres of milk per day. Due to a long-term contract, at least 10,000 litres of each day's milk must be used for chase manufacture. The balance can be used for bottled milk butter or yoghurt. At today's market prices, the contribution to profit and fixed cost of each litre of milk, when put to these uses, is as follows

Butter                   R2 50

Cheese                 R2 00

Bottled Milk           R1 50

Yoghurt                R3.00

The butter equipment can handle up to 50,000 litres of milk per day, and the milk equipment up to 40,000 litres. Part of the yoghurt and cheese processing uses the same equipment and this imposes a limit on the combined usage of 50,000 litres per day. The butter and cheese packagng equipment can handle a cornbmed usage of at most 55,000 litres per year.

What mix of products should the company produce so as to maximize profit?

2. Find the maximum value as well as the point at which the maximum occurs of

L = 2x1 + 3x2 + 4X3 + 3x4

subject to the constraints.          

15x1 + 2x2 + 15X3 + x4 ≤ 30

1x1 + 2x2 + 1x3 + 3x4 ≤ 45

5x1 + 4x2 + 7x3 + 2x4 ≤ 65

6x1 + 3x2 + 7x3 + 4x4 ≤ 60

8x1 + 4x2 + 8x3 + 2x4 ≤ 70

x1, x2, x3, x4 ≥ 0

Request for Solution File

Ask an Expert for Answer!!
Other Engineering: Apm1513 applied linear algebra assignment how do you find
Reference No:- TGS02473723

Expected delivery within 24 Hours