# Math Help - Logarithmic scale problem

1. ## Logarithmic scale problem

I am working on a homework for a programming class. We have to create a Logarithmic plot and add to it a marker when the program is running on the click of the mouse. That is NOT the problem , in fact, that's very simple! My problem, however, is with the scale. When my plot is in linear scale it adds the marker right where it should. By that I mean that if I click on point (1,2) it adds my marker on (1,2). Now, when I switch to logarithmic scale, if I click on (0,0) it adds the marker on (1,1). If I click on values greater than 10, it adds the marker at the place where I clicked. But when my values are lower than 10, the marker is shifted to the right. How do I solve that problem? I already tried converting the values I get from my mouse-click event to logarithmic values and they are wrong. In fact I get negative numbers when the values are lower than 1; so the marker is shifted to the left. I am not good at all with log scales; so, please help me!!

2. 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 $\mbox{base}^0=1$.
3. Depending on the value of your base $\mbox{base}^{10}=\mbox{more than 1000}$. In other words: It is out of your plot.

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