Getting Set Up with Matplotlib

Develop the code for the dynamic pressure experienced by a rocket during launch.

We'll cover the following

Here are the two libraries that you will be using:

import matplotlib.pyplot as plt
import numpy as np

Numpy will be used below to generate ranges of values for this tutorial in 0.5-second increments and perform exponential calculations. The built-in range() function used in FizzBuzz could very easily be used in Numpy’s place to generate a range of numbers. The built-in range() only accepts integer increments, which means you would lose the ability to increment by numbers less than 1. So, let’s use Numpy’s arange(), which accepts decimal increments.

Writing functions

You will fully write the three functions we developed in the Science & Physics Discussion section below:

Get hands-on with 1400+ tech skills courses.