Determine sequences of floating point mathematical operation


Assignment

Demonstrate the Limitations in Precision of Floating Point Numbers. For this assignment, you will use a programming language of your choice to demonstrate how a lack of precision in floating point numbers can lead to incorrect results. Do the following:

• Determine two sequences of floating point mathematical operations that should yield the same result (e.g., 1.0 + 1.0 = 2.0 and 3.0 - 1.0 = 2.0).

• In a programming language of your choice, perform those operations and store the results in two variables.

• Check the variables for equivalence. If the computer determines they are equal, repeat the process with different (more complex) sequences of operations until you have two variables that should be equal in value, but the computer determines that they are not due to truncation or round-off.

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Determine sequences of floating point mathematical operation
Reference No:- TGS02990338

Now Priced at $50 (50% Discount)

Recommended (96%)

Rated (4.8/5)

2015 ©TutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.