Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to increase precision of numeric integraion?

I am trying to evaluate an integral numeraically like this

sage: s = integrate(t*sin(t)/(1+cos(t)^2), t, 0, pi)
sage: s.n(prec=100)
2.4674011002723395
sage: s.n(prec=1000)
2.4674011002723395

As you can see, increasing prec does not give me more precise result. Is there any way to get more digits ?