Math problem where graphing calculator may slow you down - part II.
|
11-30-2014, 12:16 PM
Post: #17
|
|||
|
|||
RE: Math problem where graphing calculator may slow you down - part II.
(11-30-2014 01:33 AM)lrdheat Wrote: Rather slow on this sort of problem! For this specific problem the derivative is trivial: \[ \begin{align} F(x)&=\int_{0}^{x}f(t)dt-4 \\ F'(x)&=f(x) \\ \end{align} \] Thus we can use Newton's method: \[ \begin{align} x'&=x-\frac{F(x)}{F'(x)} \\ &=x-\frac{\int_{0}^{x}f(t)dt-4}{f(x)} \\ &=x+\frac{\int_{x}^{0}f(t)dt+4}{f(x)} \\ \end{align} \] Instead of starting the integration from \(0\) over and over again we can reuse the result of \(F(x)\) from the previous loop: \[ F(x')=F(x)+\int_{x}^{x'}f(t)dt \] This value is saved in register 01. Code: LBL'FX' Code: LBL'NWT' This will speed up the calculation. Cheers Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)