Author Topic: Formula simplification help  (Read 841 times)

Altdotweb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Formula simplification help
« on: February 01, 2008, 04:48:07 PM »
switch(r, 1, 550, 2, 500, 3, 450, 4, 400, 5, 350, 6, 300, 7, 250, 8, 200, 9, 150, 10, 100, 11, 25, 12, 25, 13, 25, 14, 25, 15, 25, 16, 20, 17, 20, 18, 20, 19, 20, 20, 20, 21, 15, 22, 15, 23, 15, 24, 15, 25, 15, 26, 10)

Any place 26th and above get awarded 10 points. I don't know how to write that part. If anyone has a way to simplify this formula, help would be greatly appreciated.

Parameters:

- 26+ = 10 points
- 21st - 25th = 15 points
- 16th - 20th = 20 points
- 11th - 19th = 25
- 1st - 10th = 50

and

1st thru 10th gets 50 points for each place higher that they exit the tournament

10=50, 9=100, 8=150, 7=200, 6=250,,1=500 (all in 50 point increments.

It's times like this that I wish I paid more attention in Algebra2.

thanks for your help


MattBurlew

  • Jr. Member
  • **
  • Posts: 78
    • View Profile
Re: Formula simplification help
« Reply #1 on: February 01, 2008, 09:33:09 PM »
This is pretty easy.

so 26+ gets 10 points
  21st-25th get 15 points (or 5 beyond the minimum)
  16th-20th get 20 points (or 5 + 5 beyond the minimum)
  11th-15th get 25 points (or 5 + 5 + 5 beyond the minimum)
  10th gets 100, plus 50 for every place beyond that (up to 550 for 1st) (not including the 25 thus far)

10 + if(r<=25,5,0) + if(r<=20,5,0) + if(r<=15,5,0) + if(r<=10,50*(12-r)-25,0)

Altdotweb

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Formula simplification help
« Reply #2 on: February 02, 2008, 02:00:12 PM »
Thanks matt. That was exactly what I needed.