I do not have a math background, but I can see that the function in the below posted patch is useful to me ...
In the below patch, I use the [lexpr] object to take 8 evenly spaced values between 0. and 1. that I would like to distribute according to the curve of the function that I refer to in the example.