Message Boards Message Boards

2 Replies
0 Total Likes
View groups...
Share this post:

Numerical integration over x as a function of parameter g

I'm trying to execute:

Integrate[f(x, g), {x, a, b}, {g, c ,d }, Axes -> True, PlotRange -> All, AxesLabel -> {"IN", "g "}]

However, I have imported numerical values of f(x, g), {x, a, b }, and {g, c ,d} from an excel spread sheet into mathematica.

How do I set up the integrated values (ordinate) from a>b as a function of g (abscissa) over c>d.


2 Replies

You'll probably want to do a two dimensional interpolation from the list of values on the grid {a,b} X {c,d}. You can then use NIntegrate to find the integral in question.

If you really want the slice values you can instead integrate from c to d with fixed a<=x<=b, or vice versa (the question is not really clear in this specific).

POSTED BY: Daniel Lichtblau

Hi. I'm not sure I fully understand your question. Can you show us what code you have now? Integrate takes two arguments and does not have Axes, PlotRange, and AxesLabel as optional arguments. Your code shows Integrate taking three arguments and those optional arguments. I am not sure what it is intended to do.

POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract