First time here? Check out the FAQ!
answered 2024-03-03 17:56:04 +0100
Is this what you want?
f_1 = lambda M,i: 2*M[i,0]+3*M[i,1]
updated 2024-03-03 17:58:24 +0100
f_1 = lambda M,i: 2*M[i,0]+3*M[i,1] print( f_1(Matrix([[10,12],[25,2]]), 1) )