id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,work_issues,upstream,reviewer,author,merged,dependencies,stopgaps
3805,"[with patch, positive review] sage gets basic arithmetic with sqrt(3) wrong",was,jwmerrill,"{{{
sage: t1 = (sqrt(3)-3)*(sqrt(3)+1)/6;
sage: tt1 = -1/sqrt(3);
sage: t2 = sqrt(3)/6;
sage: tt1 == t1
-1/sqrt(3) == (sqrt(3) - 3)*(sqrt(3) + 1)/6
sage: bool(tt1 == t1)
True
sage: float(expand(t1+t2))
-0.43301270189221941
sage: float(expand(tt1+t2))
-0.28867513459481292
}}}
But it seems that this does not happen in a clean maxima session directly:
{{{
sage: !maxima
Maxima 5.13.0 http://maxima.sourceforge.net
Using Lisp CLISP 2.46 (2008-07-02)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) t1 : (sqrt(3)-3)*(sqrt(3)+1)/6;
                          (sqrt(3) - 3) (sqrt(3) + 1)
(%o1)                     ---------------------------
                                       6
(%i2) tt1 : -1/sqrt(3);
                                        1
(%o2)                              - -------
                                     sqrt(3)
(%i3) t2 : sqrt(3)/6;
                                     - 1/2
                                    3
(%o3)                               ------
                                      2
(%i4) tt1, numer;
(%o4)                         - .5773502691896258
(%i5) t1, numer;
(%o5)                         - .5773502691896258
(%i6) expand(t1+t2), numer;
(%o6)                         - .2886751345948129
(%i7) expand(tt1+t2), numer;
(%o7)                         - .2886751345948129
}}}

So I'm not sure what is going wrong, but it might not be a bug in Maxima. ",defect,closed,major,sage-3.1.2,calculus,fixed,,,,,,,,,
