CoCalc Public FilesIntegral Computations.sagewsOpen with one click!
Author: Bill Page
Views : 64
Compute Environment: Ubuntu 18.04 (Deprecated)
%default_mode fricas
ex:=sqrt( cot(x)^2 )
+-------+ | 2 \|cot(x) Type: Expression(Integer)
i1:=integrate(ex, x = %pi/4 .. 3*%pi/4,"noPole")
0 Type: Union(f1: OrderedCompletion(Expression(Integer)),...)
i2:=integrate(ex, x)
sin(2x) 2 2log(-----------) - log(-----------) cos(2x) + 1 cos(2x) + 1 ------------------------------------ 2 Type: Union(Expression(Integer),...)
d1:=D(i2,x)
2 2 sin(2x) + 2cos(2x) + 2cos(2x) ------------------------------- (cos(2x) + 1)sin(2x) Type: Expression(Integer)
normalize(ex-d1)
0 Type: Expression(Integer)
%sage s2=integrate( sqrt( cot(x)^2 ), x); s2
-1/2*log(tan(x)^2 + 1) + log(tan(x))
%sage (fricas(s2)-fricas('i2')).normalize()
0
Integral Computations fcc38de3-d2cb-4609-8e00-dc71265f3193