Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to do symbolic vector/matrix manipulations in Sage?

Hello,

So I have a 2x1 vector $\mathbf{x} \in R^2$, and a function on it called $f(\mathbf{x}) = log(\mathbf{1}^T \mathbf{x})$ which of course, returns a scalar.

I would like to compute the Hessian of this function in Sage, symbolically. That is, I would like it so show me what the 2x2 Hessian matrix would look like, but in terms of the elements of $x$, or even better, in terms of the vector $\mathbf{x}$.

Is there such a way? Thanks.