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

    200/1000=.2
    Therefore 50=1000
    50.2=999
    50.4=998
    And so on...
     
  5. Funkm05

    Funkm05 Dork

    B09C52FA-C777-43FB-BEF2-340852C92D0B.jpeg
     
    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!

    [​IMG]
    [​IMG]
     
  7. Robin172

    Robin172 Well-Known Member

    42
     
    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

    Y=-5x+1250
     
  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 Wannabe kneedragger

    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