functions: how to create a function that can easily and repeatedly carry out a useful set of calculations that depend on a few input parameters. The def statement mark the start of a function, and one or more return statements return the computed value to the caller.
Lecture notes:
bmi_test tests bmi in my_library.
cosm_sinn evaluates integral(0 <= theta <= pi/2) cos^m(theta) sin^n(theta) dtheta
Evaluate the double factorial function:
My library contains a collection of user functions:
poly_dif computes polynomial coefficients of derivative:
temperature_test tests f_to_c and c_to_f in my_library.
tomorrow() reports tomorrow's date. It illustrates the use of several functions that cooperate in a calculation.
Triangular number:
Assignment #1 due on Friday, 17 January: