Welcome, guest | Sign In | My Account | Store | Cart
def solve(eq,var='x'):
    eq1 = eq.replace("=","-(")+")"
    c = eval(eq1,{var:1j})
    return -c.real/c.imag

History

  • revision 2 (19 years ago)
  • previous revisions are not available