<div dir="ltr">Regarding doing approximate answers in the head, it doesn't always work as is told in an anecdote <br> of the books about the late physists Richard Feynmann. It tells the story of how he used to brag that any arithmetic problem that could be stated in in ten seconds he could give an approximate answer up to 10% to in 30seconds. This all worked out for a while until someone said to him<br>
<br><div style="margin-left: 40px;">sine of a million<br></div><br>which managed to shut up even Richard Feynmann.<br><br>Cheers,<br>Dov<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 16:41, shlomo bauer <span dir="ltr"><<a href="mailto:shlomobauer@gmail.com">shlomobauer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
Sammy is wondering (for years) how unix/linux users do simple calculations.<br>
<br>
Many people write their own calculator language - in the tradition of<br>
hoc. Anyone who actually<br>
enters in the code for hoc will discover something quite interesting.<br>
<br>
Other people use languages like Nickle (<a href="http://nickle.org/" target="_blank">http://nickle.org/</a>); I<br>
typically use haskell and in the past, I used ocaml and further in the<br>
past, I used sml - still my favorite.<br>
<br>
Another approach is to use a spreadsheet. You can compute recursive<br>
functions using !.<br>
<br>
My favorite, for "simple" cacluations, is to compute an approximate<br>
answer and to do so, I don't generally need anything except a sense of<br>
the scale of the numbers.<br>
<br>
Shlomo<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br></div>