GradePlot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Grading

  

GradePlot

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

GradePlot(ref, response, plotview)

Parameters

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

Options

• 

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

Description

• 

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.

Examples

withGrading:

Functions can be constructed in different ways.

GradePlotGridPoint2.,3.,GridPoint2.02,2.99,5..5,5..5

1.

(1)

GradePlotLinearFunction3x4,LinearFunction0,4,4,7.97,10..10,10..10

1.

(2)

GradePlotLinearFunctiony=3x4,LinearFunction0.5,4,4,8,10..10,10..10

0.

(3)

GradePlotLinearFunctionx=2,LinearFunction2,1,2,5,10..10,10..10

1.

(4)

GradePlotQuadraticFunctionx24x+4,QuadraticFunction2,0,0,4,10..10,10..10

1.

(5)

GradePlotQuadraticFunctionx24x+4,QuadraticFunction2,0.8,0,4,10..10,10..10

0.

(6)

GradePlotQuadraticFunctionx24x+4,LinearFunction2,0.8,0,4,10..10,10..10

0.

(7)

Lists of functions can be graded. Order does not matter.

GradePlotLinearFunction3x4,LinearFunctionx=2,LinearFunction2,1,2,5,LinearFunction0,4,4,8,10..10,10..10

1.

(8)

Some functions can have restricted domains.

GradePlotQuadraticFunctionx2,domain=RealRangeOpen5.0,,QuadraticFunction0,0,1,1,10..10,10..10

0.

(9)

GradePlotQuadraticFunctionx2,domain=RealRangeOpen5.0,,QuadraticFunction0,0,1,1,domain=RealRangeOpen4.999,,10..10,10..10

1.

(10)

See Also

Grading