0

Can anybody tell about the summation program in python?

(1/1+√2) +(1/√2+√3)........(1/√624+√625) How to make this program???

12th May 2019, 11:01 AM
Hafeez Kakar
Hafeez Kakar - avatar
1 Odpowiedź
+ 1
Hi. Have you tried some? I would probably start using import numpy as np sum = 0 for i in range(1, 625): sum += 1/np.sqrt(i) + np.sqrt(i + 1) print (sum)
12th May 2019, 11:29 AM
ChrA
ChrA - avatar