Section8.4Newton-Raphson
We can find a solution to our equation C(t) =\Phi(C(t)) more efficiently by using Newton-Raphson. Note that \Phi is a power series (actually polynomial in u) and
We can run a quick test. With
xxxxxxxxxx
Rt.<t> = QQ[[]]
Ct = (1/2)*(1-(1-4*t).sqrt()).shift(-1)
phi = lambda u: 1+t*u^2
nr = lambda u: u + (phi(u)-u)/(1-2*t*u)
we find that the first 22 terms of nr(nr(nr(1+t))) are correct.
xxxxxxxxxx
nr(nr(nr(1+t)))
xxxxxxxxxx
nr(nr(nr(1+t))).O(19) - Ct.O(19)
Your task is to write an efficient implementation of this method.