Here’s a question for the mathematicians here:
I want to write a program function that can calculate non-integral roots of negative numbers. While this cannot be done with real numbers, I feel like it should be possible with complex numbers.
My Google Fu is weak. When I asked Google for “roots of negative numbers”, it showed me a bunch of sites showing me things like “-27^(1/3) = -3”. That’s true, but I wanted something more inclusive. If you pick your numbers very carefully, you can always get a pretty answer. But I don’t want cherry-picked values. I want the hard stuff.
Like, what is the (negative square root of 3)-th root of negative square root of 2? So, I thought of how I would write that, and came up with (-(2.0^0.5))^(-(3.0^0.5)). When I typed that into Google, Google responded with
0.365476933 + 0.409206984 i
followed by lists of sites that somehow “matched” my original expression. I had forgotten that Google is also a calculator. The answer given by Google matches my expectation that answers to these types of questions must belong on the complex plane.
So, if Google can do it, I should be able to as well.
All I want is the formula so I can implement it as a program function. The derivation of the formula, however exciting it might be to you, is likely only to cause my eyes to glaze over. Don’t let that stop you though!
Is it possible to write a formula for A^B, such that I could say the answer was “+/- f(A) @ g(B) +/- (h(A) # j(B))i”, where f(), g(), h(), j() are some function taking a real number returning a real number, and ‘@’ and ‘#’ are unspecified arithmentic operators (I’m guessing multiplication or division), and ‘i’ is the square root of -1? It might even require something even more involved. As long as all the terms are defined, I should be able to program it.
Thanks in advance.