Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

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!!!
 

Iamventure

Junior Member level 3
Joined
Jun 6, 2007
Messages
30
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,451
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
 

asimkumar

Member level 4
Joined
Jan 1, 2011
Messages
78
Helped
8
Reputation
16
Reaction score
7
Trophy points
1,288
Location
Chandigarh, India
Activity points
1,755
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.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top