Hello Vlad,
Your example has roughly 1% of full scale non-linearity in the wiper-position versus?control voltage.
What's necessary to modify in the atanh() function to get a potentiometer which is exactly proportional to the control voltage?
Best regards,
Helmut