Mode for answers in feedback for STACK questions

Mode for answers in feedback for STACK questions

by Jorge Aldana -
Number of replies: 1

Hi, I'm a newbie in STACK so I have a simple problem but I can't seem to solve it! Hoping someone can guide me to the fix. So I'm doing a multi-part question (see questions variables below) but I need the answer in my feedback NOT to show the simplified version of an equation that was input by student: Here's my prob:

Here's my prob: it displays 6w=36 as the answer ta2 but I need it to display 2(2w+w)=36

simp:false;

ta1:2*w;

l:2*w;

P:2*(l+w);

ta2:P=36;   

simp:true;

ta3:solve(P=36,w);

ta3:setify(maplist(rhs,ta3));

Average of ratings: -
In reply to Jorge Aldana

Re: Mode for answers in feedback for STACK questions

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Here you need to create two, different Maxima expressions.

1. an un-simplified version to use in the input as the "teacher's answer"
2. a simplified version to use in the potential response tree.

A straightforward way to do this, often, is to have

ta1:2*(2*w+w)=36;
tas1:ev(expand(ta1),simp);

Of course, you'll need to modify the above.

Chris