Perseus
    Preparing search index...
    GrapherAnswerTypes:
        | {
            coords: null
            | [vertex: Coord, secondPoint: Coord];
            type: "absolute_value";
        }
        | {
            asymptote: [Coord, Coord];
            coords: null | [Coord, Coord];
            type: "exponential";
        }
        | { coords: null
        | [Coord, Coord]; type: "linear" }
        | {
            asymptote: [Coord, Coord];
            coords: null | [Coord, Coord];
            type: "logarithm";
        }
        | { coords: null
        | [vertex: Coord, secondPoint: Coord]; type: "quadratic" }
        | { coords: null | [Coord, Coord]; type: "sinusoid" }
        | { coords: null | [Coord, Coord]; type: "tangent" }

    The state of the grapher widget's plotted function, discriminated by the type field. Used as both the learner's user input and the rubric's correct answer.

    Type Declaration

    • { coords: null | [vertex: Coord, secondPoint: Coord]; type: "absolute_value" }
      • coords: null | [vertex: Coord, secondPoint: Coord]

        The vertex and a second point defining the V-shape. If null, the graph is not gradable and all answers score as invalid.

      • type: "absolute_value"

        A V-shaped graph defined by its vertex.

    • {
          asymptote: [Coord, Coord];
          coords: null | [Coord, Coord];
          type: "exponential";
      }
      • asymptote: [Coord, Coord]

        Two points along the horizontal asymptote line. Only the y-coordinate of the first point is used during scoring; x-coordinates are completely ignored.

      • coords: null | [Coord, Coord]

        Two points along the exponential curve. One end of the curve trends towards the asymptote. If null, the graph is not gradable and all answers score as invalid.

      • type: "exponential"

        A curve of the form y = a·bˣ + c approaching a horizontal.

    • { coords: null | [Coord, Coord]; type: "linear" }
      • coords: null | [Coord, Coord]

        Two points along the straight line. If null, the graph is not gradable and all answers score as invalid.

      • type: "linear"

        A straight line of the form y = mx + b.

    • { asymptote: [Coord, Coord]; coords: null | [Coord, Coord]; type: "logarithm" }
      • asymptote: [Coord, Coord]

        Two points along the asymptote line.

      • coords: null | [Coord, Coord]

        Two points along the logarithmic curve. One end of the curve trends towards the asymptote. If null, the graph is not gradable and all answers score as invalid.

      • type: "logarithm"

        A curve of the form y = a·log_b(x - c) approaching a vertical asymptote.

    • { coords: null | [vertex: Coord, secondPoint: Coord]; type: "quadratic" }
      • coords: null | [vertex: Coord, secondPoint: Coord]

        The vertex and a second point defining the parabola. If null, the graph is not gradable and all answers score as invalid.

      • type: "quadratic"

        A parabola of the form y = ax² + bx + c.

    • { coords: null | [Coord, Coord]; type: "sinusoid" }
      • coords: null | [Coord, Coord]

        Two points on the same slope of the sinusoid. If null, the graph is not gradable and all answers score as invalid.

      • type: "sinusoid"

        A periodic wave of the form y = a·sin(bx - c) + d.

    • { coords: null | [Coord, Coord]; type: "tangent" }
      • coords: null | [Coord, Coord]

        Two points on the same slope of the tangent curve. If null, the graph is not gradable and all answers score as invalid.

      • type: "tangent"

        A periodic curve of the form y = a·tan(bx - c) + d.