Seems that this comes from Maxima. Look at this

sage: fu=maxima(k6).fullratsimp().sage();fu
-12*(3*(28960879780288*sqrt(2) + 49414857768735)*sqrt(3) -
150485145634059*sqrt(2) - 256767132912716)/(3*(40774373203317*sqrt(2)
- 90564557902141)*sqrt(3) - 211869858104760*sqrt(2) + 470587246954565)
sage: N(fu)
6.00000000000000
sage: N(k6)
139.406088405362
sage: tr=maxima(k6).trigrat().sage();tr
9*(sqrt(2) + 2)*sqrt(3) + 27*sqrt(2) + 48
sage: N(tr)
139.406088405362


Tested on Sage 4.3. and wxmaxima 0.8. Before reporting as Maxima bug,
it would be nice to ask, if this is known problem and construct
minimal example.

Robert


btw: in Maxima

A:-18*(3*sqrt(2)+5)/(-4*(2*sqrt(3)-3)/(3^(3/2)-5)-(-8*(sqrt(3)-1)/(3^
(3/2)-5)+2*(4*(sqrt(3)-2)/(3^(3/2)-5)-1)*(5*sqrt(2)*(sqrt(3)-1)/(3^
(3/2)-5)-sqrt(2))/(5*sqrt(2)*(sqrt(3)-2)/(3^(3/2)-5)-2^(3/2)+3)+1)*
((sqrt(3)-2)*(5*sqrt(2)*(2*sqrt(3)-3)/(3^(3/2)-5)+3*2^(3/2)-9)/((5*sqrt
(2)*(sqrt(3)-2)/(3^(3/2)-5)-2^(3/2)+3)*(3^(3/2)-5))-(2*sqrt(3)-3)/(3^
(3/2)-5))/(2*(sqrt(3)-2)*(5*sqrt(2)*(sqrt(3)-1)/(3^(3/2)-5)-sqrt(2))/
((5*sqrt(2)*(sqrt(3)-2)/(3^(3/2)-5)-2^(3/2)+3)*(3^(3/2)-5))-2*(sqrt
(3)-1)/(3^(3/2)-5)+1)+(4*(sqrt(3)-2)/(3^(3/2)-5)-1)*(5*sqrt(2)*(2*sqrt
(3)-3)/(3^(3/2)-5)+3*2^(3/2)-9)/(5*sqrt(2)*(sqrt(3)-2)/(3^(3/2)-5)-2^
(3/2)+3)-3);

A,numer;    ---- this gives 139.....

b:radcan(A);
b,numer;    ----- this gives 16


b:xthru(A)
c:radcan(b)
c,numer   ------ this gives 139

b:trigrat(A)
b,numer ------- gives 139



On 10 pro, 00:40, mhampton <hampto...@gmail.com> wrote:
> I was trying to simplify a somewhat complicated expression involving
> two square roots, and seem to have found bugs in how sage parses
> things from sympy and maxima.  At least, Ondrej checked and sympy
> handles things fine, the answer gets corrupted somehow in sage.   I
> suspect the same is true for maxima but I haven't checked.
>
> A worksheet with the expression in question is at:
>
> http://sagenb.org/home/pub/1232/
>
> Before filiing a ticket I am wondering if this is a known problem at
> all.
>
> -Marshall

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

Reply via email to