Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Constants you cannot help but remember

by halley (Prior)
on Jun 08, 2004 at 17:28 UTC ( #362448=note: print w/ replies, xml ) Need Help??


in reply to Constants you cannot help but remember

e ^ (i * pi) + 1 = 0

There really are only three numbers of interest in computer programming, though: ZERO, ONE and N. If you need to support two of something, you really should refactor to support any arbitrary number instead.

Oh, and the 72 points per inch thing is an abomination spawned by Adobe, Inc. to simplify their PostScript programming language. The traditional value is 72.27 points per inch. It's kinda sad that the Google calculator prefers Adobe's version of the number, but at least it refers to them as "PostScript points".

--
[ e d @ h a l l e y . c c ]


Comment on Re: Constants you cannot help but remember
Download Code
Re^2: Constants you cannot help but remember
by PhilHibbs (Hermit) on Jun 10, 2004 at 17:09 UTC
    I maintain that there are only three numbers: 0, 1, and infinity; and I'm not entirely convinced about the 1.

    This applies to mathematics in general, not just programming, but it is especially pertinent to programming.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-09-20 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls