Sherjil was talking about giving SymPy matrices an underlying data type. I wonder if Python float was one of the proposed data types.
My understanding is though that once any python number interacts with a SymPy number it automatically becomes a SymPy number thus ruining the chance for investigating floating point arithmetic alongside any SymPy Expr object. This may make what you're trying to do difficult. I'm not sure what you're trying to do but if you're investigating floating point you could look into using exact arithmetic and representing the floating point errors symbolically - i.e. x = x' * (1+delta) with delta the size of machine precision. On Mon, Sep 5, 2011 at 7:06 AM, Bryan <alke...@gmail.com> wrote: > Hi all, > thank you for your fast responses. > > The question was on how to do it with sympy, > in particular I have a matrix with symbols and coefficients, > and I am under the (maybe wrong) impression that the numerical > magic is being performed with exact arithmetic and I would like > it to be performed with floating-point arithmetic WHILE keeping > the ability to work with symbols. (which is why I think > sympy.mpmath.lu_solve > wont do it.) > > Best regards > > Bryan > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to sympy@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.