# Evaluate function

**URL:** <https://cl.desmos.com/t/evaluate-function/2270>\
**Category:** Questions\
**Created:** [December 30, 2020, 2:00pm UTC](https://cl.desmos.com/t/evaluate-function/2270 "2020-12-30T14:00:12Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Susan\_Lauer](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/susan_lauer/32/1832_2.png) [@Susan\_Lauer](https://cl.desmos.com/u/Susan_Lauer)\
**Post date:** [January 1, 2021, 9:36pm UTC](https://cl.desmos.com/t/evaluate-function/2270/10 "2021-01-01T21:36:14Z")

</div>

That’s right. Argh.  
I had this first, then I mangled it. Sorry. I’ve deleted the erroneous posts.

```auto
abs = simpleFunction("\abs(a)","a")
cellContent(1,2): when this.cellContent(1,1)="" "" otherwise "${abs.evaluateAt(this.cellNumericValue(1,1))}"
cellContent(2,2): when this.cellContent(2,1)="" "" otherwise "${abs.evaluateAt(this.cellNumericValue(2,1))}"

```

I like the simpleFunction better, but I played with another way ([link](https://cl.desmos.com/t/rounding-truncating/1035/5)) here:

```auto
cellContent(1,2): when this.cellContent(1,1)="" "" otherwise "${numericValue("\\operatorname{abs}(${this.cellNumericValue(1,1)})")}"
cellContent(2,2): when this.cellContent(2,1)="" "" otherwise "${numericValue("\\operatorname{abs}(${this.cellNumericValue(2,1)})")}"

```

---

_[View the full topic](https://cl.desmos.com/t/evaluate-function/2270)._
