Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #5320
| From | Gabriel Landi <gtlandi@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integrating a Piecewise function four times but different results |
| Date | 2011-10-02 06:39 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j690u6$rd1$1@smc.vnet.net> (permalink) |
| References | <201110010708.DAA17775@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 comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Integrating a Piecewise function four times but different results Gabriel Landi <gtlandi@gmail.com> - 2011-10-02 06:39 +0000
csiph-web