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] ====