
function retval = qconj(q)
  # function retval = qconj(q)
  # conjugate of a quatern
  #  q = [w,x,y,z] = w*i + x*j + y*k + z
  # qconj(q) = -w*i -x*j -y*k + z

  [a,b,c,d] = quatern(q);
  retval = quatern(-a,-b,-c,d);
endfunction

