Write a matlab function that computes precision

Assignment Help Computer Engineering
Reference no: EM132206067

A) Write a MATLAB function that computes precision for a given reference value.

A prototype of the function is given here:

function [precision] = PrecisionVersusBase( base ) % returns precision

The algorithm for computing the precision is given in the pseudo code below

precision = base

WHILE( base + precision > base )

precision = precision / 2

precision = precision * 2

B)

Using the function from part A, compute precision for a reference value equal to 1.0 to 1e-30, reducing it by a factor of 10 each step. ( base = base/10.0; )

Write out the results of each case to a Comma Separated Values (CSV) file*. Write out the precision, and the base, along with the ratio of precision and base, in other words writeout base, precision and precision/base. Document these results in your report.

First, plot the base versus precision and then plot base versus the ratio. Due to the geometricnature in the progression of base, base/10 at each step, a log scale might be helpful.

The MATLAB function loglog is the same as plot, except each axis (x and y) will use a log scale.

Reference no: EM132206067

Questions Cloud

Compute the volume of three different spheres : Write a MATLAB function that computes the volume of 3 different spheres, sphere 1, sphere 2, and sphere 3, and writes them to a txt file Svol.txt.
Compute the solution to the system of equations : The requirement of b as a column vector seems a bit excessive as both row and column vectors are just 1D arrays as far as Matlab is concerned.
Access the data type is called autonumber : In access the data type is called "AutoNumber" in SQLServer it is called an identity field, Oracle is it called a "sequence". What do they do?
Write a matlab program in which you can enter : Write a Matlab program in which you can enter the studentID's of students and then the marks obtained by eac student out of 100.
Write a matlab function that computes precision : Write out the precision, and the base, along with the ratio of precision and base, in other words writeout base, precision and precision/base.
Investigate the botnet attack modules : create many new business opportunities in smart home care, industry automation, and critical infrastructure protection - Evaluation of Botnet Attacks
Write a method that accepts a minimum integer : Write a method that accepts a minimum integer and a maximum and prints a square line of increasing numbers.
Return the range of values in an array of integers : Write a method called range that returns the range of values in an array of integers.
Write a method called reminder that takes an integer : Write method distance to calculate the distance between two points (x1, y1) and (x2, y2). All numbers and return values should be of type double.

Reviews

Write a Review

Computer Engineering Questions & Answers

  What are the forbidden lateness and initial collision vector

What are the forbidden lateness and the initial collision vector? Draw the state transition diagram for scheduling the pipeline.

  Why do you think disks so seldom have multiple disk arm

Discussion. Some high-end disks in the 1980s had multiple disk arm assemblies per disk enclosure in order to allow them to achieve higher performance.

  Why is spread spectrum transmission used

Why is spread spectrum transmission used. Compare and contrast two common methods used for spread spectrum transmission.

  Describe authentication and authorization

What is a monitor? List types of monitors and the information they provide. Describe authentication and authorization. Which depends on the other?

  Related to super and sub class

Write down a class definition for subclass LawSchool which consists of: A (default) constructor which invokes the superclass constructor along with the value 3 (law school is typically a three year program).

  Validate and correct the errors in the web page file

While it may sound simple to validate your HTML code, it is often times difficult to understand the error messages validation services return. Using the W3C Markup Validation Service, validate and correct the errors in the web page file.

  Develop a risk management policy

Credit card information was compromised by an attack that infiltrated the network through a vulnerable wireless connection within the organization.

  Design a nested menus interface for a check-in and checkout

Design a nested menus interface for a check-in and checkout hotel reservation system that can be used internationally. Use numbers to select a menu item.

  Comprise the code to calculate the time in the program

use BubbleSort and MergeSort and save them as bubble and merge. Test the running times of your implementations on randomly(!) generated integer sequences of size n = 10, 100, 1,000, and 10,000.

  Determine minimum and maximum access times for memory system

A memory system has the following characteristics access times: cache, 100 ns; main memory, 1000 ns; TLB, 40 ns; secondary storage, 3000 ns.

  Creating robust interaction and dialogue

The Discussion Board (DB) is part of the core of online learning. Classroom discussion in an online environment requires the active participation of students.

  Show the mortgage payment amount

Write down the program as a procedural C++ program and using a loan amount of $200,000, a term of 30 years, and an interest rate of 5.75%. Insert comments in the program to document the program.

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