def rational_limit(f, g, t0):
assert isinstance(f, np.poly1d) and isinstance(g, np.poly1d)<EOL>assert g != np.poly1d([<NUM_LIT:0>])<EOL>if g(t0) != <NUM_LIT:0>:<EOL><INDENT>return f(t0)/g(t0)<EOL><DEDENT>elif f(t0) == <NUM_LIT:0>:<EOL><INDENT>return rational_limit(f.deriv(), g.deriv(), t0)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>
Computes the limit of the rational function (f/g)(t)
    as t approaches t0.