Hi

It gives sympyfied 0. Its different from Python's integer object.

Regards
Sudhanshu Mishra

On Fri, Mar 20, 2015, 11:27 PM Christoph Kukulies <
k...@physik.rwth-aachen.de> wrote:

> Hi,
>
> I'm playing a bit with sympy and reduce_inequations while I'm stumbling
> about understanding a term:
>
> from sympy import Q, sympify as S
> from sympy.abc import x, y
> from sympy.solvers.inequalities import reduce_inequalities
> reduce_inequalities(S(0) <= x + 3, Q.real(x), [])
>
> What does S(0) mean hetre exactly? print S(0) gives me 0, so why not just
> 0 and why S(0)?
>
> Christoph
>
>  --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/3bc84e41-1f41-42f6-bc0b-4f0501c62960%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/3bc84e41-1f41-42f6-bc0b-4f0501c62960%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAFW_KCSipP16ThAYr-hd-Wk3DdJzWd6HD0iB2_EUwx8_zEVHog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to