Function Repository Resource:

SinusoidPlotQuiz

Source Notebook

Generate a quiz to assess understanding of the graphs of sine and cosine functions

Contributed by: Wolfram|Alpha Math Team

ResourceFunction["SinusoidPlotQuiz"][]

returns an interactive assessment on graphing sinusoids with given attributes.

Details

ResourceFunction["SinusoidPlotQuiz"][] randomly picks three numbers for the amplitude, period and midline of a sinusoid. The user is asked to plot a sinusoid that exhibits the given parameters.
The interface returned by ResourceFunction["SinusoidPlotQuiz"] includes the following buttons:
Check answerautomatically grades input with feedback
Reset problemresets the points to their starting locations
Next problemrandomly generates a new problem and internally saves the previous problem history
Print reportprints a description of the problems that have been attempted so far, all guesses made and whether the last guess on each problem was correct
Styling and interface controls may be found under the "Display options" opener.
ResourceFunction["SinusoidPlotQuiz"] accepts the option "Start". The value for "Start" can be either "Parent" or "Random" (the default). When "Random" is used, the initial sinusoid plotted has arbitrarily chosen parameters, and when "Parent" is used, each problem begins with the untranslated graph of Sin[x] or Cos[x].

Examples

Basic Examples (1) 

Generate an interface to quiz yourself on plotting a sinusoid based on a description of its attributes:

In[1]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[1]=

Scope (5) 

When the curve demonstrates the approximate amplitude, period and midline described in the prompt, clicking the Check answer button marks the attempt as correct with a green check mark:

In[2]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[2]=

If an attempt does not approximately meet the specified criteria, the Check answer button marks the attempt with a red x, and the student receives feedback to guide their next attempt:

In[3]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[3]=

Clicking the (show answer) button prints a correct answer and prohibits students from submitting any further answers to the current problem:

In[4]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[4]=

Use the "Display options" menu to adjust grid lines, show the midline or key points of the sinusoid, retain the curve of the starting sinusoid, label the sliders or display a dynamically updating table showing the parameters of the sinusoid:

In[5]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[5]=

Clicking the Print report button returns a description of the problems that have been attempted so far, all guesses made and whether the last guess on each problem was correct:

In[6]:=
ResourceFunction["SinusoidPlotQuiz"][]
Out[6]=
Out[6]=

Options (1) 

Start every problem with the graph of an untranslated parent trigonometric function randomly chosen between Sin[x] and Cos[x]:

In[7]:=
ResourceFunction["SinusoidPlotQuiz"]["Start" -> "Parent"]
Out[7]=

Publisher

Wolfram|Alpha Math Team

Version History

  • 4.0.0 – 23 March 2023
  • 3.0.0 – 05 April 2022
  • 2.0.0 – 10 March 2021
  • 1.0.0 – 22 February 2021

Related Resources

Author Notes

To view the full source code for SinusoidPlotQuiz, evaluate the following:

In[1]:=
SystemOpen[
 FileNameJoin[{DirectoryName[FindFile["ResourceFunctionHelpers`"]], "SinusoidPlotQuiz.wl"}]]

License Information