Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1475 > unrolled thread

Re: Integrate gives wrong results for a simple polynomial

Started byDaniel Lichtblau <danl@wolfram.com>
First post2011-04-05 10:42 +0000
Last post2011-04-06 09:13 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Integrate gives wrong results for a simple polynomial Daniel Lichtblau <danl@wolfram.com> - 2011-04-05 10:42 +0000
    Re: Integrate gives wrong results for a simple polynomial Scott Hemphill <hemphill@hemphills.net> - 2011-04-06 09:13 +0000

#1475 — Re: Integrate gives wrong results for a simple polynomial

FromDaniel Lichtblau <danl@wolfram.com>
Date2011-04-05 10:42 +0000
SubjectRe: Integrate gives wrong results for a simple polynomial
Message-ID<inerm4$j58$1@smc.vnet.net>
Micket wrote:
> I have had the bad luck to discover a strange bug (?) when computing
> some integrals with mathematica.
> I simplified it as far as i could;
> $Assumptions = p > 0; Integrate[Subscript[x, 1]*(1 + y)^2, {y, -1, 1}]
> 
> If i change anything else, be it the assumption (yes, it is a
> completely unrelated variable), the subscript, the integration limits,
> the exponent, the addition, it works out the correct answer.
> 
> It also takes a significant time (a few seconds) to compute this
> integral.
> 
> Does anyone have an explanation for this behavior?

What version? I cannot reproduce it in 8.0.1. I guess I don't even know 
what the "it" is, since you did not indicate what result you obtained. 
[Note to all readers: Don't do that. Nobody likes to guess.]

I also cannot reproduce any problem in previous versions, for the simple 
reason that at the moment I cannot run any such; our machine with those 
caught a cold last week and might be suffering lingering after effects.

So my best guess is this was a bug that, at some point, got fixed.

Daniel Lichtblau
Wolfram Research

[toc] | [next] | [standalone]


#1501

FromScott Hemphill <hemphill@hemphills.net>
Date2011-04-06 09:13 +0000
Message-ID<inhasn$2am$1@smc.vnet.net>
In reply to#1475
Daniel Lichtblau <danl@wolfram.com> writes:

> $Assumptions = p > 0; Integrate[Subscript[x, 1]*(1 + y)^2, {y, -1, 1}]

I can confirm that it fails for 7.0.1 under Linux:

In[1]:= $Version

Out[1]= 7.0 for Linux x86 (64-bit) (February 18, 2009)

In[2]:= $Assumptions = p > 0; Integrate[Subscript[x, 1]*(1 + y)^2, {y, -1, 1}]

        x
         1
Out[2]= --
        3

The correct answer should be eight times this value.

Scott
-- 
Scott Hemphill	hemphill@alumni.caltech.edu
"This isn't flying.  This is falling, with style."  -- Buzz Lightyear

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web