Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Mathematica Weirdness

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116661] Mathematica Weirdness
  • From: Steve Heston <sheston at rhsmith.umd.edu>
  • Date: Wed, 23 Feb 2011 05:23:49 -0500 (EST)

My question is why I get a negative integral of a positive 
function?

Integrate[1000000*Exp[x^2-12*x]*x^14,{x,0,1}]//N
Integrate[1000000*Exp[x^2-12*x]*x^14,{x,0.,1}]//N
NIntegrate[1000000*Exp[x^2-12*x]*x^14,{x,0,1}]

The first line gives a negative answer, while the second two lines give 
identical positive answers.  Something is strange here.

Steve

Steven L. Heston
Associate Professor
Finance Department
Robert H. Smith School of Business
4447 Van Munching Hall Van Munching Hall
University of Maryland
College Park, MD 20742-1815
301-405-9686 TEL
301-405-0359 FAX
sheston at rhsmith.umd.edu
http://www.rhsmith.umd.edu


  • Prev by Date: Blending in DiscretePlot
  • Next by Date: Re: Vector Runge-Kutta ODE solver with compilation?
  • Previous by thread: Re: Blending in DiscretePlot
  • Next by thread: Re: Mathematica Weirdness