Results 1 to 5 of 5

Math Help - Converting problem

  1. #1
    Newbie
    Joined
    Sep 2012
    From
    USA
    Posts
    2

    Converting problem

    Hello,

    I am a computer science student but I'm facing a math problem which is as the following:

    Assuming that I have a number x (where x >=0)
    And I want to do a mapping for this x to convert it to the range b1 to b2 (where 0 <= b1 < b2)

    Example: if x = 45. How can I find its equivalent in the range 0 - 25 ?

    Or if I should look into a specific math area. what should be?
    Thank you,
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,530
    Thanks
    773

    Re: Converting problem

    Of course, there are infinitely many ways to do this. For the simplest way, where the conversion function is linear, you need to know the range of x. For example, if x ranges over [0, 45], then x = 45 is mapped to 25 * 45 / 45 = 25. but If x ranges over [0, 10000], then x = 45 is mapped to 25 * 45 / 10000.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Sep 2012
    From
    USA
    Posts
    2

    Re: Converting problem

    Thank you for your response,

    How about if I dont know the upper bound for x?
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,530
    Thanks
    773

    Re: Converting problem

    Quote Originally Posted by hanodee View Post
    How about if I dont know the upper bound for x?
    Then the problem is ill-defined because it has all kinds of solutions. You need more constraints.
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Super Member
    Joined
    Sep 2012
    From
    Washington DC USA
    Posts
    525
    Thanks
    146

    Re: Converting problem

    Quote Originally Posted by hanodee View Post
    Thank you for your response,

    How about if I dont know the upper bound for x?
    You can map [0,\infty) onto [b_1, b_2) using the function

    f(x) = b_1 + \frac{b_2 - b_1}{\pi/2} \tan^{-1}(x)
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: May 24th 2011, 05:52 PM
  2. Crazy problem converting equation into graph!!
    Posted in the Calculus Forum
    Replies: 2
    Last Post: April 28th 2010, 03:27 PM
  3. converting problem
    Posted in the Geometry Forum
    Replies: 4
    Last Post: December 7th 2009, 07:22 PM
  4. Replies: 1
    Last Post: August 17th 2009, 10:43 PM
  5. Replies: 4
    Last Post: August 15th 2007, 10:30 AM

Search Tags


/mathhelpforum @mathhelpforum