Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can always use a Python def:

sage: def f(v):
    return v.dot_product(vector((1,1)))

sage: f(vector((2,1)))
3