Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5320 > unrolled thread
| Started by | Gabriel Landi <gtlandi@gmail.com> |
|---|---|
| First post | 2011-10-02 06:39 +0000 |
| Last post | 2011-10-02 06:39 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Integrating a Piecewise function four times but different results Gabriel Landi <gtlandi@gmail.com> - 2011-10-02 06:39 +0000
| From | Gabriel Landi <gtlandi@gmail.com> |
|---|---|
| Date | 2011-10-02 06:39 +0000 |
| Subject | Re: Integrating a Piecewise function four times but different results |
| Message-ID | <j690u6$rd1$1@smc.vnet.net> |
This really seems like a bug. T
he problem is on the integration of p2. If you first do the integration of p1 first and then substitute the values you get the correct answer.
soln2[x_] =
Integrate[Integrate[Integrate[Integrate[p1[x], x], x], x], x] + r*x^3 +
s*x^2 + u*x + v /. wmax -> 1 /. L -> 1
Moreover, it gives the wrong answer because the function is defined piecewise. For instance,
Integrate[Integrate[Integrate[Integrate[2 (1 - x), x], x], x], x]
obviously gives the correct result.
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web