I define a linear transformation object using the following syntax:
def f(v):
l1 = [2*v[0]+3*v[1], 5*v[0]-v[1]]
v1 = vector(l1)
return(v1)
lf = linear_transformation(RR^2, RR^2, f)
lf
The output includes the matrix [[2, 5], [3,-1]] instead of [[2,3], [5,-1]]. Is this a bug or am I doing something wrong?