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


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

Condition Generation in Integrate

Started byMichael Musheghian <michael.musheghian@gmail.com>
First post2012-05-11 04:15 +0000
Last post2012-05-12 08:53 +0000
Articles 2 — 2 participants

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


Contents

  Condition Generation in Integrate Michael Musheghian <michael.musheghian@gmail.com> - 2012-05-11 04:15 +0000
    Re: Condition Generation in Integrate danl@wolfram.com - 2012-05-12 08:53 +0000

#10030 — Condition Generation in Integrate

FromMichael Musheghian <michael.musheghian@gmail.com>
Date2012-05-11 04:15 +0000
SubjectCondition Generation in Integrate
Message-ID<joi3ok$n53$1@smc.vnet.net>
Greetings!

Integrate[
 Cos[\[Pi] x]^2*Sin[\[Pi] x (m + 1)]*Sin[\[Pi] x (n + 1)], {x, 0, 1}]

When I evaluate this I get an answer, however, there are some special cases (for example, m & n are both integers and m == n+2)in which this integral must yield different result. My question is, why doesn't it take in consideration all cases and doesn't generate conditional expressions?

Thank you.

[toc] | [next] | [standalone]


#10038

Fromdanl@wolfram.com
Date2012-05-12 08:53 +0000
Message-ID<jol8eu$45c$1@smc.vnet.net>
In reply to#10030
On Thursday, May 10, 2012 11:15:16 PM UTC-5, Michael Musheghian wrote:
> Greetings!
>
> Integrate[
>  Cos[\[Pi] x]^2*Sin[\[Pi] x (m + 1)]*Sin[\[Pi] x (n + 1)], {x, 0, 1}]
>
> When I evaluate this I get an answer, however, there are some special cases (for example, m & n are both integers and m == n+2)in which this integral must yield different result. My question is, why doesn't it take in consideration all cases and doesn't generate conditional expressions?
>
> Thank you.

You might do as below.

i[m_, n_] =
 Integrate[
  Cos[\[Pi] x]^2*Sin[\[Pi] x (m + 1)]*Sin[\[Pi] x (n + 1)], {x, 0, 1},
   Assumptions -> Element[{m, n}, Reals]]

To evaluate at integers you can fix one value and take a limit in the other.

In[382]:= Limit[i[1, n], n -> 3]

Out[382]= 1/8

There has been past discussion in this forum on why Integrate will not generate conditions involving parameter integrality, and will generally not do much with assumptions of that sort either. It boils down to measure zero cases that will either get missed or messed up using technology currently available. I believe it will remain thus for the foreseeable future.

Daniel Lichtblau
Wolfram Research


[toc] | [prev] | [standalone]


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


csiph-web