|
$format_ans =~ s/[\*]//g; #Remove any astrix |
My brother goes to college, and a homework problem on the website was asking the following question:
Factor out the greatest common factor: $15x^4 y^3 + 5x^3y^2$.
However, even though it accepts the following answer as correct:
it says the following one is INCORRECT (even though the Answer Preview shows the same mathematical expression for both inputs):
This seems to be happening because of the formatting of the answer string in the code where asterisks are removed.
In his orientation for WeBWorK, my brother was taught that both ^ and ** can be used interchangably for exponentiation, as can also be seen in here.
Is this a bug or are we misunderstanding something?