Hello, I'm new at Sage.  Having come from a Maple background, my
largest issue is with how Sage handles variables.  Hopefully, my
question is somewhat well formed.

My specific issue is with the following:  from a diagonal matrix I
want to produce a vector of exponential functions of the respective
diagonal entries where each exponential function is multiplied by an
unknown constant.  The following, although it is likely poorly
implemented, does the trick without the constants for a 3x3 diagonal
matrix D:

f=lambda i:e^(D[i,i]*x)
sol=vector(map(f,range(3)))

I want to do the following without initializing each c[i] manually:

f=lambda i:c[i]*e^(D[i,i]*x)

It seems like this should be simple but for the life of me I can't
figure out how to do it.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using "remove me" as the subject.

Reply via email to