Mathematica question



Hi everyone,

I want to define an N-dimensional definite integral in mathematica.
(It's going to be a numerical integration rather than symbolic.)

Eg,

compute integral of f(x) dx

where x can be an N-vector. I don't want to have to specify N in the
definition (although obviously before evaluating the integral, I'll
specify N). I can't think how to define the range of integration in a
neat way in the general case. Eg if the variables are x_{1},
x_{2}, ... x_{N}, how can I specify that the integration range is
(say) R^{N}?

Something like

NIntegrate[ f(x), {x_{1}, -inf, inf}, {x_{2}, -inf, inf}, ..., {x_{N},
-inf, inf} ]

is what I want - but you can't put in the dots obviously...

There must be a neat way to do this. Anyone know it?

Cheers,
MF

.



Relevant Pages

  • about QUAD... with IF
    ... I am new to Matlab. ... I specify a function as follows. ... The problem is QUAD fails to calculate integration of f from 0 to 2, ...
    (comp.soft-sys.matlab)
  • Re: Mathematica question
    ... (It's going to be a numerical integration rather than symbolic.) ... how can I specify that the integration range is ... Numerical integration in multiple dimensions is difficult. ... It is usually done by Monte Carlo or quasi Monte Carlo ...
    (sci.math)
  • Re: Pl explain Integrate`ImproperDump`
    ... Sundar Krishnan schrieb: ... Your's looks like a case of "Garbage in, ... one must specify the integration limits. ...
    (sci.math.symbolic)
  • Re: Mathematica question
    ... (It's going to be a numerical integration rather than symbolic.) ... where x can be an N-vector. ... I don't want to have to specify N in the ... how can I specify that the integration range is ...
    (sci.math)
  • Re: Which computer language program is best for undergrads?
    ... acceptably easy to learn, and are IMO both decently good languages in ... that problem is not a numerical integration. ... Consider the integral of this function over 0..pi/2 for which Mathematica ...
    (comp.programming)

Loading