Write a function in matlab that takes as input the number

Assignment Help Computer Engineering
Reference no: EM132199257

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: EM132199257

Questions Cloud

The belated lab tests case study : This unit’s exercise continues the “Belated Lab Tests” case study that we started in Unit 2.
Establish shanghai-hong kong stock connect : What is the purpose and goals of China government to establish Shanghai-Hong Kong Stock Connect
Explain the steps the australian company like woolworth : Explain the steps the Australian company like Woolworth/Coles taken on how it distribute/circulate its financial/annual report to its shareholder?
What is the after tax cost of preferred stock : What is the after tax cost of preferred stock for my company if the flotation costs I will be charged are 5.5% of the par value?
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.
Write a function mirror that will receive one input vector : Write a function mirror that will receive one input vector consisting of y coordinates of data points.
Retained earnings for sartell golfing association : The cost of retained earnings for Sartell Golfing Association would be 16.64% if the firm just paid a $4.00 dividend, the stock price is currently $50.00
Write an array to a file and then using the function : Demonstrates these functions by using the arrayToFile function to write an array to a file, and then using the fileToArray function to read.
Riskiness of two capital budgeting projects : The following table summarizes the NPV & associated (NPV) probabilities for various outcomes of the two projects

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe an algorithm that computes the product xy

Describe an algorithm that computes the product XY using Strassen's algorithm as a subroutine, i.e., use it as a black-box without modifying it.

  Define esp and the security services it provides

Distinguish between two modes of IP Sec. Define All and the security services it provides. Define ESP and the security services it provides.

  Expalain a programming language is machine independent

What does it mean that a programming language is strongly typed.

  What is project scope

What is project scope? Why is it important to define project scope clearly?

  In what way are jsp documents the opposite of servlets

In what way are JSP documents the opposite of servlets? In what language is the code in an ASP.NET document usually written?

  Create logic for a program that performs arithmetic function

Create the logic for a program that performs arithmetic functions. Design the program to contain two numeric variables, and prompt the user for values.

  How many and which numbers matched your lottery numbers

Print out the users guess in the order given by the user and in numeric order. Print out the random numbers you generated in the order.

  How is the data used to build a recommendation system

What are recommender systems, how are they developed, and how is the data used to build a recommendation system obtained?

  Implement data structure to store how often each word occurs

Implement a data structure to store how often each word occurs in a document, which is one of the most important statistics to gather about web pages.

  Analyze the use of gestures in ipads

Evaluate the features end users liked and disliked, and speculate about the reasons for their responses. Provide your overall likes and dislikes of the iPad usability and its features.

  Describe the design for a small web site

Develop a 5-6 page Word document that describes the design for a small Web site that meets the following specifications.

  Explain the difference between a weak and strong entity set

Explain the difference between a weak and a strong entity set. Define the concept of aggregation. Give two examples of where this concept is useful.

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