A simple lookup table would do the trick. You would have to measure the resistance curve for every Pot you use though- very time consuming if you're going to make more than a few of them. What are you using the pot for. For that kind of accuracy closed loop control might be better.