## Little Problem with Complex Mathematics on Calculators

General discussion about calculators, SwissMicros or otherwise
Walter
Posts: 1793
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

### Little Problem with Complex Mathematics on Calculators

I came across the following quite simple calculation:

0 [1/x] [+/-] returns -∞.

We all know that SQRT(-∞) = i .
The calculator returns 0. + i which is perfectly equivalent.

Now let's revert this last operation by squaring: (i )^2 = -∞. So far so good.
But (0 + i )^2 = 0 + (-∞) + 2 i 0 = -∞ + 2 i 0 .
So we must conclude that 0 times equals 0 which is in contradiction to other people stating 0 times is undefined or even non-numeric (the calculator returns -∞ + i NaN).

What am I missing? Competent help will be appreciated.
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S, WP 34S, WP 31S, DM16L
rprosperi
Posts: 1092
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

### Re: Little Problem with Complex Mathematics on Calculators

Walter wrote:
Thu Feb 14, 2019 9:57 pm
I came across the following quite simple calculation:

0 [1/x] [+/-] returns -∞.

We all know that SQRT(-∞) = i .
The calculator returns 0. + i which is perfectly equivalent.

Now let's revert this last operation by squaring: (i )^2 = -∞. So far so good.
But (0 + i )^2 = 0 + (-∞) + 2 i 0 = -∞ + 2 i 0 .
So we must conclude that 0 times equals 0 which is in contradiction to other people stating 0 times is undefined or even non-numeric (the calculator returns -∞ + i NaN).

What am I missing? Competent help will be appreciated.
Probably not competent, but anyway...

What machine are you using here Walter?

I can't find any (I did not try all of them!) machine that yields SQRT(-∞) => 0 + i*∞ (thus I believe implying that SQRT(∞) = ∞, which although possibly sound mathematically (I don't know for sure) it also doesn't seem to be handled my many (any?) machine).
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
H2X
Posts: 612
Joined: Tue Apr 25, 2017 8:00 am
Location: Norway

### Re: Little Problem with Complex Mathematics on Calculators

Walter wrote:
Thu Feb 14, 2019 9:57 pm
But (0 + i )^2 = 0 + (-∞) + 2 i 0 = -∞ + 2 i 0 .
Aren't you assuming that 0 times ∞ is defined yourself? If 0 times ∞ is undefined, 2 i 0 ∞ is not defined either?
DM42 #40 running C43 | DM41X #50 | various HP models
The earth is flat. It just appears round because it is massive and curves spacetime.
dlachieze
Posts: 288
Joined: Thu May 04, 2017 12:20 pm
Location: France

### Re: Little Problem with Complex Mathematics on Calculators

Walter wrote:
Thu Feb 14, 2019 9:57 pm
We all know that SQRT(-∞) = i .
The calculator returns 0. + i which is perfectly equivalent.
Probably not competent either, but I know that infinity is tricky...

For example you can also say that -i + i is perfectly equivalent to i .

But (-i + i )*(-i + i ) = -1 - +2 which is undefined
DM42: 00425 - DM41X: β00066
H2X
Posts: 612
Joined: Tue Apr 25, 2017 8:00 am
Location: Norway

### Re: Little Problem with Complex Mathematics on Calculators

dlachieze wrote:
Fri Feb 15, 2019 9:40 am
Walter wrote:
Thu Feb 14, 2019 9:57 pm
We all know that SQRT(-∞) = i .
The calculator returns 0. + i which is perfectly equivalent.
Probably not competent either, but I know that infinity is tricky...

For example you can also say that -i + i is perfectly equivalent to i .

But (-i + i )*(-i + i ) = -1 - +2 which is undefined
Complex multiplication has a rotational element which is tricky too. Infinite number of rotations? I get dizzy all the time...
DM42 #40 running C43 | DM41X #50 | various HP models
The earth is flat. It just appears round because it is massive and curves spacetime.
dlachieze
Posts: 288
Joined: Thu May 04, 2017 12:20 pm
Location: France

### Re: Little Problem with Complex Mathematics on Calculators

Doing some research I’ve found that for both Wolfram Alpha and the HP Prime: SQRT(-1/0) returns the complex infinity (which is not i).

As you’re taking the square root of a negative value you're moving to the complex plane where there is only one infinity, the complex infinity which is linked to the extended complex plane and the Riemann sphere.

So when you're working with infinity you need to know if your are in the real or complex domain.
DM42: 00425 - DM41X: β00066
Walter
Posts: 1793
Joined: Tue May 02, 2017 11:13 am
Location: Close to FRA, Germany

### Re: Little Problem with Complex Mathematics on Calculators

Thanks to Bob, Didier, and Haakon for responding so far.

My basic question was: why is i ∞ = 0 + i ∞ but it looks that (i ∞)^2 ≠ (0 + i ∞)^2 ?

Reasoning for the second equation:
(i ∞)^2 = -∞ while (0 + i ∞)^2 = 0 - ∞ + 2 i 0 ∞ (this expansion of the squared parenthesis doesn't assume anything IMO).
For making both sides equal, 0 × ∞ must be zero.
OTOH, WolframAlpha claims 0 × ∞ being undefined, and the 34S returns 0 × ∞ being 'not numeric'.
At the same time, WolframAlpha claims (0 + i ∞)^2 = -∞ while the 34S claims (0 + i ∞)^2 = -∞ + i × NaN; and I don't see that NaN = 0.
There must be a fundamental error in this reasoning but I can't find it.
DM42 SN: 00041 β
WP 43S running on this device

HP-35, HP-45, ..., HP-35S, WP 34S, WP 31S, DM16L
dlachieze
Posts: 288
Joined: Thu May 04, 2017 12:20 pm
Location: France

### Re: Little Problem with Complex Mathematics on Calculators

Well, I think that the real question is how you add infinity to ℂ. As far as I know this is called the compactification of ℂ.
With the Riemann sphere and the associated extended complex plane there is only one complex infinity, so if I understand it correctly there is nothing like i ∞, juste one complex infinity which means that 0 + i ∞ doesn't make sense in this extended complex plane.

I don't know if you can define an extended complex plane with multiple infinity, but if so you need also to define the appropriate arithmetic operations to handle these infinity.

Anyway I'm not an expert in these matters so I would like to ear from more competent people.
DM42: 00425 - DM41X: β00066
H2X
Posts: 612
Joined: Tue Apr 25, 2017 8:00 am
Location: Norway

### Re: Little Problem with Complex Mathematics on Calculators

dlachieze wrote:
Sat Feb 16, 2019 11:44 am
Anyway I'm not an expert in these matters so I would like to ear from more competent people.
I am not an expert either, but clearly there are kinds of infinities which cannot be easily compared. While there is an infinite number of integer values, it seems logical that the also infinite number of rational numbers is larger, and real numbers larger still.

This does not extend further into complex numbers, because where - along which line - would this infinity be? Apparently it needs to be along some line, which is the numerical axis of the absolute value or magnitude of the complex number, not some coordinate in the complex plane.