home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky rec.humor:34014 rec.humor.d:2666 alt.folklore.computers:16324
- Newsgroups: rec.humor,rec.humor.d,alt.folklore.computers
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sun-barr!cs.utexas.edu!uwm.edu!caen!sol.ctr.columbia.edu!emory!wupost!udel!louie!balin.cis.udel.edu!mnelson
- From: mnelson@balin.cis.udel.edu (Mark Nelson)
- Subject: Re: base -2 arithmetic (was: Re: Trinary)
- Message-ID: <1992Nov17.042608.4306@udel.edu>
- Keywords: offensive to engineers and marines
- Sender: usenet@udel.edu (USENET News Service)
- Nntp-Posting-Host: balin.cis.udel.edu
- Organization: University of Delaware, Newark
- References: <1992Nov12.050621.2560@udel.edu> <BxtyEE.Bq5@icon.rose.hp.com>
- Date: Tue, 17 Nov 1992 04:26:08 GMT
- Lines: 54
-
- In article <BxtyEE.Bq5@icon.rose.hp.com> chapp@hprpcd.rose.hp.com (Bill Chapp) writes:
- >Mark Nelson (mnelson@wilma.cis.udel.edu) wrote:
- >>Bases need not even be integers: one of my favorites is sqrt(2) * I
- >>(sqrt(2) * J for any engineers out there :-).
- >
- >Someone else gave the example of base 2I using the digits 0, 1, 2, and 3.
- >What are the digits for base sqrt(2)*I, and in general how do you
- >determine which digits are "legal" for non integral bases?
- >
- >Since (sqrt(2)*I)^2 = -2, it appears that the even powered digits work
- >like the base -2 example that started this mess. The odd powered digits
- >seem to able to give us only imaginary multiples of sqrt(2), unless we
- >allow for irrational digits.
- >
- >And my most important question: what does any of this have to do with
- >humor?
- >
- >-Bill
-
- Hey, I said that sqrt(2) * I was a "favorite" base, not that it was
- the most useful base. I was mainly using it to give an example of
- a (valid) base that most people wouldn't consider.
-
- As you point out, the even powered digits work like base -2, and the
- odd powered digits give imaginary multiples of sqrt(2) (positive and
- negative), so the even and odd powers are in a sense orthogonal. Thus,
- the only digits needed are 0 and 1, since any other digits would be
- redundant, i.e. every number expressable in this base as a "rational"
- can be expressed using some string of 0s and 1s. The general rule
- for which digits are legal in any base is: exactly as many as you
- need, starting with 0 and working your way up, of course (actually,
- base 1 breaks this rule, but base 1 isn't a real base, since it
- doesn't have a true expression for zero or any way to express
- non-integers).
-
- Base 2I would probably be more practical, but it still has its
- oddities: any complex number with an odd imaginary part requires
- a digit to the right of the radix point, e.g. I = 10.2 .
-
- What does this have to do with humor? I was poking fun at engineers
- and their use of J = sqrt(-2). Ob. joke:
-
- It's WWII, and an admiral is giving a briefing prior to an amphibious
- invasion: "...The shelling will start at sixteen fifty hours. For
- you members of the press, that's four fifty p.m. For you marines,
- that's when the little hand is on the five and the big hand is on
- the ten..."
-
- See the parallel?
- --
- This function is occasionally useful as an argument to other functions
- which require functions as arguments.-- Guy Steele Jr. CLTL
-
- Mark Nelson mnelson@cis.udel.edu
-