Write a function in matlab that takes as input the number

Assignment Help Computer Engineering
Reference no: EM132200030

Question :

Write a function in Matlab that takes as input the number n and a symmetric tridiagonal matrix given as two vectors: n×1 vector v representing the main diagonal and (n-1)×1 vector w representing the upper diagonal.

Have this function output the Cholesky factor of the matrix as a vector for the main diagonal and a vector for the upper diagonal and output the number of flops and, separately, the number of square roots used as well. Use only basic programming.

(a) Write out or print out your function.

(b) Run the case with v =2*ones(10,1), w = -ones(9,1) and write out or print out all your results.

(c) Rune the case with v =2*ones(100,1), w =-ones(99,1) and write out or print out your results just for the number of flops and square roots used. How many times more flops are used than in the previous case?

Reference no: EM132200030

Questions Cloud

Publicly-traded competitor : An analyst gathered the following information about a private company and its publicly-traded competitor:
What is the new npv : What is the project's year 0 net cash flow? Year 1? Year 2? Year 3? What is the new NPV?
Write a function that takes as input a natural number : Write a function that takes as input a natural number, n, and that returns the square of its input by adding the first n odd numbers.
What is the terminal cash flow for equipment : Given that the firm's marginal corporate tax rate is 40%, what is the terminal cash flow for this equipment?
Write a function in matlab that takes as input the number : Write a function in Matlab that takes as input the number n and a symmetric tridiagonal matrix given as two vectors: n×1 vector v representing.
Project expected npv and standard deviation of npv : Should the base case analysis use the most likely NPV or expected NPV? Explain your answer.
Political viewpoint and give an outline of the organization : Research and Provide a top to bottom examination for Under Armor in Brazil from political viewpoint and give an outline of the organization
Projection for the firm operating cash flow : The firm has a marginal tax rate of 40%. What is the projection for the firm's operating cash flow for this replacement project?
Write a function that will reverse the order of values : Write a function that will reverse the order of values in a 20-element array of integers sent to it as an argument.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Define a class called odometer that will track fuel

Define a class called Odometer that will track fuel and mileage for an automotive vehicle. The class should have member variables to track the miles driven.

  What are the practical difficulties in implanting gz

We have shown that a real coefficient FIR transfer function H (z) with a symmetric impulse response has a linear phase response As a result the all pole.

  How do you save your entire home directory structure

How do you save your entire home directory structure, including the hidden files, in a separate file?

  Write a method called switch

Describe a program for which you would use the Array List class instead of arrays. Describe a program for which you would use arrays instead of the Array List.

  Why error message is seen at terminal in spite of having use

Explain why the error message is seen at the terminal in spite of having used the 2> symbol: $ cat bar ksh: cannot open foo: No such file or directory.

  Create two files on the computer named file-one and file-two

Create 2 files on the computer named file1 and file2. Set the permissions on file1 to "r w x r w _ r _ _"(spaces added for clarity).

  Write about article related to a threat

Write at least 500 words analyzing a subject you find in this article related to a threat to confidentiality, integrity, or availability of data.

  Compare the resulting postfix expression

For every postfix expression there exists a corresponding and uniquely express infix expression that evaluates to the same number. The converse is not true.

  Which may prove useful in helping to increase

For your convenience, I have attached a formatted MS Word file containing information on subject of price discrimination, and conditions under which price discrimination becomes unlawful.

  What is maximum bandwidth for a single isochronous device

The maximum payload of an isochronous data packet on the USB bus is 1023 bytes. Assuming that a device may send only one data packet per frame, what is the maximum bandwidth for a single isochronous device?

  Write code that will fill the array a with numbers typed

Write code that will fill the array a (declared below) with numbers typed in at the keyboard. The numbers will be input five per line.

  Describe the primary roles involved in jad sessions

Describe the primary roles involved in JAD sessions. What is the major contribution made by the person(s) fulfilling each role?

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