Thank you, this helped. I've put a file containing the calculations at
http://www.uic.nnov.ru/~zoav1/writings/series.pdf (also thanks to
texmacs people), if someone wants a real example of using Maxima in
education or an example for a cookbook etc. The problem came up at my
theory of probability class.
--
Andrei Zorine
Wolfgang Jenkner wrote:
> Andrei Zorine <zoav1@uic.nnov.ru> writes:
>
>
>>It doesn't help to ASSUME(0<z,z<1), because call to
>>integrate(2/(1-z^2),z) returns log(z+1)-log(z-1), which is wrong
>>when z<1!
>
>
> I forgot to mention LOGABS, sorry. LOGNEGINT may also be of interest.
> Look at `Definitions for Logarithms' in the manual.
>
> (C1) assume(0<z,z<1);
> (D1) [z > 0, z < 1]
> (C2) logabs:true;
> (D2) TRUE
> (C3) integrate(2/(1-z^2),z);
> LOG(z + 1) LOG(1 - z)
> (D3) 2 (---------- - ----------)
> 2 2
> Wolfgang
>
> _______________________________________________
> Maxima mailing list
> Maxima@www.math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>