scientific_notationp(ex) returns true if ex is written in the form a10^n. So you can check CASEqual SAns=scientific_notationp(ans1) TAns=true. Note you probably want to turn Question-level simplify off in the options so the model answer is displayed correctly.