Results 1 to 2 of 2

Math Help - Logarithmic scale problem

  1. #1
    lgarcia3
    Guest

    Angry 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!!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Super Member
    earboth's Avatar
    Joined
    Jan 2006
    From
    Germany
    Posts
    5,830
    Thanks
    123
    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.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. A tough logarithmic scale question
    Posted in the Algebra Forum
    Replies: 1
    Last Post: September 13th 2011, 09:29 AM
  2. Replies: 0
    Last Post: July 19th 2011, 11:45 AM
  3. Logarithmic scale calculation for mapping
    Posted in the Math Topics Forum
    Replies: 2
    Last Post: May 25th 2011, 09:02 AM
  4. Scale problem
    Posted in the Algebra Forum
    Replies: 4
    Last Post: May 30th 2010, 08:44 PM
  5. Scale problem
    Posted in the Math Topics Forum
    Replies: 4
    Last Post: June 4th 2007, 05:27 AM

Search Tags


/mathhelpforum @mathhelpforum