First time here? Check out the FAQ!
answered 2013-06-18 00:49:19 +0100
Thanks for comments!
x=var('x') f = lambda x : x^2 def defintegral_viaMathFree(f,x,a,b): F(x)=integrate(f(x),x,algorithm='mathematica_free') return F(b)-F(a)
And
defintegral_viaMathFree(f,x,0,1)
output: 1/3