Question: problem with integrations, bug in maple ?

can i compute this integral so that the answer does not have any complex part ? i just want the integral returns me real function or number .
 i also use evalf(int ... ) and evalf(Int ... ) and two different answers were given ! what is wrong ?
tnx for help in advance .

restart:

int(log(sec(x)+ tan(x)),x);

-I*ln(exp(I*x))*ln((-I*(exp(I*x))^2+I+2*exp(I*x))/((exp(I*x))^2+1))+(1/2)*Pi*ln(-I*(exp(I*x)-I))+I*dilog(-I*exp(I*x))+I*dilog(-I*(I+exp(I*x)))+I*ln(exp(I*x))*ln(-I*(I+exp(I*x)))

(1)

evalf(Int(log(sec(x)+ tan(x)),x=0..10));

3.493589070+16.61151993*I

(2)

evalf(int(log(sec(x)+ tan(x)),x=0..10));

7.035851984+23.35343547*I

(3)

 

 

Download integral.mw

Please Wait...