A variation on your first try is: sage: ((a*b - (1/2)*a*(b - c))/a).simplify_radical() (c + b)/2
which works fine. Maybe it's a bug in maxima. I don't see why you would need simplify_radical() at all here, since your expression contains no radicals. John Cremona 2008/10/24 Stan Schymanski <[EMAIL PROTECTED]>: > > Dear all, > > I just noted some strange behaviour with simplify_radical(): > > ---------------------------------------------------------------------- > | SAGE Version 3.1.2, Release Date: 2008-09-19 | > | Type notebook() for the GUI, and license() for information. | > ---------------------------------------------------------------------- > > sage: sage: var('a b c') > (a, b, c) > sage: ((a*b - 0.5*a*(b - c))/a).simplify_radical() > 0 > sage: ((b - 0.5*(b - c))).simplify_radical() > 0.500000000000000*c + 0.500000000000000*b > > Clearly, the second result should be the same as the first one, as 'a' > cancels out. Does anyone know how to avoid such mistakes and whether > it is advisable to use simplify_radical at all? > > Cheers > Stan > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---