Ask Your Question
1

Cauchy principal value integral

asked 2021-10-15 22:29:46 +0200

hicheme gravatar image

updated 2021-10-18 17:27:18 +0200

FrédéricC gravatar image

How can I calculate a Cauchy principal Value integral with sagemath

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-10-16 00:32:22 +0200

tmonteil gravatar image

I do not know much about the notion of Cauchy principal value integral, but you can reproduce the two examples given on Wikipedia https://en.wikipedia.org/wiki/Cauchy_... :

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)
log(2)

and

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)
-2*log(2)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2021-10-15 22:29:46 +0200

Seen: 367 times

Last updated: Oct 18 '21