Create a Uniform Number Scale

Create a Uniform Number Scale
Loading the math board and drawing, please wait…
2014-03-27 05:17
In collections Charts & Graphs
This applet demonstrates how to create a uniform number scale for graphing data. Students input their maximum and minimum data values, and use GeoGebra commands like If, Sequence, Textfield, and Segment to customize the scale. Suitable for middle school and above students learning coordinate geometry and function graphing.

GeoGebra Commands & Parameters

  1. If(Mnts < 1.4, 0.1, If[Mnts < 3, 0.2, If[Mnts < 7, 0.5, 1]]) → Coef
  2. If(Pwr0 < 0, (floor(Pwr0 / 3) * 3), (floor(Pwr0 / 3) * 3)) → Pwr2
  3. If(Pwr0 < 0, -1, 1) → SgnPwr
  4. If(Mnts ≥ 7, Pwr0, Pwr0 - 1) → Pwr1
  5. Sequence(k, k, MinScl0, MaxScl0, SclFctr0) → TcVlSq0
  6. Sequence(k, k, MinScl1, MaxScl1, SclFctr1) → TcVlSq1
  7. If(Mnts < 1.4, 1.4, If[Mnts < 3, 3, If[Mnts < 7, 7, 10]]) → UB
  8. If(Mnts < 1.4, 1, If[Mnts < 3, 1.4, If[Mnts < 7, 3, 7]]) → LB
  9. Textfield(DataMin) → MinInput
  10. Textfield(DataMax) → MaxInput
  11. Segment(AxLf, AxRt) → axis
  12. If(UnDcdr < (-2), "billionths", If[UnDcdr < -1, "millionths", If[UnDcdr < 0, "thousandths", If[UnDcdr < 1, "ones", If[UnDcdr < 2, "thousands", If[UnDcdr < 3, "millions", "billions"]]]]]) → Unts
  13. Sequence(Text[Element[TcVlSq1, k], (adp(k - 1) - 0.2, AxHt - 0.5)], k, 1, TicCount + 1) → AxLbSq
  14. Sequence(Segment[(adp(k - 1), AxHt - 0.1), (adp(k - 1), AxHt + 0.1)], k, 1, TicCount) → TcSq

AI Drawing Prompt Reference

Create a uniform numerical scale by inputting minimum and maximum values. Automatically adjust the scale interval based on the value range. First, input the minimum and maximum values, then determine the scale unit based on the value range, followed by drawing the axis and finally marking the scale values on the axis.
The prompt above was compiled from the original drawing commands and is for reference only.