From: Leonid Shifrin on
Hi Sjoerd,

I do confirm the crash (M7.0, WinXp 32). The following seems to help:
redefine your function to guard against non-numerical arguments as

In[1] :=

Clear[sp1,x];
sp1[x_?NumericQ] = D[sp[x], x];

In[2]:= NIntegrate[sp1[x], {x, -9, 4}]

Out[2]= 12.5726

Regards,
Leonid


On Wed, Nov 11, 2009 at 12:27 PM, Sjoerd C. de Vries <
sjoerd.c.devries(a)gmail.com> wrote:

> Hi all,
>
> The following leads to a consistent crash on my PC:
>
> tbl =
> {{3.7372349521625203`, 7.8999536564180906`}, {-1.5683136806862397`,
> 3.549628027104541`}, {-9.326537784015741`, -5.7268546790245844`},
> {-6.8805945246545`, 6.849090400951159`}}
>
> sp = Interpolation[tbl, Method -> "Spline"];
>
> sp1[x_] = D[sp[x], x];
>
> NIntegrate[sp1[x], {x, -9, 4}].
>
> Same on yours?
>
> Cheers -- Sjoerd
>
>


From: Syd Geraghty on
Hi Sjoerd,

I do not get a system problem but the error:

NIntegrate::inumr: The integrand sp1[x] has evaluated to non-numerical values for all sampling points in the region with boundaries {{-9,4}}. >>


Cheers .... Syd

Syd Geraghty B.Sc, M.Sc.

sydgeraghty(a)mac.com

Mathematica 7.0.1.0 for Mac OS X x86 (64 - bit) (12th September 2009)
MacOS X V 10.6.1 Snow LeopardMacBook Pro 2.33 GHz Intel Core 2 Duo 2GB RAM





On Nov 11, 2009, at 1:27 AM, Sjoerd C. de Vries wrote:

> tbl =
> {{3.7372349521625203`, 7.8999536564180906`}, {-1.5683136806862397`,
> 3.549628027104541`}, {-9.326537784015741`, -5.7268546790245844`},
> {-6.8805945246545`, 6.849090400951159`}}
>
> sp = Interpolation[tbl, Method -> "Spline"];
>
> sp1[x_] = D[sp[x], x];
>
> NIntegrate[sp1[x], {x, -9, 4}].



From: Herman Kuun on
Nope. No crash.

Mathematica-7.01

Linux 2.6.30-gentoo-r5 #3 SMP Wed Nov 11 11:22:10 SAST 2009 x86_64 AMD
Athlon(tm) 64 X2 Dual Core Processor 3800+ AuthenticAMD GNU/Linux

Best
Herman

On Wed, Nov 11, 2009 at 11:27 AM, Sjoerd C. de Vries <
sjoerd.c.devries(a)gmail.com> wrote:

> Hi all,
>
> The following leads to a consistent crash on my PC:
>
> tbl =
> {{3.7372349521625203`, 7.8999536564180906`}, {-1.5683136806862397`,
> 3.549628027104541`}, {-9.326537784015741`, -5.7268546790245844`},
> {-6.8805945246545`, 6.849090400951159`}}
>
> sp = Interpolation[tbl, Method -> "Spline"];
>
> sp1[x_] = D[sp[x], x];
>
> NIntegrate[sp1[x], {x, -9, 4}].
>
> Same on yours?
>
> Cheers -- Sjoerd
>
>


From: DrMajorBob on
Yes, it crashes consistently here too, on my Intel iMac.

$Version

"7.0 for Mac OS X x86 (64-bit) (February 19, 2009)"

$ReleaseNumber

1

Bobby

On Wed, 11 Nov 2009 03:27:51 -0600, Sjoerd C. de Vries
<sjoerd.c.devries(a)gmail.com> wrote:

> Hi all,
>
> The following leads to a consistent crash on my PC:
>
> tbl =
> {{3.7372349521625203`, 7.8999536564180906`}, {-1.5683136806862397`,
> 3.549628027104541`}, {-9.326537784015741`, -5.7268546790245844`},
> {-6.8805945246545`, 6.849090400951159`}}
>
> sp = Interpolation[tbl, Method -> "Spline"];
>
> sp1[x_] = D[sp[x], x];
>
> NIntegrate[sp1[x], {x, -9, 4}].
>
> Same on yours?
>
> Cheers -- Sjoerd
>


--
DrMajorBob(a)yahoo.com

From: DrMajorBob on
I get a kernel crash and a beep, with the Front End unaffected.

Bobby

On Wed, 11 Nov 2009 13:49:21 -0600, Sjoerd C. de Vries
<sjoerd.c.devries(a)gmail.com> wrote:

> Hmmm, interesting. Syd Geraghty, also on a mac (Mathematica 7.0.1.0 for
> Mac
> OS X x86 (64 - bit) (12th September 2009)
> MacOS X V 10.6.1 Snow LeopardMacBook Pro 2.33 GHz Intel Core 2 Duo 2GB
> RAM), only gets a system error. All the other responses I get report
> similar
> crashes.
>
> Cheers -- Sjoerd
>
>> -----Original Message-----
>> From: DrMajorBob [mailto:btreat1(a)austin.rr.com]
>> Sent: 11 November 2009 20:40
>> To: Sjoerd C. de Vries; mathgroup(a)smc.vnet.net
>> Subject: Re: kernel crash with integrating the derivative of
>> an Interpolation
>>
>> Yes, it crashes consistently here too, on my Intel iMac.
>>
>> $Version
>>
>> "7.0 for Mac OS X x86 (64-bit) (February 19, 2009)"
>>
>> $ReleaseNumber
>>
>> 1
>>
>> Bobby
>>
>> On Wed, 11 Nov 2009 03:27:51 -0600, Sjoerd C. de Vries
>> <sjoerd.c.devries(a)gmail.com> wrote:
>>
>> > Hi all,
>> >
>> > The following leads to a consistent crash on my PC:
>> >
>> > tbl =
>> > {{3.7372349521625203`, 7.8999536564180906`}, {-1.5683136806862397`,
>> > 3.549628027104541`}, {-9.326537784015741`, -5.7268546790245844`},
>> > {-6.8805945246545`, 6.849090400951159`}}
>> >
>> > sp = Interpolation[tbl, Method -> "Spline"];
>> >
>> > sp1[x_] = D[sp[x], x];
>> >
>> > NIntegrate[sp1[x], {x, -9, 4}].
>> >
>> > Same on yours?
>> >
>> > Cheers -- Sjoerd
>> >
>>
>>
>> --
>> DrMajorBob(a)yahoo.com
>


--
DrMajorBob(a)yahoo.com