u := [1,0,-1]: v := [3,-2,1]: n := [1,2,1]: dotprod(v,n);