# Using simpleFunction with ln x

**URL:** <https://cl.desmos.com/t/using-simplefunction-with-ln-x/3866>\
**Category:** Discussion\
**Tags:** simplefunction\
**Created:** [December 1, 2021, 11:44pm UTC](https://cl.desmos.com/t/using-simplefunction-with-ln-x/3866 "2021-12-01T23:44:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbrigida](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/rbrigida/32/1449_2.png) [@rbrigida](https://cl.desmos.com/u/rbrigida)\
**Post date:** [December 1, 2021, 11:44pm UTC](https://cl.desmos.com/t/using-simplefunction-with-ln-x/3866/1 "2021-12-01T23:44:37Z")

</div>

I am getting the Nan message in cell(3,2)  
.  
Unable to use simple function with `+C’

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/7/7dc4efbae75783807b4a684ba42d159276bd04c8.png)

[https://teacher.desmos.com/activitybuilder/custom/61a804ede37b993d6843721b](https://teacher.desmos.com/activitybuilder/custom/61a804ede37b993d6843721b)

---

<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:** [December 2, 2021, 7:37pm UTC](https://cl.desmos.com/t/using-simplefunction-with-ln-x/3866/2 "2021-12-02T19:37:29Z")

</div>

Clip off the RHS and use simpleFunction on that - eg. `h=simpleFunction(parseEquation(t.cellContent(3,1)).rhs,"x","C")`

Otherwise you will have to specifically define the function to be h(x,C) for simpleFunction to recognise it correctly.
