Instructions: Work with a neighbor to answer the following questions, then we will discuss the activity as a class. To get started, download the class activity template file.
For each question, predict what will happen when the code is run. Then run the code and check whether your prediction was correct.
integrate()
and an anonymous function to find the area under the curve for the following functions:y = x^2 - x
for x in \([0, 1]\)y = sin(x) + cos(x)
for x in \([-\pi, \pi]\)y = exp(x)/x
for x in \([10, 20]\)