arivero
Gold Member
- 3,481
- 187
If someone wants to explore koide like equations, this tool seems useful.
Code:
from __future__ import division
from sympy import *
x, y, z, t = symbols('x y z t')
def koide(a,b,c):
return 2*(a+b+c)**2-3*(a**2+b**2+c**2)
In [5]: koide (x,y,z)
Out[5]:
2 2 2 2
- 3⋅x - 3⋅y - 3⋅z + 2⋅(x + y + z)
In [7]: solve([koide(0,1,y)],x,y)
Out[7]:
⎡⎛ ⎽⎽ ⎞ ⎛ ⎽⎽ ⎞⎤
⎣⎝- ╲╱ 3 + 2,⎠, ⎝╲╱ 3 + 2,⎠⎦
In [8]: solve([koide(0,1,y),koide(1,y,z)],x,y,z)
Out[8]:
⎡⎛ ⎽⎽ ⎞ ⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞ ⎛ ⎽⎽⎽ ⎞ ⎛ ⎽⎽⎽ ⎽⎽⎽ ⎞⎤
⎣⎝- ╲╱ 3 + 2, 0⎠, ⎝- ╲╱ 3 + 2, - 4⋅╲╱ 3 + 12⎠, ⎝╲╱ 3 + 2, 0⎠, ⎝╲╱ 3 + 2, 4⋅╲╱ 3 + 12⎠⎦
Last edited: