Skip to content

Instantly share code, notes, and snippets.

@sholtomaud
Last active July 28, 2017 11:14
Show Gist options
  • Save sholtomaud/b23dd23cfc60cedb98ffbeab996b5ccf to your computer and use it in GitHub Desktop.
Save sholtomaud/b23dd23cfc60cedb98ffbeab996b5ccf to your computer and use it in GitHub Desktop.

Hello TWJH

Here is my TODO list for our next catchup

  • bibliography bibtex
  • light latex
  • slides ✅
  • scrivener import/export?

Second slide

'Maxwell's Planimeter'

Maxwell's Planimeter


Third slide

Some code

# Solve the quadratic equation ax**2 + bx + c = 0
# import complex math module
import cmath
a = 1
b = 5
c = 6

# calculate the discriminant
d = (b**2) - (4*a*c)

# find two solutions
sol1 = (-b-cmath.sqrt(d))/(2*a)
sol2 = (-b+cmath.sqrt(d))/(2*a)

print('The solution are {0} and {1}'.format(sol1,sol2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment