Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2013

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integrating a Matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132062] Re: Integrating a Matrix
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Thu, 28 Nov 2013 02:22:13 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net
  • References: <20131127062412.B370C69F5@smc.vnet.net>

Perhaps something like the following (very simple example)?

   mat = Table[f[i, j][x], {i, 1, 3}, {j, 1, 3}]
   Partition[(NIntegrate[#, {x, 0, 1}] &) /@ Flatten[mat], 3]

 
On Nov 27, 2013, at 1:24 AM, David Barnes <barnes at pullman.com> wrote:

> I have a 3X3 matrix of functions fij[x], for i,j = 1,2,3, and I want to NIntegrate all nine elements over 0<x<1 to get a matrix of constants. Is there an easy way to do this other that doing 9 individual NIntegration's?
>

---
Murray Eisenberg                                    
murray at math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower           
University of Massachusetts 
710 North Pleasant Street  
Amherst, MA 01003-9305








  • Prev by Date: Re: Integrating a Matrix
  • Next by Date: Re: Mathematica on Centos 6.3
  • Previous by thread: Re: Integrating a Matrix
  • Next by thread: Re: Integrating a Matrix