2019-01-10 15:10:13 -0500 received badge ● Popular Question (source) 2015-12-07 15:58:33 -0500 received badge ● Famous Question (source) 2015-10-18 19:23:41 -0500 received badge ● Notable Question (source) 2015-09-23 22:45:46 -0500 received badge ● Popular Question (source) 2015-04-24 02:36:42 -0500 received badge ● Supporter (source) 2015-04-23 17:01:23 -0500 asked a question Sage-mode typesetting problem I am trying to start using emacs with sage-mode. After editing .emacs file to enable sage-mode and typsetting, I can see that even though the shell is working, the 'sage-view' option is not working propperly. In example, when typing the following text into the shell: f(x) = x^2 ; f  The output is : \newcommand{\Bold}[1]{\mathbf{#1}}x \ {\mapsto}\ x^{2}  I am a completley noob regarding emacs, and I have a feeling that the answer is somewhat very simple, but i couldn't find it on the web =/ Thanks in advance, David 2015-04-23 16:46:24 -0500 commented answer Loops get slower as they run Thank you very much! I did learnt a lot from your answer =] Sorry for the late response to your answer, actually I just now realized that i forgot to reply earlier 2015-04-23 16:43:32 -0500 received badge ● Scholar (source) 2015-01-07 08:25:06 -0500 received badge ● Student (source) 2015-01-07 05:04:54 -0500 asked a question Sage loops becomes slower and slower on the run Hello, I am trying to run a simulation in sage as part of my homework. The simulation itself is pretty fast and working fine. The problem starts when i try to run the simulation several times in a loop, then sage becomes incredibly slow in each repeat. The program I wrote: def poisson(lmu): var('mu n') g(mu,n)=(e^-mu * mu^n)/factorial(n) num=random() sum=g(lmu,0) for i in xrange(1000): if num