Equation of parabola from its focus and directrix | Function to find equation of parabola . ; Driver Code
function equation_parabola ( x1 , y1 , a , b , c ) { var t = a * a + b * b ; var a1 = t - ( a * a ) ; var b1 = t - ( b * b ) ; var c1 = ( - 2 * t * x1 ) - ( 2 * c * a ) ; var d1 = ( - 2 * t * y1 ) - ( 2 * c * b ) ; var e1 = - 2 * a * b ; var f1 = ( - c * c ) + ( t * x1 * x1 ) + ( t * y1 * y1 ) ; document . write ( " " + a1 + " " + b1 + " " + c1 + " " + d1 + " " + e1 + " " + f1 + " " ) ; } var x1 = 0 ; var y1 = 0 ; var a = 3 ; var b = - 4 ; var c = 2 ; equation_parabola ( x1 , y1 , a , b , c ) ;