| 1 | initial version |
It is my understanding that Maxima has a difficult time with absolute values in integrals. You can get the answer using a numerical approximation via:
numerical_integral(abs(cos(x)),0,pi)
Or via sympy you can use:
import sympy
print sympy.integrals.integrate(abs(cos(x)),(x,0,pi)).n()
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.