Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #14550 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2013-05-20 09:03 +0000 |
| Last post | 2013-05-20 09:03 +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: Repeated Integrals Bob Hanlon <hanlonr357@gmail.com> - 2013-05-20 09:03 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2013-05-20 09:03 +0000 |
| Subject | Re: Repeated Integrals |
| Message-ID | <kncot2$n2d$1@smc.vnet.net> |
Read the documentation for Integrate
h[x_, a_] = Integrate[L[y, a] g[y], {y, 0, x}];
f[a_, b_, w_] = Integrate[L[x, b] h[x, a], {x, 0, w}];
It is not clear what you want to change and how they are to change during
the N repetitions: a, b, w, or some combination of them? Presumaby you
would use f[a,b,w] inside a Table perhaps flattening (Flatten) the Table
results if you prefer the output as a list rather than a matrix. Read the
documentation for Table and Flatten.
sol = Table[f[a, b, w], {a, 2}, {b, {b1, b2, b3}}, {w, 1, 5, 2}] // Flatten
Using a capital letter for a user-defined function (e.g., L) or starting
the name of a user-defined function with a capital letter is not
recommended.This could result in a conflict (now or in a future version)
with a built-in Mathematica name or function.
Bob Hanlon
On Sun, May 19, 2013 at 5:47 AM, <briankolo@gmail.com> wrote:
> I'm fairly new to Mathematica and I'm trying to create an expression for a
> set of nested integrals. The innermost integral is
>
> int[0,x,L(y,a)g(y),dy]
>
> Where g(y) is an arbitrary function and a is a parameter. The next
> integral is
>
> int[0,w,L(x,b)h(x,a),dx]
>
> Where b is a parameter and h(x,a) is the result of the previous integral.
>
> The process then repeats N times. Is there a simple way to express this in
> Mathematica?
>
>
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web