itensor and reset()



Jean-Fran?ois,

I don't think you are doing anything wrong. The itensor package internally
relies on LISP properties to record things such as tensor component
definitions; these are not reset by either reset() or kill(all). You can get
rid of a previous definition explicitly using remcomps() (that is,
remcomps(g) in this case).


Viktor




-----Original Message-----
From: maxima-bounces at math.utexas.edu [mailto:maxima-bounces at math.utexas.edu]
On Behalf Of jfr.maurel at gmail.com
Sent: Sunday, November 04, 2012 12:45 PM
To: Maxima at math.utexas.edu
Subject: itensor and reset()

Hi,

The first time I execute those commands I obtain the expected result:
reset()$
kill(all)$
ratprint:false$
load(itensor)$
components(g([],[i,j]),e([],[i])*p([],[j]))$
ishow(g([],[i,j]))$

but if I execute twice I obtain:
Improper 1st arg to COMPONENTS: e([],[i])*p([],[j])
  -- an error. To debug this try: debugmode(true);

It seems that definition of g is still in memory.
How could I get rid of previous definition or am I doing something wrong?

I am using wxMaxima on windows 7.
build_info:
("5.28.0-2","2012-08-27 23:16:48","i686-pc-mingw32","GNU Common Lisp 
(GCL)","GCL 2.6.8")

Regards

-- 
Jean-Fran?ois MAUREL
PIMECA
http://www.pimeca.com

_______________________________________________
Maxima mailing list
Maxima at math.utexas.edu
http://www.math.utexas.edu/mailman/listinfo/maxima