Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: calc - A Perl Shell

by AltBlue (Chaplain)
on Jun 01, 2006 at 07:56 UTC ( [id://552991]=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://552991]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-06-17 17:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.