I'm working with SageMath and I am trying to use it in php with exec() or system(). They dont except multiple commands is what I understood from other questions on this but how would I be able to execute:
sage
sage: m = matrix(ZZ,2, range(4))
sage: m[0,0] = m[0,0] - 3
sage: m
so it can return the solution:
[-3 1]
[ 2 3]