# Cauchy principal value integral

How can I calculate a Cauchy principal Value integral with sagemath

add a comment

Cauchy principal value integral

How can I calculate a Cauchy principal Value integral with sagemath

add a comment

1

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)
```

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

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

Seen: **365 times**

Last updated: **Oct 18 '21**

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.