Python assignments: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This page contains assignments for our Research Methods - Programming with Python short course. | This page contains assignments for our Research Methods - Programming with Python short course. | ||
== An assignment for very simple Python == | |||
Create a program called "gamma.py" that computes and prints the Gamma function of 3/2, and computes and prints the (square root of pi) divided by 2. | |||
Run and see that the program returns the same values for these two quantities (within the floating point precision of your computer). | |||
Submit your homework to the class upload site if you are enrolled for credit. |
Revision as of 07:44, 7 February 2013
This page contains assignments for our Research Methods - Programming with Python short course.
An assignment for very simple Python
Create a program called "gamma.py" that computes and prints the Gamma function of 3/2, and computes and prints the (square root of pi) divided by 2.
Run and see that the program returns the same values for these two quantities (within the floating point precision of your computer).
Submit your homework to the class upload site if you are enrolled for credit.