Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8548 > unrolled thread
| Started by | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| First post | 2012-02-15 09:46 +0000 |
| Last post | 2012-02-15 09:46 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: question about NIntegrate Bob Hanlon <hanlonr357@gmail.com> - 2012-02-15 09:46 +0000
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Date | 2012-02-15 09:46 +0000 |
| Subject | Re: question about NIntegrate |
| Message-ID | <jhfuth$sol$1@smc.vnet.net> |
$Version
"8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"
y = 10;
z = 1;
NIntegrate[Exp[-(x - y)/z], {x, 0, Infinity}]
22026.5
Works fine here. Try starting with a fresh session.
Bob Hanlon
On Tue, Feb 14, 2012 at 6:38 AM, Leslaw Bieniasz <nbbienia@cyf-kr.edu.pl> wrote:
>
>
> 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
>
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web