Created
January 27, 2015 04:23
-
-
Save pqcfox/db6ea4c62b3c9296419d to your computer and use it in GitHub Desktop.
An exercise in my Number Theory class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import numpy | |
| a = 2*math.pi | |
| b = 4*math.pi | |
| step = (b - a)/8 | |
| for x in numpy.arange(a, b, step): | |
| print("({0}, {1})".format(x, math.cos(x))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment