Equation of circle from center and radius | Function to find the equation of circle ; Printing result ; Driver code
function circle_equation ( x1 , y1 , r ) { let a = - 2 * x1 ; let b = - 2 * y1 ; let c = ( r * r ) - ( x1 * x1 ) - ( y1 * y1 ) ; document . write ( " " + a + " " ) ; document . write ( " " + b + " " ) ; document . write ( c + " " ) ; } let x1 = 2 ; let y1 = - 3 ; let r = 8 ; circle_equation ( x1 , y1 , r ) ;