Esempio

Il taglio con fattore r nella direzione v = (1, 0) dell'asse x è definito dalla matrice matrix([[1, 0], [r, 1]]) : T(x,y) = (x+r*y, y) .

> Sh:=(v,r)->matrix(2,2,[1-r*v[1]*v[2],-r*v[2]^2,r*v[1]^2,1+r*v[1]*v[2]]): Sh(v,r) denota la matrice che definisce il taglio (dal termine inglese 'shear')

> Sh([1,0],r);

matrix([[1, 0], [r, 1]])

> disegno(trasforma([[0,0],[2,0],[2,2],[0,2],[0,0]],Sh([1,0],1)));

[Maple Plot]

> figura:=matrix([[1,1],[3,1],[1.8,2],[1.5,3],[1,1]]):

> f2:=trasforma(figura,Sh([2/sqrt(5),1/sqrt(5)],3/2)):

> disegni({figura,f2});

[Maple Plot]