f(x) = asin(x)
g(x) = asin(x / 4.0)
h(x) = acos(x)
p(x) = acos(x / 6.0)
q(x) = sqrt(sin(x) - cos(x))
r(x) = atan(x)