Write out or print out your function

Assignment Help Computer Engineering
Reference no: EM132199132

Write a function in Matlab that takes as input s and a number x and outputs the floating point number of x using s-digit rounding.

You may use Matlab's "round" command to help you. Use only basic programming.

(a) Write out or print out your function

(b) Choose 2 random vectors of length 10, using the "rand" command, and compute the result of the dot product using your function under 4-digit rounding and compute the exact Matlab result and compute the absolute error. Do the same thing 4 more times and turn in the results.

Reference no: EM132199132

Questions Cloud

Write a function to merge two linked lists : Write a function to merge two linked lists. The input lists have their elements in sorted order, from lowest to highest.
Define the first two parameters so that they are modifiable : Stop reading when either the input number is the sentinel value -99 or when 20 (valid) numbers have been read into the array.
Company for violating antitrust laws : In 1974, the U.S. attorney general filed suit against which telecom company for violating antitrust laws?
Discuss the difficulties that can occur if a partnership : Discuss the difficulties that can occur if a partnership with the family is not developed when the child becomes a part of the learning environment.
Write out or print out your function : Write a function in Matlab that takes as input s and a number x and outputs the floating point number of x using s-digit rounding.
Write a function in matlab that takes as input the number n : Write a function in Matlab that takes as input the number n, the size of matrices and vectors; m, the number of nonzero elements of a sparse matrix;
Calculate the gross pay for each employee : ACC508 Informatics and Financial Applications Assignment Task, University of the Sunshine Coast, Australia. Calculate the gross pay for each employee
Test your function with three different integer arrays : Write a function, named avg, that receives an array of integer values and returns the average of those values in that array.
Write a function in matlab that takes as input the number n : Write a function in Matlab that takes as input the number n, a sparse matrix given as r, c, v, m, an n-component column vector b, and a tolerance tol.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Creating a package delivery system

CS-224: Object Oriented Programming & Design Methodologies Assignment. For this assignment, you will be creating a package delivery system. You need to think in terms of objects. The first object is the delivery truck that can store 50 liters of pe..

  Realize the two-input equivalence function

Realize the two-input EQUIVALENCE function using NAND Gates, NOR Gates.

  Provide the results of your coding process

Provide the results of your coding process, using a diagram to present your findings. Your diagram could be in a matrix format (table) or a concept chart.

  Develop the logic for a program that accepts a players name

Develop the logic for a program that accepts a player's name, age and nine-hole score as input. Display the player's name and score on each of the nine holes.

  Direct mapped cache

A direct mapped cache comprises of the 4 blocks of 16 words per block. Main memory consists of 32K blocks of 16 words each.

  Find and display the account balances

This assessment item is designed to test your understanding of arrays/arraylists, objects, classes, methods,sorting and searching.

  Developing a new customer order entry system

State the rule that is applied to place an entity in first normal form. Revise this data model so that it is in first normal form.

  Find the index locations of multiple matches

Find the index locations of multiple matches to a string using binary search (Java).

  How various bits are needed for the program counter

How various bits are needed for the program counter and the instruction register?

  Write a program to find the number of intersecting pairs

Write a program to find the number of intersecting pairs among a set of N random horizontal and vertical lines, each line generated with two random integer.

  Write a function called fare that computes the bus fare

Using Matlab, write a function called fare that computes the bus fare one must pay in a given city based on the distance travelled.

  Examine the ajax model in relation to good software design

examine the AJAX model in relation to good software design, and the essence of the quoted question. Will AJAX further promote the development of Web based software, or is it just another fad.

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