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

Re: What is zero divided by zero anyway?

by Aristotle (Chancellor)
on Oct 05, 2002 at 13:20 UTC ( [id://203031]=note: print w/replies, xml ) Need Help??


in reply to What is zero divided by zero anyway?

Even 0 / 0 cannot really be defined. Think about it: how many times does "nothing" fit into "no space"? inf / inf isn't any defined value either since 2 * inf = 3 * inf = 12098341 * inf. I won't claim to be a math wiz, but I have a certain talent for it and I've played with the concepts a bit in my spare time out of curiosity. Zero and infinity both are deep voodoo.

I wish tilly was around to answer this one.

Makeshifts last the longest.

  • Comment on Re: What is zero divided by zero anyway?

Replies are listed 'Best First'.
Re:x2 What is zero divided by zero anyway?
by grinder (Bishop) on Oct 05, 2002 at 14:52 UTC

    tilly talked about dividing by zero in a reply to More Fun with Zero!.


    print@_{sort keys %_},$/if%_=split//,'= & *a?b:e\f/h^h!j+n,o@o;r$s-t%t#u'
Re: Re: What is zero divided by zero anyway?
by BrowserUk (Patriarch) on Oct 05, 2002 at 13:45 UTC

    Think of it another way.

    my $value = get_numeric_value_from_somewhere(); print 'Will always be printed' if ($value/$value) == 1; # Except for zero!!

    the above is true, for 1/1; -1/-1; .1/.1; -.1/-.1; etc. etc. all the way down to the smallest values on either side of zero that any given machine can represent.

    Out of interest, after I posted I did a quick google on the net and discovered that at least one computer langauge treats 0/0 as 1. Namely APL, which as its a language essentially designed for mathematical problem solving, at least makes me feel a little better regarding the notion, even if ultimately 0/0=1 isn't correct in the pure math sense.


    Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!
      Think of it another way.

      my $value= get_numeric_value_from_somewhere(); eval { print 'Will never be printed' if ($value/0) } # except for zero, you want?!
      The result is true for .1/0, .0001/0, etc. etc. all the way down to the smallest values on either side of zero that any given machine can represent.

      Why should it be different for zero itself?

Re: Re: What is zero divided by zero anyway?
by arturo (Vicar) on Oct 08, 2002 at 23:49 UTC

    Not only that, but "infinity" doesn't name one number. There are different infinities ...

    For example, the set of natural numbers (0,1,2,3,...), aka N, is a *denumerable* infinity ('denumerable' meaning, 'can be put in a 1:1 correspondence with the members of N' -- so N satisfies this definition trivially), as is the set of multiples of 10 -- EVEN THOUGH that set is a subset of N. The set of multiples of 10 is, intuitively, a tenth the size of N? But no, for every member of the set of multiples of 10, you can find a partner in N.

    Moreover, there are non-denumerable infinities (memory gets fuzzy here): the power set (set of all subsets) of N is non-denumerable; and the set of real numbers is also non-denumerable -- there are too many points on the real line to put in a 1:1 correspondence with N (intuitively: though with the case of multiples of 10, there is a way to figure out what the next number is, there's no way to find the "next point" given a specific point on the real line).

    Isn't math fun?

    If not P, what? Q maybe?
    "Sidney Morgenbesser"

      Yes, and it gets weirder than that if you think further along those lines. In sets beyond the natural numbers, among the real numbers f.ex, any two numbers are separated by an infinite set of numbers. In fact, because you can translate any set of reals delimited by two numbers (exclusive) to any other set of reals delimited by any two numbers (exclusive) with a single multiplication, this means that the distance between any two numbers is equally large.

      F.ex, the set of numbers between 1.0 and 2.0 exclusive is inifinite. No matter how many members you assume, there are still more numbers between those. The same is true for the set of numbers between 2.0 and 10.0 - it is infinite. But although the interval from 1.0 to 2.0 exclusive is of length 1, and that from 2.0 to 10.0 exclusive is of length 8, you can map the set { x ∈ R ; 1.0 < x < 2.0 } to set { x ∈ R ; 2.0 < x < 10.0 } by simply multiplying by 8.

      As I said on the onset of this thread: zero and infinity are deep voodoo. Zero is deceptively so, it looks innocent at first, but it's still voodoo.

      Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found