Here is an example of integrating a function with conditions independent of
the integration variable:
>>> A, B, a, b x = var('A B a b x')
>>> Piecewise((A, And(x<0, a<1)), (B, Or(x<1, a>2))).integrate(x)
Piecewise(
(B*x, a > 2),
(Piecewise((A*x, x <= 0), (B*x, x <= 1), (nan, True)), a < 1),
(Piecewise((B*x, x <= 1), (nan, True)), True))
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/86c5b647-e340-4717-9f8b-7632252c70fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.