Check if a point is inside , outside or on the parabola | Function to check the point ; checking the equation of parabola with the given point ; driver code
function checkpoint ( h , k , x , y , a ) { var p = parseInt ( Math . pow ( ( y - k ) , 2 ) - 4 * a * ( x - h ) ) ; return p ; } var h = 0 , k = 0 , x = 2 , y = 1 , a = 4 ; if ( checkpoint ( h , k , x , y , a ) > 0 ) document . write ( " " ) ; else if ( checkpoint ( h , k , x , y , a ) == 0 ) document . write ( " " ) ; else document . write ( " " ) ;