On Thu, Apr 28, 2011 at 11:57 AM, kcrisman <[email protected]> wrote:
>
>
> On Apr 28, 10:49 am, Maarten Derickx <[email protected]>
> wrote:
>> I think that somewhere the factor with which you multiply is checked
>> for being -1,0 or 1 and that that causes the problem.
>> Here is at least an easier way to reproduce the problem
>>
>> sage: var('y')
>> y
>> sage: (y*(-3.0),y*(-2.0),y*(-1.0),y*0.0,y*1.0,y*2.0,y*3.0,y*4.0)
>> (-3.00000000000000*y, -2.00000000000000*y, -y, 0, y,
>> 2.00000000000000*y, 3.00000000000000*y, 4.00000000000000*y)
>> sage: 1.0==1
>> True
>
> Yes, but my question is whether it's a bug or a feature?  Sorry for
> not being clear.

I think it really boils down to the fact that the symbolic ring
doesn't understand the notion of exact vs. inexact values. E.g.

sage: 3.0*x
3.00000000000000*x
sage: 2.0*x
2.00000000000000*x
sage: 3.0*x - 2.0*x
x

- Robert

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to