Results 1 to 3 of 3

Math Help - Comparing ratios to the Golden Ratio

  1. #1
    Newbie
    Joined
    Jun 2013
    From
    Brighton
    Posts
    9
    Thanks
    1

    Comparing ratios to the Golden Ratio

    Hi all,

    I'm currently trying to write an equation or piece of logic which will allow me to test ratios against the Golden Ratio to find the closest match. The ratios I need to test range from 1:255 to 255:1 (to several decimal places) and I want to convert these ratios into a decimal (z) between 0 & 1, such that 0 is a perfect match (1:1.618) and 1 is a the furthest possible (255:1). All the z values should be positive, such that a ratio of 10:1 will return a result similar to 1:11.

    The application of this is in testing whether the brightness of two parts of an image conform to the Golden Ratio. In practice most of the ratios will be much closer, say between 5:1 and 1:5, so it might suit a log(10) solution?

    So, where x = left side of ratio and y = right side, how do I define z as this number between 0 & 1?

    This is keeping me up at night!
    Also mods, please move this thread if I'm in the wrong place.
    Thanks,
    Pietbot
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,612
    Thanks
    591

    Re: Comparing ratios to the Golden Ratio

    Hey Pietbot.

    One piece of advice I have regarding this is to use the definition of the ratio (in terms of square root of 5) and find a rational approximation to the square root factor.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Jun 2013
    From
    Brighton
    Posts
    9
    Thanks
    1

    Re: Comparing ratios to the Golden Ratio

    Thanks chiro that's an interesting idea and I guess would help in terms of apportioning more of the scale to the lower ratios I expect to get.

    Anyone have any ideas about the actual calculation needed here?

    Pietbot
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Comparing ratios to the Golden Ratio
    Posted in the Algebra Forum
    Replies: 9
    Last Post: June 12th 2013, 02:45 PM
  2. Replies: 1
    Last Post: April 10th 2012, 06:35 PM
  3. [SOLVED] Golden Ratio
    Posted in the Number Theory Forum
    Replies: 6
    Last Post: June 11th 2011, 06:00 PM
  4. Golden Ratios (Q Fields)
    Posted in the Number Theory Forum
    Replies: 10
    Last Post: July 14th 2010, 06:46 AM
  5. Golden ratio
    Posted in the Number Theory Forum
    Replies: 3
    Last Post: August 17th 2008, 05:15 AM

Search Tags


/mathhelpforum @mathhelpforum