handle different input types in clmath