elas function

Calculating and returning elasticities