Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
XP is just a number
 
PerlMonks  

Re: RE: RE: Adding 2 + 2

by a (Friar)
on Feb 11, 2001 at 05:04 UTC ( [id://57718]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to RE: RE: Adding 2 + 2
in thread Adding 2 + 2

Uh, I thought 2 squared was just a shorthand for 2 + 2, er, or inherently linked or something. Sure, it a ... what's that word, pathological? case but ...

a

Replies are listed 'Best First'.
Re: Re: RE: RE: Adding 2 + 2
by Tiefling (Monk) on Jun 05, 2001 at 11:24 UTC
    So nearly...

    22 is a shorthand for 2x2, which is a special case, since the exponent equals the mantissa. It's only equal to 2+2 by coincidence, though, or rather, due to the fact that 2 enumerates the number of arguments taken by binary (!=base 2) addition. There's nothing terribly pathological about any of this. The result (which I understand Larry wants allowed by Perl 6) that 00=1 is really pathological.

    And I may be just a novice, but how about:
     sub addtwoandtwo { 2+2 } ?

    Tiefling (utter novice)

    Thanks for the downvotes! Feel like telling me what's wrong?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://57718]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.