Re: ListIntegrate
- To: mathgroup at smc.vnet.net
- Subject: [mg67923] Re: ListIntegrate
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Fri, 14 Jul 2006 02:11:21 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/13/06 at 6:53 AM, grantflashdance at yahoo.com (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. Getting your input returned to you is a sure sign the package has not been loaded before trying to use the function defined by the package. That will occur if either the package failed to load for some reason or you failed to execute Needs or Get before trying to use the function. >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. I suspect this is not a problem with the package. Instead it likely has to do with an interaction between the package and other code in your notebook. That is, I can do In[1]:= x={{-0.63144,4.45231},{0.03077,-6.4275},{-0.73023,2.0237},{-0.15044,0.824548}}; In[2]:= <<NumericalMath`ListIntegrate` In[3]:= ListIntegrate[x,1] Out[3]= 1.26908 in a fresh session with no problems whatever. -- To reply via email subtract one hundred and four