Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Integrating a Matrix
Replies: 6   Last Post: Nov 29, 2013 3:48 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Dave Snead

Posts: 52
Registered: 12/13/04
Re: Integrating a Matrix
Posted: Nov 28, 2013 2:19 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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
Subject: 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?






Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.