Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: #perl.br calc - A Perl Shell

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


in reply to #perl.br 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? ;-)


Comment on Re: #perl.br calc - A Perl Shell
Select or Download Code
Re^2: #perl.br 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2015-07-06 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (73 votes), past polls