Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8540

Re: question about NIntegrate

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: question about NIntegrate
Date 2012-02-15 09:44 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jhfuql$sne$1@smc.vnet.net> (permalink)

Show all headers | View raw


On 2/14/12 at 6:38 AM, nbbienia@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)

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re:  question about NIntegrate Bill Rowe <readnews@sbcglobal.net> - 2012-02-15 09:44 +0000

csiph-web