Chapter 15 // Exercise 5
"Animate" (as in section 15.5) the series 1-1/3+1/5-1/7+1/9-1/11+.... It is known as Leibniz's series and converges to pi/4.
Github: https://github.com/l-paz91/principles-practice/blob/master/Chapter%2015/Exercise%205
This took me a while to wrap my head around and I'm still not entirely convinced at how the lambda expression works but whatever.
So pi/4 == 0.7853989 (not precisely but you have to stop somewhere)
The problem with this exercise is that each frame looks identical as it gets closer to pi/4. Probably not the best function to graph. Either that or I've completely miscalculated.
So pi/4 == 0.7853989 (not precisely but you have to stop somewhere)
The problem with this exercise is that each frame looks identical as it gets closer to pi/4. Probably not the best function to graph. Either that or I've completely miscalculated.
No comments:
Post a Comment