Selection of the numerical method 
Given the transcendental equation:
  $$ \frac{\tan x}{x} + c = 0, $$  where $c$ is any real number.

I tried Newton's method, but it is very bad fit. Which numerical method will be the smartest solution in this case?
 A: Avoid the singularities by solving
$$\sin x+cx\cos x=0$$ and try starting values $\dfrac\pi2+k\pi$ (near the vertical asymptotes of the original function).
A: Usually it is better to have a compressing function like $\arctan$ instead of an expanding one like $\tan$. Thus solve $$x+\arctan(cx)=kπ$$ which has a contracting fixed-point form $$x=g(x)=kπ−\arctan(cx)$$ for any $k∈\Bbb Z$ and $|c|<1$. 
For any $k\ne 0$ this iteration is contractive after the first step.


*

*After the first step the iteration is restricted to $[(k-0.5)\pi,(k+0.5)\pi]$. 

*On this interval $$|g'(x)|=\frac{|c|}{1+(cx)^2}\le\frac1{2|x|}<1$$ which is true for all $|x|>1$, thus especially for $|x|>(|k|-0.5)\pi\ge\frac\pi2$. 


Use Aitken's delta-square process or directly Newton for faster convergence. 
def aitken(g,x0,eps):
    x0 = g(x0)
    while True:
        x1 = g(x0);
        if abs(x1-x0)<eps: break
        x2 = g(x1)
        x0 = x0 - (x1-x0)**2/(x2-2*x1+x0)
    return x0

for k in range(1,n+1):
    print k, aitken(lambda x: k*pi-atan(c*x), k*pi, eps);  

As a graph one might visualize this plotting $-\arctan(cx)$ against $x-kπ$.

This shows that one will find roots close to $(k-0.5\text{sign}(c))\pi$ for $k\ne 0$.
For $c<-1$ this has two non-zero solutions for $k=0$ close to $\pm\frac\pi2$. Using $\tan x\approx x+\frac13x^3$ finds these roots close to $\pm\min(\frac\pi2,\sqrt{3(|c|-1)}$. Using this as initial value, the iteration of $g$ still converges, but a strict proof might be more involved.
if c<-1: print 0, aitken(lambda x: -atan(c*x), min(pi/2, (-3*(c+1))**0.5), eps)


A: There will be 2 solutions in $(-\frac {\pi}{2}, \frac {\pi}{2})$ if $c> 1$
and none if  $c< 1$ 
For each interval $(\frac {k}{2} \pi , (\frac {k}{2} + 1) \pi)$ there will be a solution.
I would choose a point an interval.  Choose a point in that interval, and apply Newtons method.
If the suggested next point is inside the targeted interval, use it.  If it is outside of the interval, use the midpoint of $x_n$ and the boundary point of the interval as $x_{n+1}$
A: If you can find an interval which contains a single root with a sign change, and no singularities, then the secant method or a variant on it should work. This method avoids the problems associated with picking a bad starting point. 
