[Israel.pm] What does this code do?
Moshe Kaminsky
kaminsky at math.huji.ac.il
Sun May 2 05:24:39 PDT 2004
* Shlomi Fish <shlomif at iglu.org.il> [02/05/04 15:00]:
> BTW, there's no need to use exp() and log() in this case. You could
> have written it as:
>
> perl -e '$N = shift; $num_true_cases=3**$N-3*(2**$N)+3; printf "%d\n",
> $num_true_cases'
>
> With "**" which is the power operator.
Thanks! I was looking for it.
Moshe
--
I love deadlines. I like the whooshing sound they make as they fly by.
-- Douglas Adams
Moshe Kaminsky <kaminsky at math.huji.ac.il>
Home: 08-9456841
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20040502/dc659796/attachment.pgp
More information about the Perl
mailing list