Exercises 1.40 - 1.42 | |
1.40We must define a function which will use newtons-method to find the approximate 0 (zero) of the cubic equation of the form $$x^3 + ax^2 + bx + c$$ I.e. a function which approximates to a $$y \rightarrow y^2 - x, y0 = 1$$ Newtons method idea is to start with a reasonable guess of the result and iterate further by using (following math snippet doesn't work as marginalia processes underscores using markdown): $$X{n+1} = X{n} - f(X{n}) / f'(X{n})$$ This means we have to express given differentiable function in a way that's iteratable by the (newtons-method) function. In our case: $$g(x) = x^3 + ax^2 + bx + c = y$$ $$Dg(x) = 3x^2 + x^2 + b$$ Actually, this exercise doesn't need any of this stuff. Disregard it and carry on. | |
$$2^3 + 2^3 + 2^2 + 2 = 22$$ | |
1.41 | |
Essentially a | |
This one is tricky. It's obvious, that Lets expand doubles one by one:
So we can say that nesting | |
And what about
That's not an 8x application, but a 16x! We apply | |
1.42
| |