Grading
SolveFeedback
generate feedback for a step-by-step solution
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
SolveFeedback(solution,options)
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
variables = list, the variable(s) to solve for
equations = list, the initial expression
solutions = list, the solutions that are relevant
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.
with⁡Grading:
SolveFeedback⁡2⁢x+3=4⁢x−5,2⁢x−4⁢x=−5−3,−2⁢x=−8,x=4
,ok,ok,Good job, this is the correct solution,
SolveFeedback⁡2⁢x+3=4⁢x−5,2⁢x−4⁢x=−5+3,−2⁢x=−2,x=1
,Check this step...,consistent with previous step,consistent with previous step,no correct and fully simplified solution found; please try again
SolveFeedback⁡2⁢x+y=4⁢y,2⁢x=3⁢y,y=23⁢x,variables=y
,ok,Good job, this is the correct solution,
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.
with⁡DocumentTools:-Canvas:
cv≔NewCanvas⁡An 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,s⁡t=3.4220022349×109⁢t2+19.6⁢t+58.8,where s is in meters. When does the object strike the ground?,ScriptButton⁡Check Page,Grading[SolveFeedback](_canvas,equations=[t^2-4*t-12=0],variables=[t],solutions=[t=6]);,position=800,90,encode=false:
ShowCanvas⁡cv,input=0 = t^2 -4*t -12,0 = (t-6)*(t+2),t=6
The feedback can be generated directly as follows:
SolveFeedback⁡0 = t^2 -4*t -12,0 = (t-6)*(t+2),t=6,equations=t2−4⁢t−12=0,variables=t,solutions=t=6
,ok,Good job, this is a correct solution,Good job, you found the correct solution
The canvas can also be shared via Maple Learn:
ShareCanvas⁡cv
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:-SolvePractice
Download Help Document
What kind of issue would you like to report? (Optional)