math nerds

Discussion in 'General' started by sicc, Dec 6, 2018.

  1. sicc

    sicc Well-Known Member

    i need help with a formula in my program and i feel stupid.

    if 50 = 1000 and 250 = 0

    what is the formula to take any number between 50 and 250 and give it a value from 1000 to 0?
  2. stangmx13

    stangmx13 Well-Known Member

    y = a*x + b, where a = (y2 - y1) / (x2 - x1) and b = y2 - a*x2

    so based on what u typed (I think):
    a = (0 - 1000) / (250 - 50) = -5
    b = 0 - (-5 * 250) = 1250
    Monsterdood likes this.
  3. Monsterdood

    Monsterdood Well-Known Member

    So with Y = -5*X + 1250
    when X=50, Y=-5*50 + 1250 = 1000 Check
    when X=250, Y=-5*250 + 1250 = 0 Check
    Good equation :beer:
  4. turner38

    turner38 Well-Known Member

    Therefore 50=1000
    And so on...
  5. Funkm05

    Funkm05 Dork

    cpettit likes this.
  6. sicc

    sicc Well-Known Member

    im lazy so i just went with Score = (1000 / X) * 50. Its measured in milliseconds, seems to work just fine.

    Behold! sicc's garage punching machine. bring on the sprained wrists!

  7. Robin172

    Robin172 Well-Known Member

    Phl218 likes this.
  8. I have a masters in engineering and my brain so fried today that made it hurt. I cannot do basic math today.
  9. cpettit

    cpettit Well-Known Member

    tell me about it.... we had a department/company dinner last night, my head hurts so bad that even reading this is making me dizzy.
  10. HPPT

    HPPT Admin/Mod

    This thread should probably be deleted before metalhead gets seriously hurt.
    Phl218 and Robin172 like this.
  11. dsapsis

    dsapsis El Jefe de los Monos

    That might be fun to watch though.

    Note the OP only defined a range of x for the linear relationship to hold, so the the proper form of the equation is
    For x = 50 to 250, then y= 1250 -5x.

    Did that put Metalhead in the ditch?
    Last edited: Dec 7, 2018
  12. Robin172

    Robin172 Well-Known Member

  13. vfrket

    vfrket Lost Member

    What if you do not want a linear relationship? You know so you can look more manly depending on your needs....
  14. ZimZam

    ZimZam Well-Known Member

    What is going on here?
  15. stangmx13

    stangmx13 Well-Known Member

    ud need another point to define how non-linear. or u could just make it up.
  16. 90kacoupe

    90kacoupe Novice seeking Help

    For all we know its a Sinusoidal function with an amplitude of 1000 and just so happens to cross 0 at 250.

Share This Page