I would like to have the answer checker recognize

an expression such as

e,a^6,a^12,a^18,a^24

as a correct answer.

Separate from this and in other problems, I would like Webwork to recognize

{e,a^6,a^12,a^18,a^24}

as a correct answer.

What I tried was

ANS(fun_cmp("e,a^6,a^12,a^18,a^24", vars=>['e','a']));

for one, and

ANS(fun_cmp("{e,a^6,a^12,a^18,a^24}", vars=>['e','a']));

for the other.

Both give errors when I try to enter these as answers.

The former gives an error message

"Your fifth formula is incorrect"

while the second gives the error message

"The parentheses for your list seem to be missing"

I cannot find anything online, and nothing else that I have tried works either.

It is driving me nuts, so any help greatly appreciated.

Thanks.