#12257: 1.0*pi should *not* be pi
----------------------------+------------------------
Reporter: was | Owner: burcin
Type: defect | Status: new
Priority: minor | Milestone: sage-6.4
Component: calculus | Resolution:
Keywords: pynac | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by rws):
Replying to [comment:9 rws]:
> > {{{
> > 00464 } else if (seq_size==1 && overall_coeff.is_equal(_ex1)) {
> > 00465 // *(x;1) -> x
> > 00466 return recombine_pair_to_ex(*(seq.begin()));
> > }}}
> This is currently in Pynac:
Now it's at
https://github.com/pynac/pynac/blob/master/ginac/mul.cpp#L713
There may be a general problem, not only for constants:
{{{
sage: 1.000000*(x+2)
x + 2
sage: 2.000000*(x+2)
2.00000000000000*x + 4.00000000000000
}}}
Is this intended?
--
Ticket URL: <http://trac.sagemath.org/ticket/12257#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.