The examples below show various ways to use the PracticeSheet command. Execute any of these examples to see and interact with the generated worksheets.
Simple example -- two term addition problems with negative and positive integers.
Even simpler -- two term addition problems without negatives
Add a title and instructions, and customize the number of rows and columns. These problems will use the variable x.
Addition with Variables
Sum the following quantities.
Each problem in this set may use a different variable, not just x.
Distributive Multiplication
Expand each expression using the distributive property
Expressions in this example use the variables x and y.
Addition with Variables
Sum the following quantities.
Note that the default check-my-work algorithm requires fully reduced fractions.
Addition of Fractions
Add and reduce each expression
In this example, the solution option is given the Maple command, expand, which is applied to the input in order to generate the expected solution.
Distributive Multiplication
Expand each expression using the distributive property
Reverse of the above, we need to use a procedure in order to generate expressions that are easily factorable.
Factor
Factor each expression
Drill and practice for a differentiation method.
Differentiation - Power Rule
Differentiate each expression using the power rule.
Drill and practice for integration methods. Note the caveat in the message text (see the next example for a workaround).
Integration - Power Rule
Integrate each expression using the power rule.
Do not include a constant of integration in your solution.
This example provides a custom grading procedure that allows a student to put in a constant of integration or not.
>
|
Student:-Basics:-PracticeSheet("%int(variable(x)^integer(range=2..20),variable(x))",
title="Integration - Power Rule",
message="Integrate each expression using the power rule.",
compare = proc(resp,q)
local c := indets(value(resp)) minus {x};
if nops(c) = 1 then
c := c[1];
else
c := 0;
fi;
InertForm:-SameStructure(resp-c,value(q));
end proc,
state=[]
,'inline');
|
Integration - Power Rule
Integrate each expression using the power rule.
This example uses custom text in front of the answer box, where the default = doesn't make sense.
Solve Linear Equations
Solve for x.
This example uses a custom comparison procedure and the comparebyindex option along with state arrays that hold the question objects.
>
|
Student:-Basics:-PracticeSheet( (row,col)->MyPerms1[row,col] %. MyPerms2[row,col],
ncols=1,
comparebyindex=true,
compare = proc(resp,idx)
evalb(eval(MyPerms1[op(idx)] . MyPerms2[op(idx)]) = Perm(resp));
end proc,
state=['MyPerms1','MyPerms2'],
message="Use square brackets to input your result, for example [[1,2],[3,4]] instead of (1,2)(3,4)",
width=200,
inline
);
|
Use square brackets to input your result, for example [[1,2],[3,4]] instead of (1,2)(3,4)