f(x) = x^(p / q)

f(x)=x^ \frac{1}{q}

p = 1 (slider from -5 to 5, step 1)
q = 2 (slider from 1 to 6, step 1)
f(x) = x^(1.0 / q)