Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16289
| From | Alexei Boulbitch <Alexei.Boulbitch@iee.lu> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Integrating a Matrix |
| Date | 2013-11-29 08:48 +0000 |
| Message-ID | <l79kc5$5mt$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
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?
Hi,
This is a matrix 3x3:
m = Power[x, RandomInteger[{0, 9}, {3, 3}]]
{{x^4, x^6, x^4}, {x^7, x^8, x^4}, {x^6, x^2, x^4}}
And here is the integration:
mInt = Integrate[m, {x, 0, 1}]
{{1/5, 1/7, 1/5}, {1/8, 1/9, 1/5}, {1/7, 1/3, 1/5}}
You may also want to look at the result in the form of a matrix:
mInt//MatrixForm
Have fun, Alexei
Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG
Office phone : +352-2454-2566
Office fax: +352-2454-3566
mobile phone: +49 151 52 40 66 44
e-mail: alexei.boulbitch@iee.lu
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Integrating a Matrix Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-11-29 08:48 +0000
csiph-web