Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: OT: Finding Factor Closest To Square Root

by sleepingsquirrel (Hermit)
on Feb 19, 2005 at 17:15 UTC ( #432758=note: print w/replies, xml ) Need Help??


in reply to Re^3: OT: Finding Factor Closest To Square Root
in thread OT: Finding Factor Closest To Square Root

For the case of 1994, I'd say 2 is closer to 44.65... than 997. For 1993, I'd probably go with 1 over 1e99 or 1993. For 99999999, I think 9999 (101*11*3*3) is closest. (I'm just basing this on the comments after the __END__ tag in your code, 'cause I'm to lazy to install Math::Big::Factor)


-- All code is 100% tested and functional unless otherwise noted.

Replies are listed 'Best First'.
Re^5: OT: Finding Factor Closest To Square Root
by BrowserUk (Pope) on Feb 19, 2005 at 20:11 UTC
    , 'cause I'm to lazy to install Math::Big::Factor

    I think that Math::Big::Factor may be a red-herring anyway. See Re: OT: Finding Factor Closest To Square Root.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432758]
help
Chatterbox?
[Lady_Aleena]: shmem, there is MP3::Info/
[Discipulus]: too much complex qx when you know perl are better to avoid
[marioroy]: might need to backslash \'*.mp3\'
[marioroy]: It's a quoting issue inside qx. It's File::Find or qx. LA chooses qx. Almost there.
[marioroy]: Also \"%S\\\n\" oh my, not fun.
[Discipulus]: good night folks
[marioroy]: I will make a mp3info script that takes the -p "%S\n" args and test qx. I'm on the road, so will come back.
[marioroy]: All because File::Find is not fun for LA.
[marioroy]: good night Discipulus.
[Discipulus]: perl dreams to you all

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-04-23 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.