Special case when slope of required line becomes infinity
if ( 1 - math . tan ( x ) * given_slope == 0 ) : NEW_LINE INDENT print ( " x ▁ = " , x1 ) NEW_LINE DEDENT if ( 1 + math . tan ( x ) * given_slope == 0 ) : NEW_LINE INDENT print ( " x ▁ = " , x1 ) NEW_LINE DEDENT