MathGroup Archive 2009

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

Search the Archive

Re: Integrate[ 0.0*x, {x, 0, y}]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103050] Re: [mg103021] Integrate[ 0.0*x, {x, 0, y}]
  • From: "David Park" <djmpark at comcast.net>
  • Date: Sat, 5 Sep 2009 05:37:28 -0400 (EDT)
  • References: <11733267.1252049077053.JavaMail.root@n11>

Because by including a decimal point you told Mathematica that the integrand
was only approximately zero. Try

Integrate[0 x, {x, 0, y}]
0

Or use Chop

Integrate[0.0*x, {x, 0, y}] // Chop
0


David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/  


From: Nankyoku Ice [mailto:406of76013 at gmail.com] 

Why does Integrate[ 0.0 * x, {x, 0, y}] yield 0.0*y^2, not 0 ?




  • Prev by Date: Re: How do I assign variable names from a list of strings?
  • Next by Date: Re: upwind scheme in Mathematica?
  • Previous by thread: Re: Integrate[ 0.0*x, {x, 0, y}]
  • Next by thread: How do I assign variable names from a list of strings?