Petr Lorenz <lorenzp@eikon.tum.de> writes:
> (C1) load(vect);
>
> (D1) /usr/local/share/maxima/5.9.0/share/vector/vect.mac
> (C2) load(vect_transform);
>
> (D2) /usr/local/share/maxima/5.9.0/share/vector/vect_transform.mac
> (C3) aa:laplacian f;
>
> (D3) LAPLACIAN F
> (C4) scalefactors(cartesian3d);
>
> (D4) DONE
> (C5) express(aa);
>
> 2 2 2
> d F d F d F
> (D5) --- + --- + ---
> 2 2 2
> dZ dY dX
> (C6) scalefactors(polar);
>
> Error: MACSYMA-TOP-LEVEL [or a callee] requires more than one argument.
> Fast links are on: do (si::use-fast-links nil) for debugging
> Error signalled by MACSYMA-TOP-LEVEL.
> Broken at MACSYMA-TOP-LEVEL. Type :H for Help.
> MAXIMA>>
>
> Am I doing something wrong?
No, vect.mac is slightly broken, but the reasons are known and the
package will be fixed soon (in CVS). Meanwhile, please try the
preliminary patch given in
http://www.math.utexas.edu/pipermail/maxima/2003/003591.html
This should give
(C6) scalefactors(polar);
(D6) DONE
(C7) express(aa);
df
------ ABS(R)
d dTHETA d df
------ (-------------) + -- (-- ABS(R))
dTHETA 2 dR dR
R
(D7) ---------------------------------------
ABS(R)
(C8) assume(r>0); /* Arghh */
(D8) [R > 0]
(C9) d7,abs;
df
------
d df d dTHETA
-- (-- R) + ------ (------)
dR dR dTHETA R
(D9) ---------------------------
R
If you need prefix operators like the divergence DIV, look at
http://www.math.utexas.edu/pipermail/maxima/2003/003592.html
but note that this changes the parser (which is the reason why I am
still waiting for comments before checking it in).
Wolfgang