Am Sonntag, 24. Juni 2012 07:10:05 UTC+2 schrieb Aaron Meurer: > > Yes, unfortunately SymPy currently does not do so well with integrals > of absolute values. >
Actually you can work around this limitation by using piecewise functions: In [12]: myabs = lambda x: Piecewise((x, x>=0), (-x, x<0)) In [13]: integrate( (t1*t2*t3)**beta * myabs((t1-t2)*(t1-t3)*(t2-t3)), (t1,0,1),(t2,0,1),(t3,0,1)).doit() Out[13]: 0 Maybe we should implement something like abs(x).rewrite(Piecewise). Vinzent -- You received this message because you are subscribed to the Google Groups "sympy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sympy/-/FZ1u8fmryOMJ. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.