Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Two Dimensional Numerical Integration Packages

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4511] Re: Two Dimensional Numerical Integration Packages
  • From: saarinen (Sirpa Saarinen)
  • Date: Fri, 2 Aug 1996 02:22:38 -0400
  • Organization: Wolfram Research, Inc.
  • Sender: owner-wri-mathgroup at wolfram.com

Harald Berndt <haraldb at nature.berkeley.edu> writes:

>Matthew Pettis wrote:
>> 
>> Question:
>> 
>>         Is there a two dimensional numerical integration
>> package somewhere out there?  I could not find one in
>> MathSource.  I would appreciate any help.

>I don't quite see why you need one. Example:

>In[1]:=
>f[x_, y_] := Sin[x + Sin[y]]

>In[5]:=
>NIntegrate[ NIntegrate[ f[x, y], {x, 0, 5} ], {y, 0, 5} ]
>Out[5]=
>2.07016

You can also use NIntegrate directly:

In[1]:= f[x_, y_] := Sin[x + Sin[y]]

In[2]:= NIntegrate[f[x,y],{x,0,5},{y,0,5}]

Out[2]= 2.07016

Sirpa
saarinen at wolfram.com





==== [MESSAGE SEPARATOR] ====


  • Prev by Date: SphericalPlot3D, spherical harmonics, and coloring them?
  • Next by Date: Re: Constrained Min, non-linear
  • Previous by thread: SphericalPlot3D, spherical harmonics, and coloring them?
  • Next by thread: Re: Two Dimensional Numerical Integration Packages