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

  Write a piece two values from the user

Write a piece two values from the user, the length of the of code that accepts output about how interested you in path and rating for the park.

  What problems are you possible to encounter

make two algorithms (one iterative and one recursive) to print the daily salary of a worker who, each day, is paid twice the previous day's salary (starting with one penny for the first day's work) for a 30 day period.

  What does that indicate and how do you fix it

Suppose you are in the process of drawing the DFDs, and you have found that one of your Level 1 DFD describing a process in level 0.

  Write a program that uses a filename as argument

Write a program that uses a filename as argument and checks each of the 12 permission bits. The program should display a message if the bit is set.

  Describe techniques for develope prototype of user interface

Building on your initial user interface (UI) design mock-up of the organization's program UI. Describe techniques for developing prototypes of user interfaces.

  Create a class that represents sales of sports equipment

A total sales function that returns the monetary amount of sales. Assume that each pair of skis is $800, each snowboard is $600, each tennis racquet is $400, and each baseball bat is $100.

  Question1-lu decomposition given a lower triangular matrix

question1-lu decomposition given a lower triangular matrix l write down a program to solve linear system lx b. count

  How many operations will be required when the input size is

How many operations will be required when the input size is increased from m to 2m (where m is a positive integer)?

  Repeat part a for in v shift rows transformation

Repeat Part a for In v Shift Rows transformation. Using results of Parts a and b, prove that the Shift Rows and In v Shift Rows transformations are inverses.

  Write a main function to call reverse and display the result

Write a function reverse that reverses the sequence of elements in a 1D array. Write a main function to call reverse and display the results.

  Create a program called producer-consumer

Your program will either use unix socket (-u) or shared memory (-s) depending on user input in the command line argument .

  Describe in detail the way in which the malware was utilized

Describe in detail the way in which the malware was utilized to steal data or gain privileged remote access to a computer or network.

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