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

Re: Re: Re: Golf: overtone calculator

by jynx (Priest)
on Sep 02, 2002 at 01:37 UTC ( #194495=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Golf: overtone calculator
in thread Golf: overtone calculator

Does this fix the problem? (at 72 chars):
sub Harmonics ($$) { #23456789_123456789_123456789_123456789_123456789_123456789_123456789_ +12 for$a(1..pop){$_{sprintf'%.3f',$_[0]*$a/$_}++for 1..$a}sort{$a-$b}keys +%_ }

Replies are listed 'Best First'.
Re^4: Golf: overtone calculator
by Aristotle (Chancellor) on Sep 02, 2002 at 02:07 UTC
    I'm outta votes right now, but kudos for the $a-$b bit. D'oh..

    Makeshifts last the longest.

Re: Re: Re: Re: Golf: overtone calculator
by Django (Pilgrim) on Sep 02, 2002 at 06:43 UTC

    Does this fix the problem?

    Yepp, not only working, but kicking out my sort too!

    "Why don't we ever challenge the spherical earth theory?"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194495]
LanX leaves with a song of the Chjuman League
[ambrus]: LanX: that's funny because it's actually the upper class that sleep in hotels, so they're the ones who should know how it's pronounced
[LanX]: h is mute in French (and most other romanic languages)
[LanX]: https://en. oxforddictionaries .com/explore/words -with-silent-h
[LanX]: it's 'orrible zis langage...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2017-03-27 17:33 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (321 votes). Check out past polls.