Select function:
r = a(p + q sin(θ))
r = a(p + q cos(θ))
r = a(p + q tan(θ))
r = a(p + q cosec(θ))
r = a(p + q sec(θ))
r = a(p + q cot(θ))