Now, just before you start downvoting this question let me explain something, I'm pretty young and trying to learn python. I don't have any resources at all in school to learn this kind of math.
I am doing an exercise which says this:
Write a function called myPi that will return an approximation of PI (3.14159...). Use the Leibniz approximation. Located here: http://en.wikipedia.org/wiki/Leibniz_formula_for_%CF%80
So, they show how to calculate it like this: http://upload.wikimedia.org/math/9/e/8/9e804b8a1a11e442be93fed1d52205a9.png
I have no idea how to calculate this in python. I mean, I don't even know how to calculate it normally since how would I calculate something that goes on infinite?
Also, another question is. Do I really need such advanced math to write programs later? Many of my friends learned to program while they were 12/13 and they had no problems. So is advanced math that important? Since I doubt my friends even knew how to calculate the area of a circle when they were learning.
π/4, which you then solve forπ- aruisdante