I am trying to come up with equations that can create a smooth downward decrease along $y$ so it falls from $0.997$ down to $0.990$. I am interested at the interval [N/5, N] along the $x$-axis.
I almost got it to work (0.997 is in the correct place at x=6.4), however, the value $0.99$ occurs at $x=37.4$ not at $x=32$ like I would desire.
How to tweak my formulas to get it?
... and N can change, it's a positive integer above zero)

You seem to want