Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 The infinite series f(n) = ??=1(1/4) converges to the value of T*/90 as n approaches infinity. You are provided with two files: one

image text in transcribed

Problem 2 The infinite series f(n) = ??=1(1/4) converges to the value of T*/90 as n approaches infinity. You are provided with two files: one of them contains 10,000 16-digit (or double) precision values, and the other contains the same values but now in 8-digit (or single) precision. Note that the values are needed for computing the given summation for n = 10,000, but they have been randomly shuffled. a) Write a Python script to compute the summation of the 10,000 shuffled values using single precision floating point numbers b) Repeat the computations in a) but first sort the values in ascending order c) Repeat a) and b) except now using the double precision floating point values d) Compute the true percent relative errors of the four different results against the theoretical true value for the infinite series e) Repeat a, b, c, d, but now using in-built sum () function and investigate the results f) What type of numerical error does this question illustrate? What is a viable remedy (or what are viable remedies) to this type of numerical error? Problem 2 The infinite series f(n) = ??=1(1/4) converges to the value of T*/90 as n approaches infinity. You are provided with two files: one of them contains 10,000 16-digit (or double) precision values, and the other contains the same values but now in 8-digit (or single) precision. Note that the values are needed for computing the given summation for n = 10,000, but they have been randomly shuffled. a) Write a Python script to compute the summation of the 10,000 shuffled values using single precision floating point numbers b) Repeat the computations in a) but first sort the values in ascending order c) Repeat a) and b) except now using the double precision floating point values d) Compute the true percent relative errors of the four different results against the theoretical true value for the infinite series e) Repeat a, b, c, d, but now using in-built sum () function and investigate the results f) What type of numerical error does this question illustrate? What is a viable remedy (or what are viable remedies) to this type of numerical error

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming The Perl DBI Database Programming With Perl

Authors: Tim Bunce, Alligator Descartes

1st Edition

1565926994, 978-1565926998

More Books

Students also viewed these Databases questions