Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^6: Anyone with XS experience willing to create a high performance data type for Perl?

by jdporter (Chancellor)
on Nov 14, 2021 at 14:51 UTC ( #11138809=note: print w/replies, xml ) Need Help??


in reply to Re^5: Anyone with XS experience willing to create a high performance data type for Perl?
in thread Anyone with XS experience willing to create a high performance data type for Perl?

I could have said that 31 and 32 are different orders of magnitude (log of 31 is 1.49, log of 32 is 1.51)

That would mean you still weren't getting it. You have to round after doing the difference, not before.

You could also think of it like this, which is mathematically equivalent: round( log10( X / Y ) ).

I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.
  • Comment on Re^6: Anyone with XS experience willing to create a high performance data type for Perl?

Replies are listed 'Best First'.
Re^7: Anyone with XS experience willing to create a high performance data type for Perl?
by talexb (Chancellor) on Nov 14, 2021 at 23:09 UTC

    OK -- thank you, I get it now. I was looking at absolute orders of magnitude, when I should have been looking at relative orders of magnitude.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

      I'm not sure it even makes sense to talk about absolute orders of magnitude. There is no origin on a logarithmic scale.

        To me, the order of magnitude answers the question "What's the exponent?". For 99, the exponent's 1; for 100, the exponent's 2. That's it.

        Alex / talexb / Toronto

        Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2022-01-19 01:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (54 votes). Check out past polls.

    Notices?