Let's say I have a vector space V, a matrix M, and I want to understand the derivative of the function v -> ||M*v|| at some point in V.
As far as I can tell, the easiest way to do this is to use a symbolic vector v, then calculate M*v, then take diff(), and then I can plug in a tangent vector.
As part of this, I would then run
x, y = var('x, y')
v = vector([x,y])
if V happens to be two-dimensional. This works fine in a new session, but if in the same session I've already used a vector space somewhere it says
'sage.modules.free_module_element.FreeModuleElement_generic_sparse' object is not callable
Why is that? And is there a better way to do this?