Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Determining if a rational number terminates

by pemungkah (Priest)
on Dec 03, 2012 at 01:34 UTC ( #1006773=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Determining if a rational number terminates
in thread Determining if a rational number terminates

+1 for ironic comment on comments.

As we all know, the uncommented part is the part that needs the comment here. (And if you say "the code is obvious and needs no comments", it's my sincere opinion you need to get out more.)


Comment on Re^3: Determining if a rational number terminates
Re^4: Determining if a rational number terminates
by tobyink (Abbot) on Dec 03, 2012 at 07:37 UTC

    Actually, if you fix up the whitespace and rename the functions:

    • _ => highest_common_factor
    • __ => canonical_fraction

    ... it's not too bad.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2014-07-11 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (220 votes), past polls