If you define a negative value in the graph and call it using these two variations:
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: