Difference between revisions of "Problem Techniques"
Jump to navigation
Jump to search
m (→Topics MN) 

(20 intermediate revisions by 7 users not shown)  
Line 6:  Line 6:  
<ul> 
<ul> 

<li>[http://webwork.maa.org/wiki/Category:MathObjects MathObjects documentation] Written by Davide Cervone</li> 
<li>[http://webwork.maa.org/wiki/Category:MathObjects MathObjects documentation] Written by Davide Cervone</li> 

−  <li>[http://webwork.maa.org/pod/ 
+  <li>[http://webwork.maa.org/pod/pg/ POD documentation] (POD  Plain Old Documentation)</li> 
<li>[http://webwork.maa.org/viewvc/system/trunk/pg/macros/ PG macro files] Source code for pg/macros files.</li> 
<li>[http://webwork.maa.org/viewvc/system/trunk/pg/macros/ PG macro files] Source code for pg/macros files.</li> 

<li>[http://webwork.maa.org/viewvc/system/trunk/pg/lib/ PG library files] Source code for pg/lib files.</li> 
<li>[http://webwork.maa.org/viewvc/system/trunk/pg/lib/ PG library files] Source code for pg/lib files.</li> 

Line 34:  Line 34:  
* [[GeoGebraAppletsApplet Example: GeoGebra]] 
* [[GeoGebraAppletsApplet Example: GeoGebra]] 

* [[Sage_EmbeddingApplet Example: Embedding Sage]] 
* [[Sage_EmbeddingApplet Example: Embedding Sage]] 

+  * [[DraggableProofsApplet Example: Draggable Statements]] 

* [[DynamicImages2Arrows in Dynamic Graphs]] 
* [[DynamicImages2Arrows in Dynamic Graphs]] 

−  
+  * [[AskSage  AskSage subroutine for using Sage ]] 

[[#toptop of page]] 
[[#toptop of page]] 

Line 42:  Line 43:  
* [[CommentsForInstructorsComments (for Instructors) Visible in the Problem Library]] 
* [[CommentsForInstructorsComments (for Instructors) Visible in the Problem Library]] 

* [[ComposingFunctionsComposition of Functions as Correct Answer]] 
* [[ComposingFunctionsComposition of Functions as Correct Answer]] 

+  * [[CompoundProblemsCompound (Multipart, sequential) Problems]] (<em>see also</em> [[Scaffold]]) 

* [[ConstantsInProblemsConstants in Problems]] 
* [[ConstantsInProblemsConstants in Problems]] 

* [[FormulasToConstantsConstant Differences (Additive) Between Student and Correct Answers]] 
* [[FormulasToConstantsConstant Differences (Additive) Between Student and Correct Answers]] 

Line 47:  Line 49:  
* [[CustomAnswerCheckersCustom Answer Checkers]] 
* [[CustomAnswerCheckersCustom Answer Checkers]] 

* [[ErrorMessageCustomizationCustom Error Messages]] 
* [[ErrorMessageCustomizationCustom Error Messages]] 

+  * [[DraggableProofsDraggable Statements]] 

* [[DifferenceQuotientsDifference Quotients as Correct Answers]] 
* [[DifferenceQuotientsDifference Quotients as Correct Answers]] 

* [[DifferentiatingFormulasDifferentiating Formulas]] 
* [[DifferentiatingFormulasDifferentiating Formulas]] 

+  * [[DigitsTolTypeDigits TolType]] 

* [[DisableFunctionsDisabling Functions and Operators in Student Answers]] 
* [[DisableFunctionsDisabling Functions and Operators in Student Answers]] 

* [[FormulaTestPointsDomain of Function Evaluation]] 
* [[FormulaTestPointsDomain of Function Evaluation]] 

Line 65:  Line 69:  
* [[FlashAppletsFlash Applets]] 
* [[FlashAppletsFlash Applets]] 

* [[FlashPointAndGraphFlash Applet Point and Graph Example]] 
* [[FlashPointAndGraphFlash Applet Point and Graph Example]] 

−  * [[FormattingCorrectAnswers: NumbersAndFormulas Formatting Correct Answers: Numbers and Formulas]] 

* [[FormattingCorrectAnswers: Equations Formatting Correct Answers: Equations]] 
* [[FormattingCorrectAnswers: Equations Formatting Correct Answers: Equations]] 

+  * [[FormattingCorrectAnswers: NumbersAndFormulas Formatting Correct Answers: Numbers and Formulas]] 

* [[FormattingDecimalsFormatting: Decimals]] 
* [[FormattingDecimalsFormatting: Decimals]] 

+  * [[AlgebraicFractionsFormatting Fractions as Student Answers]] 

* [[FormulaTestPointsFormula Answer Evaluation; Limits for Evaluation]] 
* [[FormulaTestPointsFormula Answer Evaluation; Limits for Evaluation]] 

* [[FormulaTestPointsFormula Answer Evaluation; Test Points]] 
* [[FormulaTestPointsFormula Answer Evaluation; Test Points]] 

* [[ProblemsWithUnitsFormulas with Units, as Answers]] 
* [[ProblemsWithUnitsFormulas with Units, as Answers]] 

* [[VariablesOtherThanXFormulas with Variables Other than x]] 
* [[VariablesOtherThanXFormulas with Variables Other than x]] 

+  * [[AlgebraicFractionsFractions (Algebraic) as Student Answers]] 

* [[AddingFunctionsFunctions Added to the Context]] 
* [[AddingFunctionsFunctions Added to the Context]] 

* [[FormulasToConstantsFunction Answers Up To Additive Constants]] 
* [[FormulasToConstantsFunction Answers Up To Additive Constants]] 

Line 86:  Line 92:  
* [[GraphsInTablesGraphic Images, Put Into Tables]] 
* [[GraphsInTablesGraphic Images, Put Into Tables]] 

* [[StaticImagesGraphic Images, Static]] 
* [[StaticImagesGraphic Images, Static]] 

+  * [[TikZImages Graphic Image, TikZ Images]] 

* [[ContourPlotsGraphing in 2D with Contour Plots]] 
* [[ContourPlotsGraphing in 2D with Contour Plots]] 

* [[ContourPlot1Graphing in 2D with Contour Plots that Have a Color Gradient]] 
* [[ContourPlot1Graphing in 2D with Contour Plots that Have a Color Gradient]] 

Line 95:  Line 102:  
* [[3DGraphsParametricSurfacesGraphing in 3D with Parametric Surfaces (e.g., Spherical Coordinates)]] 
* [[3DGraphsParametricSurfacesGraphing in 3D with Parametric Surfaces (e.g., Spherical Coordinates)]] 

* [[3DGraphsVectorFieldsGraphing in 3D with Vector Fields]] 
* [[3DGraphsVectorFieldsGraphing in 3D with Vector Fields]] 

+  * [[GraphToolGraph Tool, a way for students to input graphs as answers]] 

+  * [[AnswerHintsHints in Problems]] 

* [[HtmlLinksHTML Links in Problems]] 
* [[HtmlLinksHTML Links in Problems]] 

Line 109:  Line 118:  
=== Topics KL === 
=== Topics KL === 

+  * [[KnowlsKnowls]] 

* [[DynamicImages2Labels on Dynamically Generated Graphs]] 
* [[DynamicImages2Labels on Dynamically Generated Graphs]] 

* [[FormulaTestPointsLimits over which Formulas are Evaluated]] 
* [[FormulaTestPointsLimits over which Formulas are Evaluated]] 

Line 125:  Line 135:  
* [[MatchingStaticGraphsMatching Problems That Have Static Graphic Images]] 
* [[MatchingStaticGraphsMatching Problems That Have Static Graphic Images]] 

* [[MatchingDynamicGraphsMatching Problems That Have Dynamic Graphic Images]] 
* [[MatchingDynamicGraphsMatching Problems That Have Dynamic Graphic Images]] 

+  * [[MonthDayYearMonth, Day or Year as a problem variable]] 

* [[MultipleChoiceProblemsMultiple Choice Problems]] 
* [[MultipleChoiceProblemsMultiple Choice Problems]] 

* [[GraphsInTablesMultiple Choice Problems with Graphic Images (see example 1)]] 
* [[GraphsInTablesMultiple Choice Problems with Graphic Images (see example 1)]] 

Line 130:  Line 141:  
* [[MultiAnswerProblemsMultiAnswer, Self Referential Problems]] 
* [[MultiAnswerProblemsMultiAnswer, Self Referential Problems]] 

* [[CompoundProblemsMultiPart, Sequential Problems]] 
* [[CompoundProblemsMultiPart, Sequential Problems]] 

+  * [[NamedAnswerRulesNamed Answer Rules]] 

* [[ConstantsInProblemsNamed (Numerical) Constants in Problems]] 
* [[ConstantsInProblemsNamed (Numerical) Constants in Problems]] 

* [[ProblemsWithUnitsNumbers with Units, as Answers]] 
* [[ProblemsWithUnitsNumbers with Units, as Answers]] 

Line 156:  Line 168:  
=== Topics QR === 
=== Topics QR === 

+  * [[MultipleChoiceProblemsRadio Buttons and Multiple Choice Problems]] 

* [[RecursivelyDefinedFunctionsRecursively Defined Functions]] 
* [[RecursivelyDefinedFunctionsRecursively Defined Functions]] 

* [[DisableFunctionsRestricting Allowed Functions in Student Answers]] 
* [[DisableFunctionsRestricting Allowed Functions in Student Answers]] 

Line 164:  Line 177:  
=== Topics ST === 
=== Topics ST === 

−  
+  * [[Scaffold  Scaffolded (compound) problems with MultiAnswer sections]] 

* [[VectorFieldsSlope Field Graphs]] 
* [[VectorFieldsSlope Field Graphs]] 

* [[PopUpListsSolutions for Students]] 
* [[PopUpListsSolutions for Students]] 
Revision as of 16:18, 6 May 2021
Any additions to the indexed snippets below should use the same format. A suggested model is provided in this snippet template.
Contents
Index of Problem Coding Techniques
This index links to problem code snippets that quickly show how to accomplish each effect. Each has limited explanation that assumes a basic understanding of how PG files are written. If you want more details, please see the MathObjects documentation, POD documentation, PG macro files, and PG library files.
 MathObjects documentation Written by Davide Cervone
 POD documentation (POD  Plain Old Documentation)
 PG macro files Source code for pg/macros files.
 PG library files Source code for pg/lib files.
Topics AB
 Accuracy Required for Numerical Answers
 Adaptive Parameters in Answers
 Adding New Functions to the Context
 Adding Labels, Lines and Points to Dynamic Graphs
 Algebraic Fractions in Student Answers
 Aligned Answer Blanks
 Allowing Strings (Text) in Student Answers
 Answer Blank in the Exponent
 Answer Format Help
 Answer Hints
 Answer is a Solution to an Equation
 Any Answer Marked Correct
 Antiderivatives and Indefinite Integrals
 Applet Example: Flash
 Applet Example: GeoGebra
 Applet Example: Embedding Sage
 Applet Example: Draggable Statements
 Arrows in Dynamic Graphs
 AskSage subroutine for using Sage
Topics CD
 Comments (for Instructors) Visible in the Problem Library
 Composition of Functions as Correct Answer
 Compound (Multipart, sequential) Problems (see also Scaffold)
 Constants in Problems
 Constant Differences (Additive) Between Student and Correct Answers
 Constant Differences Between Student and Correct Answers
 Custom Answer Checkers
 Custom Error Messages
 Draggable Statements
 Difference Quotients as Correct Answers
 Differentiating Formulas
 Digits TolType
 Disabling Functions and Operators in Student Answers
 Domain of Function Evaluation
Topics EF
 Equation Answer Evaluation (Implicit)
 Equations Defining Functions (Not Implicit)

eval()
Versussubstitute()
 Error Message Customization
 Extracting Coordinates of a Point
 Finding the norm of a Vector
 Factoring and Expanding Polynomials
 Flash Applets
 Flash Applet Point and Graph Example
 Formatting Correct Answers: Equations
 Formatting Correct Answers: Numbers and Formulas
 Formatting: Decimals
 Formatting Fractions as Student Answers
 Formula Answer Evaluation; Limits for Evaluation
 Formula Answer Evaluation; Test Points
 Formulas with Units, as Answers
 Formulas with Variables Other than x
 Fractions (Algebraic) as Student Answers
 Functions Added to the Context
 Function Answers Up To Additive Constants
 Function Composition as Correct Answer
Topics GH
 Graphic Images, Dynamically Generated
 Graphic Images, Dynamic, with Labels, Lines and Points
 Graphic Images, Dynamic, with Filled Regions
 Graphic Images, with Parametric Functions
 Graphic Images, Put Into Tables
 Graphic Images, Static
 Graphic Image, TikZ Images
 Graphing in 2D with Contour Plots
 Graphing in 2D with Contour Plots that Have a Color Gradient
 Graphing in 2D with Slope Fields
 Graphing in 2D with Vector Fields
 Graphing in 3D with Cylindrical Coordinates
 Graphing in 3D with Rectangular Coordinates
 Graphing in 3D with Parametric Curves
 Graphing in 3D with Parametric Surfaces (e.g., Spherical Coordinates)
 Graphing in 3D with Vector Fields
 Graph Tool, a way for students to input graphs as answers
 Hints in Problems
 HTML Links in Problems
Topics IJ
Topics KL
 Knowls
 Labels on Dynamically Generated Graphs
 Limits over which Formulas are Evaluated
 Lines in Dynamically Generated Graphs
 Linked Answer Blanks
 Linking Successive Problems
 Links to Other Web Pages
 Lists as Answers
 Logarithms
Topics MN
 Matching Problems
 Matching Problems That Have Static Graphic Images
 Matching Problems That Have Dynamic Graphic Images
 Month, Day or Year as a problem variable
 Multiple Choice Problems
 Multiple Choice Problems with Graphic Images (see example 1)
 Multiple Select Problems (Select All That Apply or Checkbox Multiple Choice)
 MultiAnswer, Self Referential Problems
 MultiPart, Sequential Problems
 Named Answer Rules
 Named (Numerical) Constants in Problems
 Numbers with Units, as Answers
 Numerical Answer Evaluation Tolerance
 Numerical Constants in Problems
 Numerical Tolerance in Problems
Topics OP
 Parameters (Adaptive) in Answers
 Parametric Equations as Answers
 Parametric Lines as Answers
 Periodic Answers
 Planes or Lines Defined Implicitly
 Plotting Parametric Equations
 Plotting Lines and Points on Dynamically Generated Graphs
 Points in Dynamically Generated Graphs
 Points in Student Answers
 Popup Lists
 Popup Lists For Many Questions With Common Answers
Topics QR
 Radio Buttons and Multiple Choice Problems
 Recursively Defined Functions
 Restricting Allowed Functions in Student Answers
 Restricting Allowed Operators in Student Answers
 Restricting Student Answer Formats
Topics ST
 Scaffolded (compound) problems with MultiAnswer sections
 Slope Field Graphs
 Solutions for Students
 Static Graphic Images
 Step Functions in Answers
 Strings in Student Answers
 Tables in Problem Text
 Tables of Graphs
 Test Points for Formula Evaluation
 Text in Student Answers
 Textbook Specific Messages
 Tolerance in Numerical Answers
 Trig Functions in Degrees