South African Skeptics ### Formula

Tweefo · 3 · 1841

#### Tweefo

• Hero Member
•     • Posts: 1580
• Skeptical ability: +10/-0
All the Mathematical boffins here. I need the formula for a slide scale. The percentage of 1500 = 40%. The percentage must slide down and at 25000 and above it must be at 10%. <1500 = 40% >25000 = 10%.
If you don't agree with me you are obviously not from this planet.

#### Rigil Kent

• Armed liberal
• Hero Member
•     • Posts: 2544
• Skeptical ability: +20/-3
• Three men make a tiger.
It looks like you're describing a piecewise function. I doubt there is "one formula to rule them all". Assuming that the "slidy" part is linear, you could maybe try something like this:

y = 40                                             for x < 1500

y = 40 + ( 3 / 2350 )( 1500 - x )       for 1500 ≤ x ≤ 25000

y = 10                                             for x > 25000

Rigil

You know it's cold outside when you go outside and it's cold.

#### Tweefo

• Hero Member
•     • Posts: 1580
• Skeptical ability: +10/-0
Thanks. MS Excel came to the rescue. I am a dof after 2+2.
If you don't agree with me you are obviously not from this planet.