In the chandas (Vedas) the affix ṭac comes after a tat-puruṣa samāsa in Neuter Gender ending in an or as,
Thus हस्ति + चर्मन् = हस्तिचर्मम् as in हस्तिचर्मे जुहोति, so also ऋषभचर्मेऽभिषिंचति ॥ So also when a word ends in अस् as, देवच्छन्दसानि (देव + छन्दस् = देव + छन्दस् + टच् = देवच्छन्दसम्) so also मनुष्य च्छन्दसानि ॥
Why do we say \when ending in अन् or अस्\? Observe बिल्वदारु जुहोति ॥ Why do we say \in the Neuter\? Observe सुत्रामाणं पृथिवीं द्यामनेहसम् ॥
Vart:- The word वा \optionally\ should be read into the sutra. Therefore टच् is optionally added, as ब्रह्मसाम or ब्रह्मसामम्, देवच्छन्दः or देवच्छन्दसम् ॥,
