Equation For A Square On A Graph