dim function

The dimension of a weyl object