Difficulty with IMPOWER() Worksheet Function

monirg

Well-known Member
Joined
Jan 11, 2005
Messages
629
Hello;

1) The cubic root of complex numbers "x+yi" are calculated using IMPOWER().
The w/s function appears to return incorrect values when the coefficients of the complex number are -ve.

2) For example:
A1:: -8+0i
B1::= IMPOWER(A1,1/3)
the function returns: 1. + 1.7320508i
instead of the correct value of -2.

3) The problem appears to be consistent with calculating theta [=atan(y/x)] as "pi" instead of "0" for the above example "-8+0i"

How to fix the problem ??

Thank you kindly.
 
<Big Snip>

I will answer to the points 3 and 4 later. Let me tell you, however that I disagree completely with them.

Allow me to answer point 3 if I may, pgc:

Monrig said:
3) My experience with complex numbers in XL environment is rather limited. However, one might reasonably argue that a complex number with zero imaginary coefficient is equivalent to a real number!
Now try =POWER(-8,1/3). You would correctly get -2.0 and not #NUM!

I don't think that is a reasonable argument at all. The value (0 in this case) is less important than the "place holder". The fact that you have written a+bi, even where b is zero, indicates you are talking about a complex number. It's almost like saying one could resaonably argue that 10 is really equivalent to one, since there is only a zero in the one's column.

Why would you expect =power(-8,1/3) to get a #NUM?
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,216,110
Messages
6,128,894
Members
449,477
Latest member
panjongshing

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top