Satisfy the parabola when point ( A , B ) and the equation is given | Function to find the required values ; Driver code
function solve ( A , B ) { let p = B / 2.0 ; let M = Math . ceil ( 4 * p ) ; let N = 1 ; let O = - 2 * A ; let Q = Math . ceil ( A * A + 4 * p * p ) ; document . write ( M + " " + N + " " + O + " " + Q ) ; } let a = 1 ; let b = 1 ; solve ( a , b ) ;