Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ANSWER ONLY IN PYTHON LANGUAGE PLEASE. Just answer the highlighted part. Problem 1. (20%) Write a program and use it to compute the Harmonic sum,

ANSWER ONLY IN PYTHON LANGUAGE PLEASE.

Just answer the highlighted part.

image text in transcribed

Problem 1. (20\%) Write a program and use it to compute the Harmonic sum, k=1Nk1, using single precision (i.e., float), for N=10n, with n=1,2,3,,8, (or higher). Repeat the computations, but use the double precision. Plot the partial sums on the graph in terms of N values. Mathematically, i.e., when using exact arithmetic, this sum is known to diverge as N tends to infinity, i.e., the sum can be made arbitrarily large by taking N sufficiently large. Explain the observed behavior of the numerically computed sums. You can use the calculus books, e.g. Stewart Calculus, Cengage 2015 or internet to determine the asymptotic behaviour of the harmonic series and to help you to interpret the results of computations (always cite your sources in the assignment report). Similarly compute the sum k=1N3k1, (in single and double precision) and report your findings. Plot the partial sums on the graph in terms of N values. Mathematically this sum is known to converge as N tends to infinity. Use the internet or calculus books to compute the sum analytically for a fixed N and find its limit when N

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_2

Step: 3

blur-text-image_3

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

Intelligent Information And Database Systems 12th Asian Conference ACIIDS 2020 Phuket Thailand March 23 26 2020 Proceedings

Authors: Pawel Sitek ,Marcin Pietranik ,Marek Krotkiewicz ,Chutimet Srinilta

1st Edition

9811533792, 978-9811533792

More Books

Students also viewed these Databases questions

Question

Describe the origin and use of cause-and-effect diagrams.

Answered: 1 week ago

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago