Closed remram44 closed 11 years ago
Sorry not accepting pull requests for replacing my code. If you have suggestions for adding or removing problems, feel free to contribute.
Computing Pi is my suggestion, as discussed there. You are simply getting the value of Pi coded in the math library.
Yes, that is why #5.
http://rosettacode.org/wiki/Pi#Python
heres the magical formula
I don't understand a whole lot of it because I still need to touch base with a lot of concepts. But thanks for the link!
Alright here we go: https://github.com/thekarangoel/Projects/blob/master/CONTRIBUTING.md
If you'd like to contribute, please follow the steps, and I'd be happy to merge the changes!
Won't do.
These are your problems, and you are free to not solve them. Still, my point of view is that you completely missed the point of this particular one.
Initially I did, until people pointed it out. But I do plan on re-solving the problem with a more mechanical approach. If you do not want to open the request, I'll close this issue. Please open a new merge request when you want to.
Using
math.atan()
is of course cheating; it is using the answer to compute it. Ifmath
is allowed, we might as well do4*atan(1)
or just simplymath.pi
.This can certainly be optimized, if anyone cares.