Question: You ll use the series equation from Section 1 to approximate ln 2 . ln 2 nX k = 1 1 2 k k =

Youll use the series equation from Section 1 to approximate ln 2.
ln 2
nX
k=1
1
2k k =1
2+1
8+1
24+1
64+1
160+1
384+1
896+(7)
To do: In your copy of nummy.c youll see a function called my_ln2(). Convert the mathematical
series above into C within that function. Youll be using double type variables for everything except the
for loops index, which is an int. Note that unlike the other series, this functions Pn
k=1 ranges from 1 to
n. Remember to adjust the for loop accordingly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!