Created
June 26, 2015 18:13
-
-
Save startakovsky/0ff0467d68e546776093 to your computer and use it in GitHub Desktop.
sympy example
This file contains 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
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