Skip to content

Instantly share code, notes, and snippets.

@startakovsky
Created June 26, 2015 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save startakovsky/0ff0467d68e546776093 to your computer and use it in GitHub Desktop.
Save startakovsky/0ff0467d68e546776093 to your computer and use it in GitHub Desktop.
sympy example
from __future__ import division
from sympy import *
N = symbols('N', integer = True)
a = 45
b = 60
c = 20
d = 85
X = symbols('X')
eqs = (
X - 2*N*(abs(a*d-b*c)-N)**2/((a+c)*(b+d)*N**2)
)
solve(eqs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment