# | Line 17 | Line 17 | root2(f, x0, x1, i) = if(i, | |
---|---|---|
17 | ||
18 | abs(x) = if(x, x, -x); | |
19 | lim(x) = if(x, max(x,err), -max(-x,err)); | |
20 | – | max(a,b) = if(a-b, a, b); |
20 | ||
21 | f1(f,x) = (f(x+FTINY)-f(x-FTINY))/(2*FTINY); { numerical derivative } | |
22 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |