How do you calculate pi? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How do you calculate pi?

I thought it would be fun to find the digits of pi, but I don’t know how.

28th Jul 2022, 12:20 AM
Dait1
 Dait1 - avatar
1 Antwort
0
Well, I think there are some built in functions for that. In any case in maths we have series for such approximations. Google "Wallis's Product". It would be a bit tricky explaining it here. You can translate that equation into code.
8th Aug 2022, 8:38 PM
Bonsai
Bonsai - avatar