Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Determining if a rational number terminates

by tobyink (Abbot)
on Dec 03, 2012 at 07:37 UTC ( #1006809=note: print w/replies, xml ) Need Help??


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

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://1006809]
help
Chatterbox?
[marto]: I turn my back for 2 minutes and son #2 has opened 20 foil wrapped chocolate Christmas tree decorations, to sort them into piles of matching designs...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2017-12-16 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (450 votes). Check out past polls.

    Notices?