Hello, all:In symbolic integration document, there is an example::
sage: integrate(1/x^3,x,-1,3)
Traceback (most recent call last):
...
ValueError: Integral is divergent.However, in maxima, it returns:
(%i1) integrate(1/x^3,x,-1,3);
Principal Value
4
(%o1) -
9Sometimes we only care about the cauchy principal value. How to get it from sage?
maxima version: 5.28.0
sage version: 5.2Regards,
Mizuchi
Hi, Nils:
Thanks for reply. IMHO, for many physical problems, we just want to know principal value. As you mentioned, we can use other definition to void this issue. However, for more complicated formula, it is hard find the healthy definition. I think it could be better if either (1) sage provide a parameter for integrate that whether accept the principal value, (2) or at least print a warning instead throw an exception.
Currently I have to use maxima directly to deal with integral, though maxima is a good tool, I just not famillar with.
Regards,