Test a program for summing

Assignment Help Programming Languages
Reference no: EM13307160

You are to implement and test a program for summing 1/x as x runs over all approximately eight million (23 fraction bits) single precision floating point numbers in the interval [1, 2). You are to do this on a server, PC (or Mac) of your choice. You are first asked to predetermine estimates of your implementation's computation time (architecture and compiler dependant), result accuracy (algorithm and round-off dependant), and result value (real valued sum estimate). Specifically:

a.       Discuss the computational environment for your tests, including the compiler, operating system, machine MHz and cycle times for appropriate instructions and whether pipelining affects your execution time.

b.      Predetermine an estimate of the time utilizing single precision for the variables for all computations from any documentation you can find from the hardware manufacturer and/or compiler and system provider.

c.   Predetermine a rough estimate of the exact sum (hint: how many terms are being added and how large is an "average term").

d.       Predetermine an estimate of the accuracy. Single precision computation should be done in round to nearest mode as provided by standard C implementations.  By accuracy of the sum we mean the difference between the rounded sum of rounded values compared to the exact sum of exact values.

e. Give the measured running time and the computed result for your implementation. Compare the results with your estimates of running time and approximate sum. Compute the sum in double precision and single precision and compare to give a reasonable value for the accuracy of the single precision sum. Compare your result with another student's results that might have performed the sum in a different order. Can you explain the size of the approximation error?

Reference no: EM13307160

Questions Cloud

Regardless of the value of the input k : Suppose the DES F function mapped every 32-bit input R, regardless of the value of  the input K,
Calculate the net acceleration of the man : The man completely inhales and jumps into the deep end of a pool with a depth of 9 feet. Calculate the net acceleration of the man with his breath completely inhaled while totally submerged in the water
Determine the principle strains at a point on the surface : A rod is subjected to a tensile load of 25k and has a diameter or 2in, determine the principle strains at a point on the surface of the rod
Determine what kind of claim you want to make : Construct either a position or proposal argument (see "Argument" power point) based on one of the online topics listed in "online issues" or one related to online issues.
Test a program for summing : You are to implement and test a program for summing 1/x as x runs over all approximately eight million (23 fraction bits) single precision floating point numbers in the interval [1, 2). You are to do this on a server, PC (or Mac) of your choice..
What is the speed of the sled right before the team jumps : At the start of a race, a four-man bobsled team pushes their sled as fast as they can along a 50 m flat starting stretch. What is the speed of the sled right before the team jumps on the sled
Calculate the flow rate from the lake and into the aquifer : A geological fault truncates the aquifer at a distance "L" upstream from the river. The hydraulic conductivity of the area between the fault and the river is 50 ft / day and hydraulic conductivity between the lake and the fault is 100 ft / day.
Calculate the buoyant force of the water acting on the man : The man completely exhales and jumps into the deep end of a pool with a depth of 9 feet. Calculate the buoyant force of the water acting on the man with his breath completely exhaled
Identities of peers in the range : I shall create a new question for you to post up your answer so you can earn the points you deserve for helping me out.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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