# Math input to Table

**URL:** <https://cl.desmos.com/t/math-input-to-table/3047>\
**Category:** Questions\
**Created:** [April 2, 2021, 3:10pm UTC](https://cl.desmos.com/t/math-input-to-table/3047 "2021-04-02T15:10:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![VR1245](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/vr1245/32/2448_2.png) [@VR1245](https://cl.desmos.com/u/VR1245)\
**Post date:** [April 2, 2021, 3:10pm UTC](https://cl.desmos.com/t/math-input-to-table/3047/1 "2021-04-02T15:10:09Z")

</div>

How can you get a rule from a math input and put it in a table?

> **[Night Eyes • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6060ae2ed53a091a14b72aed)**
>
> Very Short 3-act Activity

On screen 6 I want the rule that the student puts to get put in a table

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [April 2, 2021, 3:45pm UTC](https://cl.desmos.com/t/math-input-to-table/3047/2 "2021-04-02T15:45:34Z")

</div>

You can use this. You need to enter your x values

```auto
f=simpleFunction(yourInputName.latex)
#Day0
cellContent(1,2): f.evaluateAt(0)
#Day1
cellContent(2,2): f.evaluateAt(1)
...etc for each individual cell

```

---

<div class="post-metadata">

**Author:** ![VR1245](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/vr1245/32/2448_2.png) [@VR1245](https://cl.desmos.com/u/VR1245)\
**Post date:** [April 2, 2021, 4:48pm UTC](https://cl.desmos.com/t/math-input-to-table/3047/3 "2021-04-02T16:48:11Z")

</div>

I tried it but I got an error that said `sink "cellContent" expects a latex but got a number`

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [April 2, 2021, 5:32pm UTC](https://cl.desmos.com/t/math-input-to-table/3047/4 "2021-04-02T17:32:50Z")

</div>

Sorry, they need to be strings, so

```auto
f=simpleFunction(yourInputName.latex)
#Day0
cellContent(1,2): "${f.evaluateAt(0)}"
#Day1
cellContent(2,2): "${f.evaluateAt(1)}"
...etc for each individual cell

```

---

<div class="post-metadata">

**Author:** ![VR1245](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/vr1245/32/2448_2.png) [@VR1245](https://cl.desmos.com/u/VR1245)\
**Post date:** [April 2, 2021, 6:01pm UTC](https://cl.desmos.com/t/math-input-to-table/3047/5 "2021-04-02T18:01:07Z")

</div>

It worked, thank you
