I was able to translate this from LTSpice potentiometer code by Helmut Sennewald. But math is not my thing so I'm not sure if it is possible to reverse this so that if given point on ln segment algorithm would return corresponding value on original straight segment. For now my uber naive solution is to scan the thing to get answer. Here is the original working forward code.
//power function slider
public float projectOntoSegment(float val, float min, float max) {
//val is location as percentage on segment
float range = max - min;
float tap_point = 0.2f;//knee point as percentage
float tap_val = range * 0.05f; //how much at knee:lets say 5% of scale
double exp = Math.log(tap_val / range) / Math.log(tap_point);
double ratio = Math.pow(val, exp);
float eff_val = min + (float) (range * ratio);
//eff_val = min + (range*val);//linear
return eff_val;
}