First time here? Check out the FAQ!
answered 2014-08-13 19:54:56 +0100
You can always use a Python def:
def
sage: def f(v): return v.dot_product(vector((1,1))) sage: f(vector((2,1))) 3