# Checking student answer as a coordinate point

**URL:** https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537
**Category:** Questions
**Created:** [November 4, 2022, 9:25pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537 "2022-11-04T21:25:56Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 4, 2022, 9:25pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/1 "2022-11-04T21:25:56Z")

</div>

Hello, I am new to computation layer.  
I understand how to get it to check a student numerical input, but how can I get it to check a student numerical point?  
I am trying to use it for the solution to a system of equation.

---

<div class="post-metadata">

### Author: ![tarnold](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@tarnold](https://cl.desmos.com/u/tarnold)
#### Post date: [November 5, 2022, 12:34pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/2 "2022-11-05T12:34:01Z")

</div>

Could you provide a link to your activity or copy the code?

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 7, 2022, 5:36pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/3 "2022-11-07T17:36:37Z")

</div>

correct: this.numericValue= (-4,1)  
correct: correct

I have a feeling it’s because of the coordinate not being a “numeric” value, so what option should I use?

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 7, 2022, 6:47pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/4 "2022-11-07T18:47:12Z")

</div>

I figured it out. I ended up using a table to check their coordinate point.  
However, when I change the table format to “math input,” it does not show students whether they are correct or not. (I left it as a text)

Here is the code on the table:  
correct: table1.cellContent(1,1)=“(-4,1)”

cellContent(1,2):when table1.cellContent(1,1)=“(-4,1)”  
“✅”  
otherwise " "

---

<div class="post-metadata">

### Author: ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)
#### Post date: [November 8, 2022, 7:43pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/5 "2022-11-08T19:43:50Z")

</div>

For coordinate pairs, you need to use `parseOrderedPair` - for example, something like

`correct: parseOrderedPair(this.latex).x=-4 and parseOrderedPair(this.latex).y=1`

should do the trick. You could also have something like `coord=parseOrderedPair(this.latex)` and then just use `coord.x=-4 and coord.y=1`

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 8, 2022, 10:24pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/6 "2022-11-08T22:24:18Z")

</div>

@pirsquared @tarnold  
Can you check this code for inp4?  
I am also expecting a coordinate as their answer, and on the teacher dashboard it is marking it correct, but the feedback is not giving them as a correct answer.

> **[\[Copy of\] Systems of Equations (Substitution Method) • Activity Builder by...](https://teacher.desmos.com/activitybuilder/custom/636ad6a12ba5606adfa04209)**
>
> by Isabel Ramirez

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 8, 2022, 10:27pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/7 "2022-11-08T22:27:58Z")

</div>

@pirsquared @tarnold actually, any point they enter is being marked correctly.

---

<div class="post-metadata">

### Author: ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)
#### Post date: [November 8, 2022, 11:03pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/8 "2022-11-08T23:03:03Z")

</div>

```auto
coord=parseOrderedPair(this.latex)

correct: numericValue(coord.x)=3 and numericValue(coord.y)=8

```

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 9, 2022, 4:34pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/9 "2022-11-09T16:34:34Z")

</div>

I keep getting an error message saying "Component “undefined: had no source “latex”. It actually doesn’t have any sources at all. Sorry about that.”

---

<div class="post-metadata">

### Author: ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)
#### Post date: [November 9, 2022, 7:41pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/10 "2022-11-09T19:41:51Z")

</div>

Where are you getting this error message? Can you share your updated activity?

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 9, 2022, 8:37pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/11 "2022-11-09T20:37:41Z")

</div>

> **[\[Copy of\] Systems of Equations (Substitution Method) • Activity Builder by...](https://teacher.desmos.com/activitybuilder/custom/636ad6a12ba5606adfa04209)**
>
> by Isabel Ramirez

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 9, 2022, 8:38pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/12 "2022-11-09T20:38:13Z")

</div>

> **[\[Copy of\] Systems of Equations (Substitution Method) • Activity Builder by...](https://teacher.desmos.com/activitybuilder/custom/636ad6a12ba5606adfa04209)**
>
> by Isabel Ramirez

I have it in the last “note box” but can you check inp4? Maybe I’m missing something

---

<div class="post-metadata">

### Author: ![pirsquared](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pirsquared](https://cl.desmos.com/u/pirsquared)
#### Post date: [November 9, 2022, 10:02pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/13 "2022-11-09T22:02:13Z")

</div>

Put this in your note box:

```auto
coord=parseOrderedPair(inp4.latex) 
correct = numericValue(coord.x)=3 and numericValue(coord.y)=8

content:"${feedback}"

feedback= when inp4.submitted and correct "✅ Good work!" when inp4.submitted "🤔 Keep thinking" otherwise " "

```

You can also have

```auto
coord=parseOrderedPair(inp4.latex) 
correct: numericValue(coord.x)=3 and numericValue(coord.y)=8

```

in inp4, if you want the dashboard checks to work as well.

---

<div class="post-metadata">

### Author: ![Isabel\_Ramirez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/isabel_ramirez/32/3926_2.png) [@Isabel\_Ramirez](https://cl.desmos.com/u/Isabel_Ramirez)
#### Post date: [November 9, 2022, 10:25pm UTC](https://cl.desmos.com/t/checking-student-answer-as-a-coordinate-point/4537/14 "2022-11-09T22:25:26Z")

</div>

THANK YOU SO MUCH!  
It’s working 🙂
