]> www.ginac.de Git - ginac.git/commit
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>
Sat, 21 Aug 2010 17:57:22 +0000 (19:57 +0200)
commit515171f0bcd42099c266713c3d605cd92cedd2e2
tree885e8b9448343d25ae9c8bca2a5aa7de02927224
parent9993a7aac97abf383624fc5dae4beecb29531fbd
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)
ginac/integral.cpp