MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: kernel crash with integrating the derivative of an

  • To: mathgroup at smc.vnet.net
  • Subject: [mg104854] Re: [mg104833] kernel crash with integrating the derivative of an
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Thu, 12 Nov 2009 06:00:36 -0500 (EST)
  • References: <200911110927.EAA29333@smc.vnet.net>

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 at 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
>
>



  • Prev by Date: Re: Solving Weissinger's ODE
  • Next by Date: Re: Re: Import from web addresses fails
  • Previous by thread: Re: kernel crash with integrating the derivative of an
  • Next by thread: Re: kernel crash with integrating the derivative of an