A matrix in SL(2, Z) acts on the right on quadratic forms by the rule
f(x, y) ((r s atop t u)) = f(rx + sy, tx + uy),
which is provided in Magma by the operator *.
The action of SL(2, Z) on forms.