POV-Ray : Newsgroups : povray.general : Function: Making negative numbers positive Server Time
10 Jun 2024 09:23:16 EDT (-0400)
  Function: Making negative numbers positive (Message 24 to 33 of 33)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Kenneth
Subject: Re: Function: Making negative numbers positive
Date: 29 Nov 2015 03:50:01
Message: <web.565abbd57aaf16cc33c457550@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
>
> ...As a matter of fact, in its most
> basic form the multiplication operation isn't even /defined/ for
> negative numbers; defining whether the product of two negative values
> should itself be negative or positive is actually a choice -- it doesn't
> follow from first principles (although the choice that such a product
> should be positive turns out to be helpful).
>
This particular example-- multiplying two negative numbers and getting a
positive answer-- has always given me pause, philosophically. That might sound
strange, coming from someone who considers himself (reasonably) math-literate;
but I have always had a kind of built-in stumbling-block regarding it's
'philosophical basis', and why or how this 'convention' came about, in the
history of mathematics. ('Convention' may not be the correct way of putting it,
of course; there have no doubt been many great mathematicians who have struggled
with this concept in order to put it on a firm logical foundation. I hope!)

Put more simply: It seems perfectly 'obvious' that +3 X +2 = +6 (as any child
discovers, when making two sets of three toy blocks, for example.) Likewise, -2
X +3 should 'obviously' produce -6 ... although I can't think of a good
'child's' example to illustrate that ;-) But when it comes to -2 X -3, it just
doesn't seem 'intuitive' that it should produce a positive value. (Although,
what *else* it should produce is certainly a mystery!) HOWEVER... I'm not about
to question centuries (millennia??) of mathematical thought-- I'll just accept
it. ;-)


Post a reply to this message

From: Jérôme M. Berger
Subject: Re: Function: Making negative numbers positive
Date: 29 Nov 2015 07:13:20
Message: <565aebe0$1@news.povray.org>
On 11/29/2015 09:48 AM, Kenneth wrote:
> Put more simply: It seems perfectly 'obvious' that +3 X +2 = +6 (as a
ny child
> discovers, when making two sets of three toy blocks, for example.) Like
wise, -2
> X +3 should 'obviously' produce -6 ... although I can't think of a good

> 'child's' example to illustrate that ;-) But when it comes to -2 X -3, 
it just
> doesn't seem 'intuitive' that it should produce a positive value. (Alth
ough,
> what *else* it should produce is certainly a mystery!) HOWEVER... I'm n
ot about
> to question centuries (millennia??) of mathematical thought-- I'll just
 accept
> it. ;-)
> 
    Here's a logical explanation: it also seems 'obvious' that:
(a + b) × c = (a × c) + (b × c) and it is pretty easy to
 validate with
numbers: (1 + 2) × 2 = (3) × 2 = 6 = 2 + 4 = (1 × 
2) + (2 × 2). From a
theoretical standpoint, this is actually one of the ground rules that
define the multiplication (called distributivity). Now, apply this rule
with a = -b and c < 0, for example with your numbers: a = +2, b = -
2 and
c = -3. You get:

(+2 + -2) × -3 = (+2 × -3) + (-2 × -3)

which transforms into:

0 × -3 = (+2 × -3) + (-2 × -3)        by definition of -
2
0 = -6 + (-2 × -3)                    you said yourself it was 'ob
vious'
6 = (-2 × -3)                         by definition of -6

    Note: the 'ovbious' second step derives from the same ground rule by
taking c > 0: 0 = (+2 + -2) × +3 = (+2 × +3) + (-2 × +
3).

        Jerome
-- 
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

From: Stephen
Subject: Re: Function: Making negative numbers positive
Date: 29 Nov 2015 09:52:47
Message: <565b113f$1@news.povray.org>
On 11/29/2015 8:48 AM, Kenneth wrote:
> This particular example-- multiplying two negative numbers and getting a
> positive answer-- has always given me pause, philosophically. That might sound
> strange, coming from someone who considers himself (reasonably) math-literate;

Hmm! I tried to explain it using adding the number of times you want to 
multiply it. When I tried to multiply two negative numbers I am out by a 
factor of one. Now I am confused. :-(

Curse you Moriarty! ;-)
-- 

Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: Function: Making negative numbers positive
Date: 29 Nov 2015 11:18:22
Message: <565b254e$1@news.povray.org>
Am 29.11.2015 um 09:48 schrieb Kenneth:

> Put more simply: It seems perfectly 'obvious' that +3 X +2 = +6 (as any child
> discovers, when making two sets of three toy blocks, for example.) Likewise, -2
> X +3 should 'obviously' produce -6 ... although I can't think of a good
> 'child's' example to illustrate that ;-) But when it comes to -2 X -3, it just
> doesn't seem 'intuitive' that it should produce a positive value. (Although,
> what *else* it should produce is certainly a mystery!)

Here's my attempt:


Suppose you have some salts dissolved in water, i.e. the water contains
ions of arbitrary elements; depending on the type of element, each ion
is either negatively or positively charged, and the magnitude of its
charge may be 1, 2, 3 or maybe even 4. The whole solution is in
electrostatic equilibrium, i.e. its net charge is 0.

Now suppose you do an experiment in which you know that this solution
exchanges ions of a single element type with the outside world, and you
want to figure out the resulting total charge. You don't know the
element type, nor the direction of the exchange; however, you have a
measurement device that will give you the change in the number of ions
in the solution (a positive value indicating a gain, a negative
indicating a loss), and another measurement device that will give you
the charge of the individual ions.

Now you measure that the gain was -100 (i.e. you actually lost ions),
and the individual ions' charge was -2 (i.e. each ion was doubly
negatively charged).

Obviously the solution's charge now has a magnitude of 100*2 = 200. But
how about the sign?

You lost some negatively charged ions, so your positively charged ions
now have the upper hand: The solution is now positively charged.

Thus, it would make sense in this context if the operation of
multiplying two negative numbers would give a positive result.


Note how this example uses a "magnitude-and-direction" style definition
of a signed number. I guess /any/ "natural" example for multiplication
of two negative values needs to be based on this style of definition.
(After all, how would a signed number fit in a magnitude-only numerical
system anyway?)


Post a reply to this message

From: Cousin Ricky
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 07:46:44
Message: <565c4534$1@news.povray.org>
On 2015-11-27 03:37 PM (-4), clipka wrote:
> Am 27.11.2015 um 20:26 schrieb Alain:
>> It's always safer to assume that the value in question *may* be negative
>> as well as positive.
>> You want the result to be *always* positive indepentently if it's
>> original sign.
>
> Actually we can't tell whether that's what the OP wants, as he never
> told us the intended result for this case. (Though I'd agree it's a good
> guess that he would have known about the negation or multiplication by
> -1 if that had been the behaviour he was after.)

It would be helpful if the OP would write back and explain what he 
wants.  By now, the confusion caused by his ambiguity should be clear to 
any reader.


Post a reply to this message

From: Cousin Ricky
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 07:55:06
Message: <565c472a$1@news.povray.org>
On 2015-11-29 04:48 AM (-4), Kenneth wrote:
> This particular example-- multiplying two negative numbers and getting a
> positive answer-- has always given me pause, philosophically. That might sound
> strange, coming from someone who considers himself (reasonably) math-literate;
> but I have always had a kind of built-in stumbling-block regarding it's
> 'philosophical basis', and why or how this 'convention' came about, in the
> history of mathematics. ('Convention' may not be the correct way of putting it,
> of course; there have no doubt been many great mathematicians who have struggled
> with this concept in order to put it on a firm logical foundation. I hope!)
>
> Put more simply: It seems perfectly 'obvious' that +3 X +2 = +6 (as any child
> discovers, when making two sets of three toy blocks, for example.) Likewise, -2
> X +3 should 'obviously' produce -6 ... although I can't think of a good
> 'child's' example to illustrate that ;-) But when it comes to -2 X -3, it just
> doesn't seem 'intuitive' that it should produce a positive value. (Although,
> what *else* it should produce is certainly a mystery!) HOWEVER... I'm not about
> to question centuries (millennia??) of mathematical thought-- I'll just accept
> it. ;-)

-2 x  3 = -6
-2 x  2 = -4
-2 x  1 = -2
-2 x  0 =  0
-2 x -1 =  2
-2 x -2 =  4
-2 x -3 =  6

Seems intuitive enough.  I figured this out on my own as a kid, although 
I was suspicious of my own reasoning until it was confirmed in math class.


Post a reply to this message

From: Alain
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 16:28:18
Message: <565cbf72$1@news.povray.org>

> On 2015-11-29 04:48 AM (-4), Kenneth wrote:
>> This particular example-- multiplying two negative numbers and getting a
>> positive answer-- has always given me pause, philosophically. That
>> might sound
>> strange, coming from someone who considers himself (reasonably)
>> math-literate;
>> but I have always had a kind of built-in stumbling-block regarding it's
>> 'philosophical basis', and why or how this 'convention' came about, in
>> the
>> history of mathematics. ('Convention' may not be the correct way of
>> putting it,
>> of course; there have no doubt been many great mathematicians who have
>> struggled
>> with this concept in order to put it on a firm logical foundation. I
>> hope!)
>>
>> Put more simply: It seems perfectly 'obvious' that +3 X +2 = +6 (as
>> any child
>> discovers, when making two sets of three toy blocks, for example.)
>> Likewise, -2
>> X +3 should 'obviously' produce -6 ... although I can't think of a good
>> 'child's' example to illustrate that ;-) But when it comes to -2 X -3,
>> it just
>> doesn't seem 'intuitive' that it should produce a positive value.
>> (Although,
>> what *else* it should produce is certainly a mystery!) HOWEVER... I'm
>> not about
>> to question centuries (millennia??) of mathematical thought-- I'll
>> just accept
>> it. ;-)
>
> -2 x  3 = -6
> -2 x  2 = -4
> -2 x  1 = -2
> -2 x  0 =  0
> -2 x -1 =  2
> -2 x -2 =  4
> -2 x -3 =  6
>
> Seems intuitive enough.  I figured this out on my own as a kid, although
> I was suspicious of my own reasoning until it was confirmed in math class.
>

I had that same reasoning around 3rd or 4th grade. For the additions, it 
was in second grade.


Post a reply to this message

From: Kenneth
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 17:20:00
Message: <web.565cca357aaf16cc33c457550@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
>
> This particular example-- multiplying two negative numbers and getting a
> positive answer-- has always given me pause, philosophically....
> ...when it comes to -2 X -3, it just
> doesn't seem 'intuitive' that it should produce a positive value. (Although,
> what *else* it should produce is certainly a mystery!)

Hey, I've come up with my own 'comfortably' intuitive way of understanding this
concept!

Take a negative number,  say -2

Now I want to negate that negative number:  -(-2)

There are two ways of 'seeing' or understanding -(-2)  The first is simple
'cancellation' of the signs (!). Because, since the leading negative sign is
just a symbol with no numerical quantity attached, the RESULT has to be *a*
value of 2, with some kind of unknown-for-now sign. But the result can't be the
original -2... if it was, then the leading minus-sign would have no purpose at
all(!) Not logical! So, therefore, the result needs to be positive... since it
can't be anything else, dammit! (well, it could *possibly* be zero, by a
quasi-physical rule...i.e., 'forcing' the -2 to go back toward zero on a number
line.... but I'll ignore *that* result...)

The other way of looking at it is as simple multiplication: the 'naked' negative
symbol  '-'  times -2. Even though this operation *in itself* is the
'non-intuitive' crux of the matter, the RESULT needs to be the same as with the
'cancellation' example above...  +2 ...  with no need to do any further
conceptualizing!

SO... Following from this 'equality of operations', it now seems obvious that
multiplying a negative with a negative equals a positive! Voila!

My little April Fool's joke, in December  :-P  Who says amateur philosophers
can't be brilliant?!


Post a reply to this message

From: Kenneth
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 18:00:01
Message: <web.565cd4b67aaf16cc33c457550@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:

>
> -2 x  3 = -6
> -2 x  2 = -4
> -2 x  1 = -2
> -2 x  0 =  0
> -2 x -1 =  2
> -2 x -2 =  4
> -2 x -3 =  6
>
> Seems intuitive enough.  I figured this out on my own as a kid, although
> I was suspicious of my own reasoning until it was confirmed in math class.

Hmm. But doesn't the intuitive nature of your construction depend on an implicit
*assumption* that the numerical results should simply go from negative to
positive (in the descending order of your example)? In other words: that the
result of -2 X -2 being positive should *be* positive simply because -2 X 2 was
negative? (or, that -2 X -2 should simply be 'different' from -2 X 2?) Or was it
the middle column of positive-to-negative values that gave you the clue?

I think my own (flawed!) intuition when *I* was a kid would have been that -2 X
-2 would have equaled -4 !  :-O  Thankfully, my smarter teachers prevailed. ;-)


Post a reply to this message

From: Bald Eagle
Subject: Re: Function: Making negative numbers positive
Date: 30 Nov 2015 20:10:01
Message: <web.565cf2eb7aaf16cc5e7df57c0@news.povray.org>
Worth watching, as this has some relationship to the topic.
.... and it's animated with POV-Ray.   :)

https://www.youtube.com/embed/6cpTEPT5i0A?list=PL3C690048E1531DC7


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.