MathGroup Archive 2013

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

Search the Archive

Re: Integrating a Matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132064] Re: Integrating a Matrix
  • From: "Dave Snead" <dsnead6 at charter.net>
  • Date: Thu, 28 Nov 2013 02:22:53 -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>

Just give the matrix as the first argument of NIntegrate.
Here's an example:
NIntegrate[{{x, x^2, x^3}, {x^4, x^5, x^6}, {x^7, x^8, x^9}}, {x, 0, 1}]
evaluates to
{{0.5, 0.333333, 0.25}, {0.2, 0.166667, 0.142857}, {0.125, 0.111111,0.1}}

Cheers,
Dave Snead

-----Original Message----- 
From: David Barnes
Sent: Tuesday, November 26, 2013 10:24 PM
To: mathgroup at smc.vnet.net
Subject: [mg132064] Integrating a Matrix

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?





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