MathGroup Archive 2006

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

Search the Archive

Re: ListIntegrate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67928] Re: ListIntegrate
  • From: dh <dh at metrohm.ch>
  • Date: Mon, 17 Jul 2006 06:51:45 -0400 (EDT)
  • References: <e959ei$crp$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
the culprit is the package "ListIntegrate" that is not properly written. 
You may read this package once, but you get an error messages if you 
read it a second time. The reason is that at the end of this package a 
number of symbols, that are defined in the package, are protected. If 
you read the package a second time you get a message complaining that 
you want to overwrite a protected symbol. A fix would be to unprotect 
these symbols at the beginning of the package.
The easiest solution for you is to restart Mathematica (or use 
CleanSlate) and replace: << NumericalMath`ListIntegrate` by: 
Needs["NumericalMath`ListIntegrate`"]. This will ensure that the package 
is only read once.

Daniel

granto wrote:
> I swear this function works differently every time I try it.  I'm using version 5.0.0.0
> 
> x = Import["x.dat"]
> 
> {{-0.63144, 4.45231}, {0.03077, -6.4275}, 
> {-0.73023, 2.0237}, {-0.15044, 0.824548}, etc...
> 
> << NumericalMath`ListIntegrate`
> (I've also tried 
> Needs["NumericalMath`ListIntegrate`"] )
> 
> Listintegrate[x,1]
> 
> 
> 
> It either gives me the answer, or just repeats what I said, e.g.
> 
> ListIntegrate {{-0.63144, 4.45231}, {0.03077, -6.4275}, 
> {-0.73023, 2.0237}, {-0.15044, 0.824548} and gives me no answer.
> 
> Sometimes <<NumericalMath`ListIntegrate` gives me this error, sometimes it doesn't, but I've seen ListIntegrate give me the answer w/ and w/out this error:
> 
> SetDelayed:write:
> Tag ListIntegrate in ListIntegrate[c]_?VectorQ,
> h_,k_Integer : 3] is Protected.
> 
> Obviously I'm a noob and I need some real help here.  Thanks very much.  grant
> 


  • Prev by Date: Re: ListIntegrate
  • Next by Date: Re: orthogonal functions from normalized standing wave functions
  • Previous by thread: Re: ListIntegrate
  • Next by thread: How to show multiple connections?