Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
[Raspberry Pi] Remote access doubts
35 голосов
20 ответовПлощадь и периметр круга
0 голосов
3 ответовWho codes on raspberry pi?
1 голос
2 ответовRaspberryPi
3 голосов
6 ответовhow do we input fraction in python?
0 голосов
4 ответовPlatinum on the π day!
26 голосов
12 ответовWhat are your suggestions about this
-2 голосов
5 ответовPython in electronics
0 голосов
2 ответовHow Do I do this
0 голосов
1 ответI'm trying to calculate the decimal places of pi with Ramanujan's formula. but with this code I'm getting the same output for all values of n, which it shouldn't.
from math import sqrt, factorial as f
sum=0
n=0
k=(2*sqrt(2)/9801)
while n<=100000:
sum=sum+((f(4*n))*(1103+(26390*n)))/(((f(n))**4)*(396**(4*n)))
y=1/(k*sum)
print('%.60f' % y)
n=n+1
where am I doing wrong?
2 голосов
4 ответовHelp me with my code!
2 голосов
5 ответовJava Calculator Help
0 голосов
3 ответовMachine learning
1 голос
1 ответАктуальное сегодня
Is the AI course worth the $49?
1 Votes
Comparing code coach solutions
3 Votes
General python
0 Votes
Where to use
0 Votes
Coding path
0 Votes
Automatation python
1 Votes
How to win bits
1 Votes