Fsolve to the rescue!