integral::evalf(): don't attempt to ignore problems.
authorAlexei Sheplyakov <alexei.sheplyakov@gmail.com>
Thu, 19 Aug 2010 08:10:25 +0000 (11:10 +0300)
committerJens Vollinga <jensv@nikhef.nl>
Mon, 23 Aug 2010 13:13:36 +0000 (15:13 +0200)
commit5d6d2c3ff6afd13933203f984a818dbfc76db3a1
tree04e1fa2904d07cabd1a05372ecde0a5fc7db7b98
parent87ed87c395d6121fe468efc68ee2cd33a7e91200
integral::evalf(): don't attempt to ignore problems.

Don't ignore exceptions thrown by numerical integration routine.
In general, the code like this

try {
// blah-blah
} catch (std::exception& err) { }

is just plain evil. Case in the point:

fsolve((1/(sqrt(2*Pi)))*integral(t,0,x,exp(-1/2*t^2))==0.5,x,0,100)
(cherry picked from commit 515171f0bcd42099c266713c3d605cd92cedd2e2)
ginac/integral.cpp