Am Montag, 25. Juni 2012 21:11:08 UTC+2 schrieb Vinzent Steinberg: > > 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 >
(The .doit() is not necessary, sorry.) 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/-/farjMSFx2YUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
