Skip to content

Instantly share code, notes, and snippets.

@pqcfox
Created January 27, 2015 04:23
Show Gist options
  • Select an option

  • Save pqcfox/db6ea4c62b3c9296419d to your computer and use it in GitHub Desktop.

Select an option

Save pqcfox/db6ea4c62b3c9296419d to your computer and use it in GitHub Desktop.
An exercise in my Number Theory class.
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