On Sat, Apr 12, 2014 at 03:11:28PM -0700, Richard Fateman wrote:
>      This example was actually for other sympy developers.  Think about
>      Add(2, 2, evaluate=False) as a poor-man's analog of the Mathematica
>      Hold[2+2].
> 
>    That's awful.
>    Lisp  would use the syntax (+ 2 2).

That's fine, by my example was not about the syntax.

>      You totally miss the point.  I'm against using these "inexact" numbers
>      in symbolic context, especially if we assume that some algebraic
>      properties are valid for any expression (associativity for the provided
>      above example).
> 
>    I think you are missing my point, which is that these numbers are not
>    inexact
>    at all. They are precise numbers on the real line.

Rational numbers, real numbers,
integer numbers - not just about the notation.  These notions include
also available operations, i.e. addition and multiplication.  "Inexact"
in this context means that some well known algebraic properties for such
"numbers" - broken.

In the SymPy, we can't use such objects reliably.  Well, until our "+"
and "*" are associative (see Expr and AssocOp classes).

>    However, there is
>    nothing wrong with using them as input values

I'm not against python's float literals or using floats
as output values.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/20140414231436.GA8243%40darkstar.order.hcn-strela.ru.
For more options, visit https://groups.google.com/d/optout.

Reply via email to