## CS2 Computational Thinking for Scientists - Lab 04In this lab, we will experiment with iterative Python programs for computing sums and products. We will also illustrate 3 different methods for computing Pi. Refer to class notes (lect09.pdf) for details. Also, refer to this 1-page writeup: computingPi.pdfIndividual functions and programs for implementing general sum and products, and for computing Pi are found below: - The general sums functions: gsum.py
- Euler, Leibniz, Wallis, and Monte Carlo: picomp.py
- GCD count: gcdcount.py
Report: This lab does not require a report.
Participation is necessary and sufficient.
The lab report (if required) is due 5pm, Friday Feb 6. |