Re: what does this mean exactly

6 views
Skip to first unread message

Ondrej Certik

unread,
Sep 9, 2007, 11:54:17 AM9/9/07
to William Stein, sy...@googlegroups.com
On 9/9/07, William Stein <wst...@gmail.com> wrote:
> Hi Ondrej,
>
> What precisely does this mean (from the sympy changelog)?
>
> * using true division in isympy (1/2 returns 0.5 instead of 0)
>
> Can you show me an actual running ipython session from start
> to finish where you illustrate what this means?

ondra@fuji:~/sympy$ ipython
Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
Type "copyright", "credits" or "license" for more information.

IPython 0.8.1 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.

In [1]: 1/2
Out[1]: 0

In [2]:
ondra@fuji:~/sympy$ bin/isympy
Python console for SymPy.

In [1]: 1/2
Out[1]: 0.5

In [2]:
Exiting ...


> Also, what is isympy?

From:

http://code.google.com/p/sympy/wiki/Tutorial

There is also a little app called isympy (located in bin/isympy if you
are running from the source directory) which is just a standard python
shell that has already imported the relevant sympy modules and defined
the symbols x, y and z.


Ondrej

Ondrej

Ondrej Certik

unread,
Sep 9, 2007, 1:01:08 PM9/9/07
to William Stein, sy...@googlegroups.com
> I remember trying to do
>
> from __future__ import division
>
> since -- for SAGE at least -- it broke some third party
> packages.

SymPy should work using either convention.

> Oh, thanks for the clarification. I'm glad you're doing that,
> since it makes things much more usable for certain people.
>
> Keep up the good work,

You too!

Ondrej

William Stein

unread,
Sep 9, 2007, 12:05:39 PM9/9/07
to Ondrej Certik, sy...@googlegroups.com
On 9/9/07, Ondrej Certik <ond...@certik.cz> wrote:
> On 9/9/07, William Stein <wst...@gmail.com> wrote:
> > Hi Ondrej,
> >
> > What precisely does this mean (from the sympy changelog)?
> >
> > * using true division in isympy (1/2 returns 0.5 instead of 0)
> >
> > Can you show me an actual running ipython session from start
> > to finish where you illustrate what this means?
>
> ondra@fuji:~/sympy$ ipython
> Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.8.1 -- An enhanced Interactive Python.
> ? -> Introduction to IPython's features.
> %magic -> Information about IPython's 'magic' % functions.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: 1/2
> Out[1]: 0
>
> In [2]:
> ondra@fuji:~/sympy$ bin/isympy
> Python console for SymPy.
>
> In [1]: 1/2
> Out[1]: 0.5
>
> In [2]:
> Exiting ...

I remember trying to do

from __future__ import division

since -- for SAGE at least -- it broke some third party
packages.

> > Also, what is isympy?

Oh, thanks for the clarification. I'm glad you're doing that,
since it makes things much more usable for certain people.

Keep up the good work,

William

Reply all
Reply to author
Forward
0 new messages