Solve the system by writing an octave or matlab code

Assignment Help Other Engineering
Reference no: EM131678367 , Length: 4

APPLIED LINEAR ALGEBRA ASSIGNMENT

QUESTION 1 -

(a) 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

(b) What do the following Matlab/Octave statements mean?

(i) 1 + 1 5

(ii) 1 + [1  5]

(iii) 1   5'

(iv) [1  5']

(c) Given the following vectors                 

a = [ 2    4     5 ],

b = [ 6    2    2 ],

Calculate -

(i) a.*b,

(ii) a. /b,

(iii) a. ^b,

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

(i) [2  4  6  8  10]

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

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

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

QUESTION 2 -

(a) Suppose we have R1000,00 saved in the bank, with interest compounded at the rate of 9% per year. Write a Matlab/Octave code to determine how much your bank balance will be after one year.

(b) Given the following system of equations

3x + 2y - z = 10

-x + 3y + 2z = 5

x - y - z  = -1

(i) Write Matlab/Octave code to solve the above system of equations.

(ii) Write the Matlab/Octave code to calculate the residual to the above system of equations.

(c) Provide definitions for the following

(i) Overdetermined system

(ii) Underdetermined system

 (iii) Conditioned system

(d) A formula for the population of the USA is

P(t) = P0 - ae-0.02(t-1800)

where t is the date in years. Some actual data is given below

Date      Population

1800       5308000

1820       9638000

1840       17069000

1870       38558000

1900       750995000

1930       122775000

1950       150697000

Write a Matlab/Octave code that finds values of P0 and a, and that gives a best fit of the formula to the data. Then plot the graph showing the function P(t) against time t as a continuous line, together with the given data points as discrete points.

QUESTION 3 -

(a) Write an Octave/Matlab code that evaluates

13 dv/1+ v1.8, where

v is taken to be the 0 3 after the integration

(b) Calculate the average slope of the function in (a) above in the interval a < x < b, defined

as f(b) - f(a)/b-a, where a = 1 and b = 3

(c) Use Octave to draw the following graphs

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

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

(d) 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 contour map.

QUESTION 4 -

(a) 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.

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

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

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

(b) Consider the system of equations                                                                                    

3x1 + 4x2 + 5x3 = 4,

6x1 + 2x2 + 3x3 = 7,

x1 + 3x2 + 3x3 =  1

(i) Solve the system by writing an Octave/Matlab code using the Gauss-Seidal iterative method.

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

Reference no: EM131678367

Questions Cloud

How a committee on ethics within a hospital changes practice : How are those changes implemented and incorporated into new practices? How are those changes communicated to patients and families?
Discuss the same situation as the chiquita executives : Would you have made the same decisions if you had been placed in the same situation as the Chiquita executives
Describe the life-cycle of a frontal cyclone : 1. Describe the life-cycle of a frontal cyclone (also called "wave cyclone" or "midlatitude cyclone"). Draw a diagram if that helps.
Discuss lifestyle more in accord with the requirements : Discuss steps you could take to make your lifestyle more in accord with the requirements of the principle of utility
Solve the system by writing an octave or matlab code : APM1513 APPLIED LINEAR ALGEBRA ASSIGNMENT. Solve the system by writing an Octave/Matlab code using the Gauss-Seidal iterative method
Important to the overall health of the oceans world-wide : If you could only save ONE of the following ecosystems: estuaries or coral reefsWHICH one is more important to the overall health of the oceans world-wide
How new opportunities may be seen by a firm market : Explain how new opportunities may be seen by defining a firm's markets more precisely. Illustrate for a situation where you feel there is an opportunity-namely.
Why is it important to plan for stakeholder engagement : Why is it important to plan for stakeholder engagement? Give some examples of how you have planned in advance how to work with difficult stakeholders.
Coast during a severe storm : A substantial rise in sea level along a coast during a severe storm is called a storm what?

Reviews

len1678367

10/13/2017 3:34:06 AM

Use of a non-programmable pocket calculator is permissible. Closed book examination. This examination question paper remains the property of the University of South Africa and may not be removed from the examination venue. This paper consists of 4 pages. Answer all questions. Please confirm the assignment with your lowest price and Need all the attachments to be done.

Write a Review

Other Engineering Questions & Answers

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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