Processing math: 50%
Ask Your Question
0

Cauchy principal value integral

asked 1 year ago

How can I calculate a Cauchy principal Value integral with sagemath

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
0

answered 1 year ago

achrzesz gravatar image

Also:

from sympy import Integral
from sympy.abc import x
Integral(1/x, (x, -1, 1)).principal_value()
Preview: (hide)
link
0

answered 1 year ago

dan_fulea gravatar image

Use the definition, there is a limit, write explicitly the limit in sage.

For instance, 11dxx makes no sense as it is, but we may want to compute instead PV11dxx=PV11dxx:=lim This can be easily implemented:

var('a,x')
assume(a>0);
assume(a<1);
limit( integral(1/x, x, -1, -a) + integral(1/x, x, a, 1), a=0 )

We get zero.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 133 times

Last updated: Oct 06 '23