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

  Practical colpitts rf oscillator circuit with multisim

The purpose of this lab is to construct a practical Colpitts RF Oscillator circuit with MultiSIM. The frequency of output waveforms will be measured using a virtual oscilloscope. Students will gain an appreciation for the effect biasing resistors ..

  What time will be required for a similar flood to pass

If a flood wave passes through the model channel in 15 min., what time will be required for a similar flood to pass through the corresponding length of the river?

  List three types of vibration sensors

What is an open collector input why is it used on some sensors. List three types of vibration sensors and discuss how they operate. What effect will temperature change have on a strain gauge mounted to steel and describe the multiple ways this can b..

  Determine the length ratios and shear stress ratio

Determine the required model sediment sizes, the length ratios, the water discharge per unit width ratio, and the shear stress ratio.

  What are the advantages of having a hybrid configuration

What are the advantages of having a hybrid configuration passenger building and what are the four considerations that should be considered

  What you need to do to continue to maintain the attack

It isn't an availability attack if you just do it once! Write a paragraph describing what you need to do to continue to maintain the attack on the Access Point? You should mention the MAC and the IV.

  Asymptotic approximation and the actual magnitude response

For a system with three poles at 4, what is the maximum difference between the asymptotic approximation and the actual magnitude response?

  Summarize the fly a kit slides

The fly a kit slides are attached. Make sure the write-up is in your own words (do not just cut and paste). Focus on the importance of SAP for industrial engineers assignme.

  What structures of the architecture would have to change

Suppose that a version of the A-7E software were to be developed for installation on a flight trainer version of the aircraft. This aircraft would carry.

  Draw the top view repetitive unit cell

Draw the top view repetitive unit cell (RUC) for 4/2/1 weave counting along the x-direction. Would this weave pattern remain woven without loosing tows?

  Matlab and show the frequency matches in numerical

The cart has been pushed 1 m and then released where the mass of the cart is 10 kg and spring constant k=500 N/m. 1) Find the acceleration.

  Design and simulate an eight-bit adder or subtractor

Design and simulate an 8-bit adder/subtractor using a hierarchical Verilog structural description. Your design should accept 2 twos complement 8-bit inputs (x and y) and generate an output.

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