Second the use of python, either 2/3. for decimal response, or use a variable an assign the result to it with the equal sign, then you can use it for more stuff later.<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 7:41 AM, shlomo bauer <span dir="ltr"><<a href="mailto:shlomobauer@gmail.com">shlomobauer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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><br clear="all"><br>-- <br>Check out my web site - <a href="http://www.words2u.net">www.words2u.net</a><br>