Anonymous user
Roots of a function: Difference between revisions
m
→{{header|Tcl}}
m (→{{header|Tcl}}: Noted that approximation is inherent) |
m (→{{header|Tcl}}) |
||
Line 499:
user 0m0.062s
sys 0m0.030s</pre>
A more elegant solution (and faster, because you can usually make the initial search coarser) is to use brute-force iteration and then refine with [
<lang Tcl>proc frootsNR {f df {start -3} {end 3} {step 0.001}} {
set res {}
|