This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, libstdc++, complex] complex multiplication algorithm improved


On 09/15/2010 10:24 AM, Wang Feng wrote:
> Hi,
>    Complex number multiplication done with 4 multiplications, but
> this one only need 3:
>
>             (a+ib)(c+id) = ac - bd + i( bc + ad ) -- 4 multiplies
>                                = ac - bd + i[ ( a + b )( c + d ) - ac
> - bd ] -- 3 multiplies
>   
Makes sense to me. Gaby, can you have a look?

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]