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

  The smallest difference between two random numbers

What is the smallest difference between two random numbers? Does the random number generator ever produce a number a second time?

  List as many ways as possible to interconnect three computer

List as many ways as possible to interconnect the three computers so that they could operate on one local area network.

  Could a shortage of paid code checkers mean there might

Because OpebSSL is open source, could a shortage of paid code checkers mean there might be more errors like Heartbleed? Why?

  What are the differences between two standards

One recent change in web design is the shift in standards from HTML to XHTML. Describe how a web designer defines a page as "XHTML" as opposed to "HTML" and find two different types of XHTML standards. What are the differences between these two st..

  Prepare a function declaration and a function definition

Write a function declaration and a function definition for a function that takes one argument of type double.

  Add the code to control the loop

Add the code to control the loop. You may use either a while loop or a do...while loop.

  Identify the real-time constraints the research assumes

Identify the security problems or concerns the paper addresses. Identify the real-time constraints the research assumes.

  How will prices of digital calls struck at hundared compare

Suppose two smiles have the same implied volatility at 100. One smile is downwards sloping and the other one is upwards sloping. How will the prices of digital calls struck at 100 compare?

  Verilog model of positive-edge-triggered 4-bit ring counter

Write a Verilog model of a positive-edge-triggered 4-bit Ring Counter. Choose one of the two types of ring counter described in the linked Wikipedia article to model: either the Straight Ring (Overbeck) Counter, or the Twisted Ring (Johnson) Count..

  Define what situations are appropriate for hard disks

define what situations are appropriate for Tape. Explain why.define what situations are appropriate for hard disks. Explain why.

  Explain how a dfs can be used to look for cycles in a graph

question 1choose one of the exercised from the award winning book computer science unplugged. record a creative

  Discuss how many bits will be used for the subnet id

How many possible hosts are there on each subnet, Discuss How many bits will be used for the subnet id

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