Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16281
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Bob Hanlon <hanlonr357@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integrating a Matrix |
| Date | Thu, 28 Nov 2013 07:16:02 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <l76qji$obj$1@smc.vnet.net> (permalink) |
| References | <20131127062412.B370C69F5@smc.vnet.net> |
| Lines | 43 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 28 Nov 2013 07:20:51 GMT |
| NNTP-Posting-Host | 611dcbae.news.twtelecom.net |
| X-Trace | DXC=<6S]JLafBhl2Ob3WODlimiC_A=>8kQj6m;[h;PUXBgbd3`G[5H2>>MbEFiONJ7[Gof8\Phcd70T0n |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | csiph.com comp.soft-sys.math.mathematica:16281 |
Show key headers only | View raw
tab = Table[f[i, j][x], {i, 3}, {j, 3}]
Integrate[tab, {x, 0, 1}]
tab2 = tab /. f[i_, j_][x_] -> (i + j) x^i
{{2*x, 3*x, 4*x}, {3*x^2,
4*x^2, 5*x^2}, {4*x^3,
5*x^3, 6*x^3}}
Integrate[tab2, {x, 0, 1}]
{{1, 3/2, 2}, {1, 4/3, 5/3},
{1, 5/4, 3/2}}
NIntegrate[tab2, {x, 0, 1}]
{{1., 1.5, 2.}, {1., 1.33333, 1.66667}, {1., 1.25, 1.5}}
Bob Hanlon
On Wed, Nov 27, 2013 at 1:24 AM, David Barnes <barnes@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?
>
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Integrating a Matrix Bob Hanlon <hanlonr357@gmail.com> - 2013-11-28 07:16 +0000
csiph-web