TPK algorithm: Difference between revisions

Content deleted Content added
Bsod2 (talk | contribs)
Line 23:
The algorithm reads eleven numbers from an input device, stores them in an array, and then processes them in reverse order, applying a user-defined function to each value and reporting either the value of the function or a message to the effect that the value has exceeded some threshold.
 
The problem with the usually specified function is that the term 5*t^3 gives overflows in almost all languages for very large negative values. (For very large positive values one could solve f(t)==400, yielding for t around 4.3, and write 'TOO LARGE' before ever evaluating f(t).)
 
==Perl golf==