Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

karlgoethebier's scratchpad

by karlgoethebier (Vicar)
on Nov 02, 2012 at 12:43 UTC ( #1001959=scratchpad: print w/ replies, xml ) Need Help??

Only drafts here. You have been warned.

#!/usr/bin/env perl use strict; use warnings; use PDL; use feature qw(say); say mm( 100, 1000 ); sub mm { my ( $min, $max ) = @_; return if $min >= $max; my $f = sub { ( random( 10, 10, 10 ) * ( $max - $min + 1 ) + $min )->flo +or; }; my $x = $f->(); my $y = $f->(); $x x $y; } __END__

 

#!/usr/bin/env perl # stolen from node 58767 use strict; use warnings; use feature qw(say); say pi(); # pi() for 1 .. 10_000_000; sub pi { my $i = 14; my $x = $i - 1; my $y = sqrt(2); do { $y = sqrt( 2 + $y ) while ( --$x ); $y = sqrt( 2 - $y ); } if $x; my $z = $y * ( 2**$i ); } __END__
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2015-05-26 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (500 votes), past polls