Math App questions display a worksheet that the student has to interact with. The Math App question type allows an instructor to embed a Maple worksheet into the question. The final state of the worksheet is what is graded.
When working with Math App questions, you can upload a Maple worksheet as a file or enter the URL of a MapleNet worksheet directly.
You can grade a Math App question directly inside of Maple T.A. The Math App will be presented to students in the form of a question. A student will then have the ability to manipulate the Math App in order to get credit for this particular question in Maple T.A.
When the student finishes the question, the final state of the Math App question is graded.
You can choose which type of grading to use. There are four options to choose from:
a. No Grading: The Math App will be used for student exploration only.
b. Manual Grading: The Math App will be manually graded by the instructor.
c. Grading Algorithm in Math App: The Math App itself contains a grading procedure called Actions:-Grade. This grading procedure must return a value between 0.0 and 1.0 which represents the student's grade.
d. Grading Algorithm in Maple T.A.: The grading code is specified in the question in Maple T.A. The specified Maple code used to grade the student response should return a value between 0.0 and 1.0 which represents the student's grade.
How to Make a Math App Question Gradeable through Maple
General Steps for making a Math App gradeable through Maple (the Math App itself).
1. Define an `Actions` module with a module export `Grade` in your Math App. This module is recommended for communication with Maple T.A. Note: If you put the Grade procedure in a module with a different name, it will not work properly. The Actions module can optionally define the following exports:
• `InitParams`: can take arguments from Maple T.A. to initialize the worksheet with different parameters.
• `Grade`: a procedure that returns a number in the range 0..1.
• `Answer`: can be used to show the correct answer.
2. Create a Math App question in Maple T.A. using the Math App.
3. Select the option to use the grading algorithm in your Math App worksheet.
How to Make a Math App Question Gradeable through Maple T.A.
- Define an Actions module in your Math App. Export all the procedures and variables you would like to call from Maple T.A.
2. Create a Math App question in Maple T.A. using the Math App.
3. Select Maple T.A. Grading and define the grading code to grade the student response.
Creating a Math App in a Worksheet
There are several different ways you can create your Math Apps using Maple.
- Create a Math App using the Exploration Assistant in Maple.
- Create a Math App using Maple embedded components.
- Download an existing Math App from the Maple Cloud and make modifications to it.
Create a Math App with the Exploration Assistant
There are two ways you can use the Exploration Assistant:
- Right-click and select Explore from the context-sensitive menus.
- Call the Explore command.
General steps for invoking the Exploration Assistant through the context menu.
- Enter your expression in a Maple worksheet.
- Right-click the expression and select Explore. A new Explore dialog box appears.
- Enter lower and upper values for the parameters you want to explore. Select the skip box beside any variables or parameters you do not want to change. Click Explore.
- A new table is created inline with the expression and sliders for your indeterminates. Move the sliders back and forth to see how they change the solution.
- You can now save the assistant for future using File > Save.
Example 1: Explore an Integral Expression
. Tip: You can use the Expression palette to insert the integral.
- Right-click the expression and select Explore. A new Explore dialog box appears. From here, you can set the range of values you would like to explore, as well as select which variables you would like to skip. When you select skip, that parameter remains as a symbolic unknown in the expression; no slider will be created to control that value.
- Enter -5 for the lower values of a and b, and 5 for the upper values. Beside the variable x, check off the skip box. This will leave the variable x unchanged in the expression. When you are finished, click Explore. A new table is generated inline, with a math container for the expression and sliders for the indeterminates a and b.
- Move the sliders back and forth to see how they change the solution.
Calling the Explore Command
General steps for calling the Explore command.
- Enter the expression, , where is the expression you want to explore and press Enter. The Explore dialog box opens.
- Enter lower and upper values for the parameters you want to explore. Select the skip box beside any variables or parameters you do not wish to change. Click Explore.
- A new table is created inline with the expression and sliders for your indeterminates. Move the sliders back and forth to see how they change the solution.
- You can now save the assistant using File > Save.
Example 2: Explore an Expansion of Powers
- Enter the expression, and press Enter.
- In the Explore dialog box, enter 1 for the lower value of n. Beside each of the variables x and y, check the skip box on the right, this will keep these variables in the solution. When you are finished, click Explore.
- A new table is created inline with a math container for the expression and a slider for n. Move the slider back and forth to see how it changes the expansion.
- You can now save the assistant using File > Save.
Create a Math App with Embedded Components
To create Math Apps using components, you first have to expand the Components palette to insert them into your worksheet. After you have chosen all the components you would like to use in your Math App, you can edit the Startup Code to link all your components together.
Example 3A: Explore a Quadratic Expression
Start with a new Maple worksheet.
- From the Components palette, click the Plot Component and Slider Component to add them to your document.
- Right-click the Slider component and select Component Properties.
- Change the Value at Lowest Position to -5.
- Change the Value at Highest Position to 5
- Change the Spacing of Major Tick Marks to 5.
- Change the Spacing of Minor Tick Marks to 1.
- Check the boxes for the following Options:
- Update Continuously while Dragging
- Right-click the Slider component and select Edit Value Changed Action. You will see some existing code already in the new window. This code is purely instructional and will not have any affect on what you append to it.
- Add the following code to the Component Code Editor above the end use; statement:
- Click the save icon () and exit the Code Editor.
- Save the Maple worksheet as mathapp.mw
The Math App is now complete. As you move the Slider component, notice how the Plot component is updated.
Example 3B: A Math App Question, Gradeable through Maple
This Math App question asks students to display a plot of a specific quadratic expression of: .
- Open the Math App worksheet that you created in the previous section, called "Example: Explore a Quadratic Expression"
- From the Edit menu, select Startup Code.
You will notice that the Startup Code is currently blank. In order to have Maple T.A. communicate with your Math App document, you will need to export any variables you want Maple T.A. to be able to read. For this example, insert the following code into the Startup Code window.
- Click the save icon () and close the Code Editor.
- Save and then close your worksheet.
- Log in to your Maple T.A. server.
- From your Class Homepage, click Content Repository in the top menu.
- From the Create New drop-down menu, select Question/Text.
- On the Edit Response Area screen:
- Enter a title for the question under Question Name.
- Enter the following instructions in the Question Text:
Using the slider, draw the plot of .
- Click Response Area ().
- Under Choose Question Type, select Math App.
- Weighting: specify the weight of this response area in the overall question. (By default, the Weighting is set to 1).
- In the Worksheet File section: choose a Maple worksheet file by clicking .
- (Optional) In the Initialization Parameters section, declare any variables that you want the worksheet you chose above to initialize when the question loads. You can leave it blank if there are no variables to initialize in the worksheet.
- Click Save to save the question, then click Preview to view and test it. See figure below.
Example 3C: A Math App Question, Gradeable through Maple T.A.
This example again uses the Math App worksheet that you created in the previous section called "Example 3A: Explore a Quadratic Expression".
It asks students to display a plot of a specific quadratic expression.
- Log in to your Maple T.A. server and then go to your Class Homepage.
- From your Class Homepage, click Content Repository in the top menu.
- From the Create New drop-down menu, select Question/Text.
- On the Edit Response Area screen:
- Enter a title for the question under the Question Name panel.
- Enter instructions in the Question Text text field, for example:
Using the slider, draw the plot of .
- Click Response Area ().
- Under Choose Question Type, select Math App.
- In the Worksheet File section: choose a Maple worksheet file by clicking .
- Using the radio buttons, select Grading Algorithm in Maple T.A.
- Insert the following command into the input box:
- Click Save to save the question.
- To see how the question works, click Preview.
Example 4: Exploring a 2-D Plot