Practicing with points / coordinates
Do you want to let your students practice with points / coordinates? This article explains how this can be done within Grasple. Written by Eric Bouwers
Updated over a week ago

Using the capabilities of the Computer Algebra System (CAS) behind Grasple it is possible to create exercises that allow your students to practice with points / coordinates. Below we explain all ins-and-outs of the support of this constructs within the platform.

# Syntax

Points in a 2-dimensional space are defined by enclosing two numbers (or expressions) between parenthesis. Thus, `(0, 0)` represents the origin of a two-dimensional space, just as `(1-1, 0)` and `(0, -2 + 2)`.

The platform supports N-dimensional points using the same notation, e.g. `(0, 0, 0)`

for three dimensions, `(0, 0, 0, 0)` for four dimensions, etc.

# Equality

Two points are equal if all individual elements are equal. As usual, the algebraic equality will evaluate whether two expressions are the same. This means that the following expressions are considered to be equal:

In the current implementation it is not possible to add or subtract points. It is possible to use some of the available operators on points specified by either you or your students. In particular, the `select` and `length` operators work on points in the same way they work on lists.
By default the expression `(1, 3)` is interpreted as a point. If you want to make sure the answer of a student is interpreted as an open interval you can follow the instructions in this article.