Anonymous user
Find limit of recursion: Difference between revisions
→{{header|gnuplot}}: incorporate the "try" initialization in the code rather than command line
(→{{header|OCaml}}: make it more readable with some indentation) |
(→{{header|gnuplot}}: incorporate the "try" initialization in the code rather than command line) |
||
Line 573:
=={{header|gnuplot}}==
<lang gnuplot># Put this in a file
# gnuplot
# probe by 1 up to 1000, then by 1% increases
if (! exists("try")) { try=0 }
try=(try<1000 ? try+1 : try*1.01)
Line 587 ⟶ 588:
<pre>try recurse 251
"/
Gnuplot 4.4 and earlier has no limit except the C stack, giving a segv or whatever eventually.
|