Loops
Calculate and display the reciprocals of the squares of all numbers from 1 to 100.
Display the plots of y = xk for values of k
1, 1.1, 1.2,... 2.0. All plots are on the same x-y axes.
Decisions
Create a function for the piecewise function described below:
| 0 for x <= 0 | |
|
|
x2 for 0 < x <= 5 |
| 25e-(x-5) for x > 5 |
Create a plot of this function for -10 <= x <= 20