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


Groups > comp.soft-sys.math.mathematica > #7250

Re: integrate a sum using Mathematica

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: integrate a sum using Mathematica
Date 2011-12-16 10:53 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jcf7v5$6pi$1@smc.vnet.net> (permalink)
References <201112150954.EAA22899@smc.vnet.net>

Show all headers | View raw


I don't know what you are trying to do. One of these may be close.

Clear[f, x]

n = 3;

var = Array[x, n]

{x[1], x[2], x[3]}

Total[Integrate[f[#], {#, 0, Infinity}] & /@ var]

Integrate[f[x[1]], {x[1], 0, Infinity}] +
 Integrate[f[x[2]], {x[2], 0, Infinity}] +
 Integrate[f[x[3]], {x[3], 0, Infinity}]

Integrate[Total[f /@ var], Evaluate[Sequence @@ ({#, 0, Infinity} & /@ var)]]

Integrate[f[x[1]] + f[x[2]] + f[x[3]], {x[1], 0, Infinity}, {x[2], 0,
  Infinity}, {x[3], 0, Infinity}]


Bob Hanlon

On Thu, Dec 15, 2011 at 4:54 AM,  <rana_dandis@yahoo.com> wrote:
> How can I integrate a sum using Mathematica
>> eg polyIntegrate[Sum[f[x_[[i]]],{i,1,n}],{x[[i]],0,infinty}]
>> am new in using Mathematica ,,,i have version 7
>

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: integrate a sum using Mathematica Bob Hanlon <hanlonr357@gmail.com> - 2011-12-16 10:53 +0000

csiph-web