SolveFeedback - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Grading : SolveFeedback

Grading

  

SolveFeedback

  

generate feedback for a step-by-step solution

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

SolveFeedback(solution,options)

Parameters

solution

-

solution steps {canvas-string,table,rtable,list}

options

-

(optional) equation(s) of the form option = value where option is one of variables, equations, or solutions

Options

• 

variables = list, the variable(s) to solve for

• 

equations = list, the initial expression

• 

solutions = list, the solutions that are relevant

Description

• 

The SolveFeedback command is the procedure behind the SolvePractice command.  It analyzes a step-by-step solution to the given problem and provides feedback for each step of the solution.  It can also be called directly, or used behind the scenes for other interactive applications of your own design.

• 

The solution argument, when part of an interactive canvas-based application, is a XML-based string representing a canvas, or a table representing the embedded component name mapping.  In this case, the returned result is a DocumentTools:-Canvas:-Script.

  

When called directly, solution can also be a list or array of expressions.  In this case, the returned result is a list of feedback strings.  The result has one extra string than the number of input steps, concluding with a (possibly empty) summary statement.

• 

The variables = [x] option is useful to provide when the expression to solve for is multivariate.  This clarifies exactly which variable is to be solved for.   As of Maple 2020, the list must contain exactly one variable.

• 

The solutions = [x=0] option allows you to specify which solutions are relevant to the given problem, in order to avoid feedback that prompts to solve for more solutions.

• 

The equations = [...] option allows you to specify the initial expression, as opposed to showing it as the first expression in a canvas.  This way it is up to the user to come up with the equation themselves.

Examples

withGrading:

SolveFeedback2x+3=4x5,2x4x=53,2x=8,x=4

,ok,ok,Good job, this is the correct solution,

(1)

SolveFeedback2x+3=4x5,2x4x=5+3,2x=2,x=1

,Check this step...,consistent with previous step,consistent with previous step,no correct and fully simplified solution found; please try again

(2)

SolveFeedback2x+y=4y,2x=3y,y=23x,variables=y

,ok,Good job, this is the correct solution,

(3)

In this example we create an interactive canvas presenting a word problem.  The input equation is not shown.  Note that the t=-2 root is not part of the solutions list, as it does not make physical sense.

withGrading:

withDocumentTools:-Canvas:

cvNewCanvasAn object is launched at 19.6 meters per second (m/s) from a 58.8-meter tall platform. The equation for the object's height s at time t seconds after launch is,st=3.4220022349×109t2+19.6t+58.8,where s is in meters. When does the object strike the ground?,ScriptButtonCheck Page,Grading[SolveFeedback](_canvas,equations=[t^2-4*t-12=0],variables=[t],solutions=[t=6]);,position=800,90,encode=false:

ShowCanvascv,input=0 = t^2 -4*t -12,0 = (t-6)*(t+2),t=6

The feedback can be generated directly as follows:

SolveFeedback0 = t^2 -4*t -12,0 = (t-6)*(t+2),t=6,equations=t24t12=0,variables=t,solutions=t=6

,ok,Good job, this is a correct solution,Good job, you found the correct solution

(4)

The canvas can also be shared via Maple Learn:

ShareCanvascv

Compatibility

• 

The Grading:-SolveFeedback command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

DocumentTools:-Canvas:-NewCanvas

DocumentTools:-Canvas:-ShareCanvas

Grading

Grading:-SolvePractice