Grading
GradePlot
Calling Sequence
Parameters
Options
Description
Examples
GradePlot(ref, response, plotview)
ref
-
an object or a list/rtable of objects representing the correct solutions
response
an object or a list/table of objects representing the response(s) to be compared to correct solutions
plotview
[range, range] ; the plot window
gradebetweenpoints : boolean ; if true (default), then grade the curve between the user-specified points only instead of over the entire plot view
tolerance : numeric value between 0. and 1. ; relative tolerance
Grade the functions specified in parameter ref, using the candidate user responses in parameter response. Note that the order of the items in response do not have to match the order of the items in ref.
Each element in ref or response is one of the following objects: LinearFunction, QuadraticFunction, AbsoluteValueFunction, GridPoint, ExponentialFunction, LogarithmicFunction, Inequalities, Segment.
The gradebetweenpoints option, if set to true, causes the response curve, if given as a set of points, to be checked over the x-range of its points instead of over the entire plot range. This is particularly useful in cases where very small errors in the response points could lead to large errors in the curve outside the region of interest. However, if the range of the points is extremely small, it is possible for GradePlot to grade a curve as correct even if it looks incorrect outside the range of the points. It is recommended that response points covering a sufficiently large x-range be provided or the gradebetweenpoints option be set to false if this problem is a concern.
The tolerance parameter determines how close the two curves must be to one another for the response to be deemed correct. The closer the value is to zero, the more accurate the response must be to be graded as correct.
with⁡Grading:
Functions can be constructed in different ways.
GradePlot⁡GridPoint⁡2.,3.,GridPoint⁡2.02,2.99,−5..5,−5..5
1.
GradePlot⁡LinearFunction⁡3⁢x−4,LinearFunction⁡0,−4,4,7.97,−10..10,−10..10
GradePlot⁡LinearFunction⁡y=3⁢x−4,LinearFunction⁡0.5,−4,4,8,−10..10,−10..10
0.
GradePlot⁡LinearFunction⁡x=2,LinearFunction⁡2,−1,2,5,−10..10,−10..10
GradePlot⁡QuadraticFunction⁡x2−4⁢x+4,QuadraticFunction⁡2,0,0,4,−10..10,−10..10
GradePlot⁡QuadraticFunction⁡x2−4⁢x+4,QuadraticFunction⁡2,0.8,0,4,−10..10,−10..10
GradePlot⁡QuadraticFunction⁡x2−4⁢x+4,LinearFunction⁡2,0.8,0,4,−10..10,−10..10
Lists of functions can be graded. Order does not matter.
GradePlot⁡LinearFunction⁡3⁢x−4,LinearFunction⁡x=2,LinearFunction⁡2,−1,2,5,LinearFunction⁡0,−4,4,8,−10..10,−10..10
Some functions can have restricted domains.
GradePlot⁡QuadraticFunction⁡x2,domain=RealRange⁡Open⁡5.0,∞,QuadraticFunction⁡0,0,1,1,−10..10,−10..10
GradePlot⁡QuadraticFunction⁡x2,domain=RealRange⁡Open⁡5.0,∞,QuadraticFunction⁡0,0,1,1,domain=RealRange⁡Open⁡4.999,∞,−10..10,−10..10
See Also
Download Help Document