On Sep 28, 11:09 am, Johannes <dajo.m...@web.de> wrote: > I'm wondering about on more little thing: > I have an expression like this: > (-bc)/((1/b -1) bc -1) + c /((1/b -1) bc -1) + (-1)/((1/b -1) bc -1) -1 > which could be simplified by hand to (-2(bc +1)/(c-bc -1) > why do i get this complex expression, evne if I call simplify on it? > maybe this question is related to the one of Aidan too ( > 'simplifying expressions') > > greatz Johannes
You need to try harder to simplify... sage: var('b c') (b, c) sage: expr = (-b*c)/((1/b -1)* b*c -1) + c /((1/b -1)* b*c -1) + (-1)/ ((1/b -1)* b*c -1) + c /((1/b -1)* b*c -1) + (-1)/((1/b -1)* b*c -1) -1 sage: expr.simplify [hit tab] expr.simplify expr.simplify_full expr.simplify_rational expr.simplify_exp expr.simplify_log expr.simplify_trig expr.simplify_factorial expr.simplify_radical sage: sage: expr.simplify_rational() 0 (or if you have no good guess, you can also try simplify_full) cheers, Yann -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org