Ask Your Question

Revision history [back]

I do not know much about the notion of Cauchy principal value integral, but you can reproduce the two examples given on Wikipedia :

sage: a = SR.var('a')
sage: assume(0<2*a<1)
sage: f = integral(1/x, x, -1, -2*a) + integral(1/x, x, a, 1)
sage: f.limit(a=0)


sage: a = SR.var('a')
sage: assume(a>0)
sage: f = integral(2*x/(x^2-1), x, -2*a, a)
sage: f.limit(a=oo)