Evaluate function

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

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) here:

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)})")}"
1 Like