Write a code to calculate a value of I

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

APPLIED LINEAR ALGEBRA ASSIGNMENT

QUESTION 1 -

1. An amount of money A, invested over a period of n years with an annual interest rate r, grows by an amount A (1 + r)n. Calculate the final balances for investments of R750, R1000, R3000, R5000 and R11999 over 10 years with an interest rate of 9%.

2. Suppose vectors a and b are defined a S follows

a = [2 -1  5  0]

b = [3  2 -1  4]

Evaluate by hand the vector C in the following statements

(a) C = a - b,

(b) C = b + a, -3,

(c) C=2* a + a  ^b,

(d) C = b /a,       

(e) C = b a

3. Given the following algorithm, write an Octave/Matlab code of the algorithm

1 Initialize a

2 Initialize x to a/2

3 Repeat 6 times (Say)

Replace x by (x + a/x)/2

Display x

4 Stop

4. Decide which of the following numbers are not acceptable in Matlab/Octave, and state why

(a) 9.87

(b) 3.57*e2

(c) 3.57e2.1

(d) 33.57e-2

5. Write a program to calculate x, where

x = -b ± √(b2 - 4ac)/2a

and a = 2, b = -10, c = 12

QUESTION 2 -

1. A formula to find a numerical approximation to the second derivative of a function f (x) is

f''(x) = d2f/dx2 = f (x + h) - 2f (x) + f (x - h)/h2

with the approximation being better and better as h → 0 Write a function file deriv2 m that implements the formula. The inputs should be the function to be differentiated (remember the function handle construct @, the value of x, and the value of h) Use your code to estimate the second derivative of sin (x) at x = π/4 with h = 10-1.

2. Write the code to evaluate the following series n=1 un 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 = (un-1)2 + (un)2 with u1 = 0.5, u2 = 0.6

3. In the following, R can take any value between 5 and 6. Write a code to calculate a value of I for R = 5.00, 5.01, 5.02,   ,5.99 and 6 I is defined as

I = 30/R√(R2+15π2)

QUESTION 3 -

1. Define the 100 x 100 square matrix A and the column vector b by

Aij = Iij + 1/(i-j)2+1, bi = 1 + 2/i, 1 ≤ i, j ≤ 100

where Iij is the 100 x 100 identity matrix (i.e., 1 on the main diagonal and 0 everywhere else).

Write the code to solve Ax = b for x using both the Gauss-Seidel method and the A\b construct.

2. The Hilbert matrix is a square n x n matrix defined by

Hijn = 1/i + j - 1

Define bn to be a column vector of dimension n, and with each element 1. Construct bn and then solve write the code that solve for xn, Hnxn = bn.

3. Modify the power method so that it finds the smallest eigenvalue and corresponding eigenvector. Do this by evaluating

xn+1 = A-1xn

rather than xn+1 = Axn, When convergence occurs, it is to the eigenvector corresponding to the inverse of the smallest eigenvalue.

QUESTION 4 -

1. Write the code find the maximum value, as well as the point at which the maximum occurs, of

L= x1 + 2x2 + 3x3

subject to the constraints                           

x1 + x2 + 2x3 ≤ 8

3x1 + 3x2 + x3 ≤ 9

x1, x2, x3 ≥ 0

2. Write the code to find the minimum value, as well as the point at which the minimum occurs, of

L = -4x1 - 5x2 + 2x3

subject to the constraints                           

-x1 + 2x2 + 2x3 ≤ 10

2x1 + 4x2 + 5x3 ≤ 25

x1, x2, x3 ≥ 0

Reference no: EM131678316

Questions Cloud

Evaluate scenario for both the project and parent viewpoint : Hermosa Beach Components, Inc., of California exports 24,000 sets of low-density light bulbs per year to Argentina under an import license that expires.
Explain plan how this learning you will applied : Explain Plan how this learning you will applied. What is your opinion about learning experience? What is the value of this experience?
Mixed layer across the entire arctic ocean : Calculate the decrease in salinity of a 50 m deep mixed layer across the entire Arctic Ocean (14x106km2) expected during the summer as a result of melting.
Is the amount of damages assessable : LAW601 -TAXATION LAW
Write a code to calculate a value of I : APM1513 APPLIED LINEAR ALGEBRA ASSIGNMENT. In the following, R can take any value between 5 and 6. Write a code to calculate a value of I for R = 5.00
Describe the measures leaders took to prepare organization : prepare an analysis in which you address- Describe the measures leaders and organizational stakeholders took to prepare the organization for change.
Evaluate all domestic and foreign projects : Discount Rate. Hermosa Components uses a 15% discount rate to evaluate all domestic and foreign projects.
Daily effects of white privilege : Briefly summarize the article. Be sure to mention how the author illustrates the social construction of racism
Blowing from the north along the oregon coast : Predict the direction of Ekman transport of surface waters. Would you expect coastal upwelling or downwelling?

Reviews

len1678316

10/13/2017 3:14:32 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. 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