I'm needing to map a value, but I'd like to figure out a formula or function to give me a slight curve in the mapped graph. Here's the current map:

` int val = map(reading, neutralVal, maxVal, 0, 799);`

This is to map an analog reading to a motor speed. 0-799 being the motor's speed, off and 100%.

What I'd like is a curve so that 50% of the analog reading give about 25% motor speed. I remember from Algebra there's a way to figure out the formula, but ...that was tooling ago.

Here's a graph depicting what I have I mind.