Hi

Well I feel a little bit stupid asking this, but from the addsub block:

Adds and subtracts the complex inputs.

If a = w + ix, b = y + iz then

a+b = (w+y)/2 + i(x-z)/2 and

a-b = (x+z)/2 + i(y-w)/2

Why it does it like this? Shouldn't it be simply:

a+b = w+y + i(x+z)

a-b = w-y + i(x-z)

I could understand the division by two as a way to avoid overflow, but not the rest of the changes.

Franco

Reply via email to