Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Preventing NIntegrate from reevaluating after DumpSave and Get

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68804] Re: Preventing NIntegrate from reevaluating after DumpSave and Get
  • From: albert <awnl at arcor.de>
  • Date: Sat, 19 Aug 2006 00:41:07 -0400 (EDT)
  • References: <ec3ps8$2c2$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

> When I load the results back into Mathematica and try to use them things
> are very slow. I suspect that this is because Mathematica retries
> evaluating all the NIntegrate[...] on which it got stuck the first time
> around.
> 
> I have tried e.g.
> 
> Get["MyFile.mx"]

even here the NSolves will be evaluated since Mathematica basically tries to
evaluate everything it sees... 

> sanelist = resultslist /. NIntegrate[___]->NotANumber

> but this also takes ages evaluating the NIntegrate[...].

to import the Results unevaluated, you could try something like this:

Block[{NIntegrate},
Get["MyFile.mx"]/.NIntegrate[___]->NotANumber
]

this is untested, but I think it should work. Anyway it should be worth a
try.

hth,

albert


  • Prev by Date: Re: Preventing NIntegrate from reevaluating after DumpSave and Get
  • Next by Date: Re: calculate Recurrence Equations
  • Previous by thread: Re: Preventing NIntegrate from reevaluating after DumpSave and Get
  • Next by thread: Re: Preventing NIntegrate from reevaluating after DumpSave and Get