Maxima system constants



On Sat, 2011-07-30 at 14:59 +0000, Doug York wrote:

> 
> I am interested in this process.  I have used the gamma character in a paper to
> indicate the value 2*pi/3, and would like the WXmaxima output to match it.  Can
> anyone help out?
> 

I don't know if this is any help. I have been developing a package that
can handle Lagrangian mechanics equations in (near enough) the format
that they appear in text books; there is a short example session below.
As you can see I used characters that do not normally appear in maxima
output. I did this by cutting and pasting them into tdot.mac. I don't
know how platform dependent this makes it but I can use it in
emacs,wxmaxima and at the command line. Also I'm not sure if all
versions of CL can handle unicode characters (I'm using sbcl).

You could try putting something like:

mygamma: ?$

in a .mac and then loading it into maxima. That's how I got the ? in the
code below. (I needed to do this so I could later concatenate it with
?.)

(%i1) load("tdot.mac")$

(%i2) gcoords(x,y,z)$

(%i3) KE: T = (m/2)*(diff(x,t)^2+diff(y,t)^2+diff(z,t)^2);
                                     2     2     2
                                m (z?  + y?  + x? )
(%o3)                       T = -------------------
                                         2
(%i4) diff(%,diff(x,t));
(%o4)                            ?  (T) = m x?
                                  x?
(%i5) diff(%,t);
                              d
(%o5)                         -- (?  (T)) = m x?
                              dt   x?
(%i6) diff(KE,x);
(%o6)                              ? (T) = 0
                                    x
(%i7) F[x] = diff(diff(T,diff(x,t)),t) - diff(T,x);  
                                d
(%o7)                      F  = -- (?  (T)) - ? (T)
                            x   dt   x?        x
(%i8) gcoords(r,Ltheta)$

(%i9) declare (b,constant)$

(%i10) r = b*Ltheta^2;
                                          2
(%o10)                             r = b ?
(%i11) d(%);
(%o11)                           ?r = 2 b ? ??


Cheers,

Bernard.