1. Your problem is not a mathematical one: This sign "=" means different things in Math and Programming.

2. If you click on (0,0) your program caculate .

3. Depending on the value of your base . In other words: It is out of your plot.

Change the sides of your "equation" in your program. Perhaps it'll work.