Hello!
I don't see these problems on maxima cvs branch compiled with gcl,cmucl&sbcl.
Yet, I suggest don't use tsetup() at all! With tsetup() you can not define
more than one metric per one maxima session. Instead, I propose you to
define the metric via matrix lg and metric variables via vector omega, and s
dimension as variable dim. Please, find examples "swartz.dem" and
"itensor.dem" in share/tensor dir. Also, please be sure that every of this
demos run ok on your system.
As concerning to your example you can use the following,
(C1) display2d:false;
(D1) FALSE
(C2) load(ctensr);
(D2) ?\/usr\/share\/maxima\/5\.9\.1\/share\/tensor\/ctensr\.mac
(C3) (dim:2,OMEGA:[x,y])$
(C4) lg:matrix([x^3,0],[0,x^2]);
(D4) MATRIX([x^3,0],[0,x^2])
(C5) ug:invert(lg);
(D5) MATRIX([1/x^3,0],[0,1/x^2])
(C6) christof(all);
(E6) lcs[1,1,1] = 3*x^2/2
(E7) lcs[1,2,2] = x
(E8) lcs[2,2,1] = -x
(E9) mcs[1,1,1] = 3/(2*x)
(E10) mcs[1,2,2] = 1/x
(E11) mcs[2,2,1] = -1/x^2
(D11) DONE
(C11) riccicom(all);
(E12) ricci[1,1] = 3/(2*x^5)
(E13) ricci[2,2] = 3/(2*x^5)
(D13) DONE
(C13) scurvature();
(D13) 3/x^5
(C14)
best rgds,
Valery
On Sunday 11 April 2004 22:42, David Reese wrote:
|Hi,
|
|I am brand-new to using maxima. I wanted to use
|the ctensr package, but had the following problem
|with tsetup():
|
|(C3) tsetup();
|enter the dimension of the coordinate system:
|2;
|do you wish to change the coordinate names?
|no;
|do you want to
|
|1. enter a new metric?
|
|2. enter a metric from a file?
|
|3. approximate a metric with a taylor series?
|1;
|
|Is the matrix 1. Diagonal 2. Symmetric 3.
|Antisymmetric 4. General
|Answer 1, 2, 3 or 4 : 1;
|Row 1 Column 1: x^3;
|Row 2 Column 2: x^2;
|
|Matrix entered.
|enter functional dependencies with the depends
|function or 'n' if none
|no;
|do you wish to see the metric?
|yes;
| [ 3 ]
| [ x 0 ]
| [ ]
| [ 2 ]
| [ 0 x ]
|
|Improper argument to IDENT:
|2
|#0: metric()(ctensr.mac line 161)
|#1: newmet()(ctensr.mac line 119)
|#2: PRED(opt=1)(ctensr.mac line 107)
| -- an error. Quitting. To debug this try
|DEBUGMODE(TRUE);)
|(C4)
|
|
|On futher investigation, I get the following
|problem with ident (2):
|
|(C4) ident(2);
|Improper argument to IDENT:
|2
| -- an error. Quitting. To debug this try
|DEBUGMODE(TRUE);)
|(C5)
|
|I am using maxima 5.9.0 with clisp 2.33 (both
|built from source on a home-compiled linux system).
|
|Has anyone else seen this problem? If so, does
|anyone have a fix? I searched through the bugs on
|the maxima site, but did not find anything related
|to ident and tsetup.
|
|Thanks,
|David Reese
|
|
|
|=====
|David E. Reese
|dereese_cei@yahoo.com
|Cogitare, Experiri, Investigare
|
|__________________________________
|Do you Yahoo!?
|Yahoo! Tax Center - File online by April 15th
|http://taxes.yahoo.com/filing.html
|
|_______________________________________________
|Maxima mailing list
|Maxima@www.math.utexas.edu
|http://www.math.utexas.edu/mailman/listinfo/maxima