Logo by Trifox - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. November 20, 2025, 06:06:57 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: Multiply the conjugate of 2 complex Number  (Read 2019 times)
0 Members and 1 Guest are viewing this topic.
ker2x
Fractal Molossus
**
Posts: 795


WWW
« on: December 08, 2010, 12:32:35 AM »

I'm in doubt, can you tell me of i'm doing it right please ?

Code:
        public static ComplexF ConjugateAndMultiply(ComplexF c1, ComplexF c2)
        {
            return new ComplexF(
                (c1.Real * c1.Real) + (c2.Imaginary * c2.Imaginary),
                (c1.Real * c1.Imaginary) - (c2.Real * c2.Imaginary)
                );
        }
Logged

often times... there are other approaches which are kinda crappy until you put them in the context of parallel machines
(en) http://www.blog-gpgpu.com/ , (fr) http://www.keru.org/ ,
Sysadmin & DBA @ http://www.over-blog.com/
Jesse
Download Section
Fractal Schemer
*
Posts: 1013


« Reply #1 on: December 08, 2010, 01:38:58 AM »

Just multiply the components out, the complex multiplication is:

c1(x,y) * c2(x,y) = (x1+iy1) * (x2+iy2)
 = x1*x2 + x1*iy2 + iy1*x2 + iy1*iy2
 = x1*x2 + x1*iy2 + iy1*x2 - y1*y2      // remember: i*i = -1
 = c(x1*x2 - y1*y2, x1*y2 + y1*x2)

( Mandelbrot: c(x,y)^2 = c(x*x - y*y, x*y + y*x = 2*x*y) )

With both conjugated:

/c1(x,y) * /c2(x,y) = (x1-iy1) * (x2-iy2)
 = x1*x2 - x1*iy2 - iy1*x2 + iy1*iy2
 = x1*x2 - x1*iy2 - iy1*x2 - y1*y2
 = c(x1*x2 - y1*y2, -x1*y2 - y1*x2)

With one conjugated you may get yourself now.

x1=c1.real
x2=c2.real
y1=c1.imaginary
y2=c2.imaginary
of course  smiley
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Amazing Hybrid Complex Triplex (complex coloring scheme) Images Showcase (Rate My Fractal) M Benesi 0 4114 Last post June 28, 2010, 02:47:56 AM
by M Benesi
xkcd #849 : Complex Conjugate Complex Numbers ker2x 1 3234 Last post August 10, 2014, 07:08:26 AM
by jehovajah
Quat sum, multiply, divide General Discussion DarkBeam 3 2499 Last post February 09, 2011, 08:54:03 PM
by DarkBeam
Ducky fractals with conjugate only (new) Theories & Research « 1 2 » thomas314 19 1883 Last post May 08, 2012, 06:47:45 PM
by element90
two mandelbrot number lines Images Showcase (Rate My Fractal) Eric B 0 3592 Last post September 24, 2012, 04:25:34 PM
by Eric B

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.372 seconds with 24 queries. (Pretty URLs adds 0.008s, 2q)