Integrals
Graphing
Fourier
Coding Best Practice
Python
100

What is an integral, and why would it be useful in coding?

It can numerically sum things up and compounds.

100

What is one thing you should take into account when graphing?

Labeling the axes, accuracy, correct scaling.

100

Is y = cos(x) an even or an odd function?

Even.

100

What is the point of the main guard/function?

Allows you to control the execution of the code.

200

What might you use to determine the surface brightness of a galaxy?

An integral.

200

What are four libraries that can be useful to import?

Numpy, matplotlib, astropy, csv.

200

Explain the following index: dinosaurBones[8:300:22].

Read a list of 300 entries starting with the 9th, step through the list 22 entries at a time.

500

How do we estimate error in our integration methods?

Use Taylor’s expansion around the points.

500

How long does it take to compute 1e9 calculations?

20 minutes.

1000

What are three methods of integration we can use in computations?

Rectangular, Trapezoidal, Simpson’s.

1000

What type of functions can be used in the Fourier series?

Periodic functions.

M
e
n
u