question about NIntegrate

*To*: mathgroup at smc.vnet.net*Subject*: [mg124957] question about NIntegrate*From*: Leslaw Bieniasz <nbbienia at cyf-kr.edu.pl>*Date*: Tue, 14 Feb 2012 06:38:39 -0500 (EST)*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com

Hi, 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.} Strangely, if my function has only one parameter, the following code works fine: y=10; NIntegrate[Exp[-(x-y)],{x,0,Infinity}] giving the result 22026.5 What am I doing wrong? Leslaw

**Follow-Ups**:**Re: question about NIntegrate***From:*Bob Hanlon <hanlonr357@gmail.com>