Re: question about NIntegrate
- To: mathgroup at smc.vnet.net
- Subject: [mg124974] Re: question about NIntegrate
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Wed, 15 Feb 2012 04:42:48 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
On 2/14/12 at 6:38 AM, nbbienia at cyf-kr.edu.pl (Leslaw Bieniasz)
wrote:
>I want to use function NIntegrate to integrate a function of x that
>depends on two parameters y and z. However, when I write something
>of the kind:
>y=10;
>z=1;
>NIntegrate[Exp[-(x-y)/z],{x,0,Infinity}]
>I get an error: Integrand is not numerical at {x} = {1.}
I don't see an error when I paste your code into a fresh
session. That is:
In[1]:= y = 10;
z = 1;
NIntegrate[Exp[-(x - y)/z], {x, 0, Infinity}]
Out[3]= 22026.5
In[4]:= $Version
Out[4]= 8.0 for Mac OS X x86 (64-bit) (October 5, 2011)