2020-09-19 17:24:51 -0600 asked a question Unable to solve basic equation, what am I doing wrong? I'm trying to solve a simple exponential equation, but Sage freezes on every attempt until I manually stop the process:  sage: var('E_j','T'); k = 0.695201368776488; sage: Boltz(E_j,T) = e^(-(1/(k*T))*E_j) sage: f = Boltz(300,T)==0.15 sage: f e^(-431.529645184649/T) == 0.150000000000000  neither f.solve(T) or f.solve(T,to_poly_solve=True) Provide a solution and force me to interrupt the console with ctr-C 2020-06-28 10:53:14 -0600 received badge ● Popular Question (source) 2020-06-06 07:21:58 -0600 asked a question Creating a supercell from a unit cell I'm trying to figure out how to create an arbitrary three dimensional supercell from a 6 coordinate unit cell using Sage. I'm hoping there is someone who may be able to suggest a few functions that could help me solve this problem. Currently I'm approaching it like this but am having trouble making it scalable to other dimensions. x = 0.3 h=1/2 q = 1/4 #Rutile has six atoms in its primitive cell #Titanium atoms (0.0, 0.0, 0.0), (h, h, h) #Oxygen atoms ((x, x, 0.0), (1-x, 1-x, 0.0), (-x+h, x+h, h), (x+h, -x+h, h) #these coordinates are for a cell that is doubled in x and y' #Coordinates for a 2 x 2 x 1 supercell #layer 1 Ti: (0.0, 0.0, 0.0), (h, 0.0, 0.0), (0.0, h, 0.0), ('Ti', h, h, 0.0) #layer 1 O: (xh, xh , 0.0), (xh, xh+h, 0.0), (xh+h, xh, 0.0), (xh+h, xh+h, 0.0), (1-xh, 1-xh, 0.0) (1-xh, 1-xh-h, 0.0), (1-xh-h, 1-xh, 0.0), (1-xh-h, 1-xh-h, 0.0) #layer 2 Ti (q, q, h), (q, q+h, h), (q+h, q, h), (q+h, q+h, h) #layer 2 O ((-x+h)/2.0, (x+h)/2.0, h), ((-x+h)/2.0, h+(x+h)/2.0, h), (h+(-x+h)/2.0, (x+h)/2.0, h), (h+(-x+h)/2.0,h+(x+h)/2.0, h) ((x+h)/2.0,(-x+h)/2.0, h), (x+h)/2.0, h+(-x+h)/2.0, h), (h+(x+h)/2.0, (-x+h)/2.0, h), ( h+(x+h)/2.0, h+(-x+h)/2.0, h)  2020-05-22 17:20:30 -0600 received badge ● Supporter (source) 2020-05-22 14:28:58 -0600 commented answer plotting regions in 3D This was very helpful for me. Thank you. 2020-04-25 19:15:23 -0600 received badge ● Commentator 2020-04-25 19:15:23 -0600 commented question How to save 3d plot as rotatable html file I included another tip as an answer. I was having trouble pasting the code as a comment 2020-04-25 19:14:44 -0600 answered a question How to save 3d plot as rotatable html file Running the code with a Sage notebook appears to have fixed the issue. Note that if you have want to view the HTML files on a different computer or host them on a website etc, make sure you update the the following code HTML in your three.js file: Original file HTML (lines 21-24)