My question is whether it is possible to make Stack assign SI units to variables. For instance, we would have m (as mass in grams) and M (as molar mass in g/mol). Firstly, I want the student to enter the formula for calculating the amount of substance n (in mol). The correct formula is m/M.
Then, I require the correct unit (which is mol). How could I ensure that both mol and g/(g/mol) would be evaluated as correct? So, my question is more theoretical, but likely to be useful in the future.
Thank you in advance.