in reply to calc - A Perl Shell

Perl, computing... hmm ;-) Compare these:
$ echo 'x=y=1.2; x+=1.1; x-=1.1; x; y; x==y' |bc |xargs echo 1.2 1.2 1
$ perl -wle '$x=$y=1.2; $x+=1.1; $x-=1.1; $,=$"; print $x, $y, $x == $ +y' 1.2 1.2
don't you love perl? ;-)

Replies are listed 'Best First'.
Re^2: calc - A Perl Shell
by ambrus (Abbot) on Jun 01, 2006 at 09:02 UTC

    As a quick calculator (especially with vector/matrix ops) I like the J programming language. It's not quite good as a real programming language IMO, but it's ideal for doing some quick numeric computations. GNU octave is good for the same purpose as well.