# Bug? (Exponential SimpleFunction with Negative Variable)

**URL:** <https://cl.desmos.com/t/bug-exponential-simplefunction-with-negative-variable/677>\
**Category:** Questions\
**Tags:** simplefunction\
**Created:** [January 15, 2020, 11:22pm UTC](https://cl.desmos.com/t/bug-exponential-simplefunction-with-negative-variable/677 "2020-01-15T23:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASmith](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/asmith/32/360_2.png) [@ASmith](https://cl.desmos.com/u/ASmith)\
**Post date:** [January 15, 2020, 11:22pm UTC](https://cl.desmos.com/t/bug-exponential-simplefunction-with-negative-variable/677/1 "2020-01-15T23:22:03Z")

</div>

Not sure where to post potential bug reports?

If you define a negative value in the graph and call it using these two variations:  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/1X/1894616675b4475dbaa0b717405b8b39d01cc91c.png)  
both of these should return the same function y=b^x.  
Example: if b = -2 it appears g(x) is being calculated as -1\*(2^x)

\*This is a cross-post after noticing the bug in this convo:

> [@Function in Graph evaluated in table?](https://cl.desmos.com/t/function-in-graph-evaluated-in-table/676):
>
> I have f(x) defined in the graph. I want students to type x-values in table column1. Then I want the table to automatically evaluate the y-values into column2. And then I plan to graph the points from the table.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [January 15, 2020, 11:55pm UTC](https://cl.desmos.com/t/bug-exponential-simplefunction-with-negative-variable/677/2 "2020-01-15T23:55:02Z")

</div>

Thats definitely a good catch but not a bug!

interpolating with ${} take the numeric value of -2 and converts it into text then constructs the function using that text.

Your function g when b=-1 actually reads `simpleFunction("-1^x")` instead of a function b^x that evaluates at a numeric value of -1 for b.
