Oh, sorry ... maybe you were looking for something like: (%i1) magnitude(x) := sqrt(x.x); (%o1) magnitude(x):=sqrt(x.x) (%i2) magnitude([1,2,3]); (%o2) sqrt(14) Barton