The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.symbolic

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: macsyma 2.4 gradef behavior
Replies: 1   Last Post: Apr 19, 2012 1:34 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jim Turner

Posts: 29
Registered: 12/13/04
macsyma 2.4 gradef behavior
Posted: Apr 19, 2012 10:30 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I have a problem where it is convenient to define only the first two
partial derivatives of a function of n-variables. The code I have
allows proper calculations of the type:

gradef( rsw, i, rwi );
gradef( rsw, j, rwj );
gradef( rsw, k, rwk );
gradef( rsw, l, rwl );
gradef( rsw, m, rwm );
gradef( rsw, n, rwn );
gradef( rsw, p, rwp );
gradef( rsw, q, rwq );
gradef( rsw, v, rwv );
gradef( rsw, w, rww );

Because I have several variables to define it would be convenient to
define an operation of the form:

var:[i,j,k,l,m,n,p,q,v,w] /* tensor indicies */
par:makelist( concat( rw, part(var,ii) ),ii,1,10) /* list of partials
to be defined */
for ii:1 thru 10 do gradef( rsw, part(var,ii), part(par,ii) ) /*
define partials */
.....till done.

when the code compiles I get an error stating the gradef does not work
with arrays.

My question:Does the maxima code overcome this limitation?
Jim Turner, TAMU, Aerospace Eng.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.