I have
cubicQ a b c = ((3*a*c) - b**2)/(9 * (a**2))
I need to get the value of "a" out of that so I can use it in another function, without having to pass it as an argument in that other function. The function I need to use it in is below:
cubicRealSolution q r s t = if p < 0 then error "NaN" else (s + t) - ((b)/(3*(a)))
aandbwould be? You haven't calledcubicQat all, and whatever values you would use in such a call are the values you would use incubicRealSolutionin the first place.q, etc., but does not really makes a "function application".