I'm trying to find the inverse of the function: $$y=\frac{x^f + 1 - (1-x)^\frac{1}{f}}{2}$$ where $f=10c^3+1$ and $x,y$ and $z$ lie in the interval $[0,1]$
I'm using this for mapping of MIDI note velocities and need to be able to convert back to the original value - but my math is failing me.
The function is basically a curved line from (0,0) -> (1,1) where c controls how much it bends away from the straight line.
See here for Desmos Calculator showing how the curve behaves.
Sorry for incorrect previous posting, pretty sure the function is now correct.
Someone asked about the rationale... to be honest I can't remember where I got this function. It's been in my software for 10+ years and works well but now I need the inverse.
Note: this function looks symmetrical about the line $y=1-x$ for the specified x range... but it's definitely not.