Pi Digits

Pi Digits
Loading the math board and drawing, please wait…
2014-06-30 07:37
This example demonstrates the first few digits of pi. It involves concepts of sequences and coordinate geometry. Using commands like Take, Mean, Median, etc., a sequence of pi's digits is constructed and a scatter plot is drawn. Suitable for high school math education.

GeoGebra Commands & Parameters

  1. Take(pidigits, 1, digits) → sample
  2. Mean(sample) → mean
  3. Mode(sample) → mode
  4. Median(sample) → median
  5. Histogram({0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, sample, true, 100 / digits) → hist
  6. Vector((mean, -6), (mean, 0)) → a
  7. Vector((Element[mode, 1] + 0.5, -6), (Element[mode, 1] + 0.5, -2.5)) → v
  8. Vector((Element[mode, 2] + 0.5, -6), (Element[mode, 2] + 0.5, -2.5)) → w
  9. Vector((Element[mode, 3] + 0.5, -6), (Element[mode, 3] + 0.5, -2.5)) → z
  10. Vector((If[IsInteger[median], median + 0.5, median], -7.5), (If[IsInteger[median], median + 0.5, median], -1.5)) → u
  11. Sequence(Segment[(0, i), (30, i)], i, 5, 100, 5) → list1

AI Drawing Prompt Reference

Plot the first few digits of pi using a scatter plot. First, select the initial digits of pi, calculate the mean, mode, and median, then draw a histogram to show the frequency of each digit. Next, draw vertical lines for the mean, mode, and median, and mark three instances of the mode. Finally, draw horizontal lines and segments spaced 5 units apart from 0 to 30.
The prompt above was compiled from the original drawing commands and is for reference only.