Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

addition of two complex numbers

Status
Not open for further replies.

soh m

Newbie level 6
Joined
Jun 20, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
india
Activity points
1,375
how to add two complex numbers in 8051 using assembly language.... can anyone help me please!!!
 

Hi,
I hope there is no direct representation of complex numbers in 8051.
So in a way, I assume you have two set of numbers. Real part of No1, Imaginary part of No1, Real part of No2, Imaginary part of No2. In this case, your addition is simple addition of real parts and imaginary parts and store in same way the inputs are stored.
The assembly code for above is
 

complex addition is no thing more than a normal addtion. the real and imaginary parts are added individually the have no link like overfolw or anything else.
you have to get real and imaginary part of both numbers and then add individually.

if your complex number is in polar form then it will be a bit diffrent.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top