Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Determining if a rational number terminates

by pemungkah (Priest)
on Dec 03, 2012 at 01:34 UTC ( [id://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.)

Replies are listed 'Best First'.
Re^4: Determining if a rational number terminates
by tobyink (Canon) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1006773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-19 08:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found