- #1

Pythagorean

Gold Member

- 4,214

- 272

**complex values and "size"**

The only measure of size I can think of would be to imagine a complex number as a vector and calculate its length via pythagoras. In that case, I would find i+1 and i-1 to be of equal length.. however using matlab's

**min**function and

**<**operand, I get two completely different answers (and different from each other too):

according to min, the first entry in A (i+1) is the "smallest"

Code:

```
A =
1.000000000000000 + 1.000000000000000i
-1.000000000000000 + 1.000000000000000i
>> min(A)
ans =
1.000000000000000 + 1.000000000000000i
```

Code:

```
>> if A(1) < A(2)
dips('YES')
end
>>if A(2) < A(1)
disp('YES')
end
YES
```