Thanks Johan, works without error here.<br>But, now I just don&#39;t get what&#39;s the meaning of the output:<br><br>========================================<br><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">In [</span><span style="font-weight:600;color:rgb(0,0,128)">7</span><span style="color:rgb(0,0,128)">]:</span> %%tex a=1.0</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span> b = -1.0</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span> c = -1.0</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span> x_1=(-b+sqrt(b**2-4*a*c))/(2*a)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span> x_2=(-b-sqrt(b**2-4*a*c))/(2*a)</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span> varphi = x_1</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace"><span style="color:rgb(0,0,128)">   ...:</span></span> </p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">a=1.0</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">b = -1.0</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">c = -1.0</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">x_1=(-b+sqrt(b**2-4*a*c))/(2*a) = 1.618</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">x_2=(-b-sqrt(b**2-4*a*c))/(2*a) = -0.618</span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:courier new,monospace">varphi = x_1 = 1.618</span></p>========================================<br><br>I expected TeX formatted output.<br>What is this output for?<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 12, 2012 at 10:47 AM, Johan Beke <span dir="ltr">&lt;<a href="mailto:johanbeke@hotmail.com" target="_blank">johanbeke@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">
I fixed the bug and added documentation strings: <a href="https://gist.github.com/4032651" target="_blank">https://gist.github.com/4032651</a><br>I also contacted the original author of the code snippet (at stackoverflow which I used and modified) to see what is possible for the license.<span class="HOEnZb"><font color="#888888"><br>
<br>Johan                                               </font></span></div></div>
<br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br></div>