## Why is (-1)^1.2 not defined?

### Why is (-1)^1.2 not defined?

Hey, little math problem as mentioned.

### Re: Why is (-1)^1.2 not defined?

Because it is defined as the 6th root of -1, to the power of 5 (1.2 = 6/5). The root of negative numbers is not defined in general math.Bindie wrote:Hey, little math problem as mentioned.

### Re: Why is (-1)^1.2 not defined?

Of course. There is no root of (-1), complex numbers. I didn't see 1.2 as a rational number. Like a (a/b) number.

### Re: Why is (-1)^1.2 not defined?

I would guess at least some math libraries would define it something as:

{ re = cos 1.2pi, im = sin 1.2pi }

and if not, you can probably define it yourself.

{ re = cos 1.2pi, im = sin 1.2pi }

and if not, you can probably define it yourself.

### Re: Why is (-1)^1.2 not defined?

It's not that important, ^2 was too high so I figured I'd use ^1.2, however it didn't work with negative numbers and now I know why. Of course 1.2 is a a/b kind of numeral, and as S0lll0s said, more or less a root of a number.

- Ranguna259
- Party member
**Posts:**911**Joined:**Tue Jun 18, 2013 10:58 pm**Location:**I'm right next to you

### Re: Why is (-1)^1.2 not defined?

Actualy there are roots for negative numbers but the index has to be odd:

Even index:
Same goes for 4root, 6root, 8root, (2*x)root where x is a natural number

Odd index:
Same goes for 1root, 5root, 7root, (3*x)root where x is a natural number or 1/3

Even index:

Code: Select all

`(-1)^(1/2) = 2root-1 = i (or error)`

Odd index:

Code: Select all

`(-1)^(1/3) = 3root-1 = -1`

- zorg
- Party member
**Posts:**2733**Joined:**Thu Dec 13, 2012 2:55 pm**Location:**Absurdistan, Hungary-
**Contact:**

### Re: Why is (-1)^1.2 not defined?

Except lua still won't calculate that with the default lib routines; it gives -nan in the online interpreter.Ranguna259 wrote:Actualy there are roots for negative numbers but the index has to be odd:

...Code: Select all

`(-1)^(1/3) = 3root-1 = -1`

Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

### Who is online

Users browsing this forum: No registered users and 6 guests