1Function: algsub
2Section: algebras
3C-Name: algsub
4Prototype: GGG
5Help: algsub(al,x,y): element x-y in al.
6Doc: Given two elements $x$ and $y$ in \var{al}, computes their difference
7 $x-y$ in the algebra \var{al}.
8 \bprog
9 ? A = alginit(nfinit(y), [-1,-1]);
10 ? algsub(A,[1,1,0,0]~,[1,0,1,0]~)
11 %2 = [0, 1, -1, 0]~
12 @eprog
13
14 Also accepts matrices with coefficients in \var{al}.
15