use python as a calculator

2010-06-24 Thread ilovesss2004
If I run 1.0/10**10 python will return 0 How can I make python return 1e-10? -- http://mail.python.org/mailman/listinfo/python-list

Re: use python as a calculator

2010-06-24 Thread ilovesss2004
On Jun 24, 5:50 pm, Tim Harig wrote: > On 2010-06-24, ilovesss2004 wrote: > > > If I run > > 1.0/10**10 > > python will return 0 > > Python 2.6.4 (r264:75706, Dec 11 2009, 23:02:59) > [GCC 3.4.6] on linux2 > Type "help", "copyright", &qu

latex output

2010-06-27 Thread ilovesss2004
Hi, The latex print function in sympy only can make latex code for math expression which includes at least a variable. If we input an expression without any variable like latex('2**2/3'), we will get '$1$' instead of '$\\frac{1}{3} 2^{2}$'. Is there a python package I can use to output latex code