The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Arithmetic operation on complex numbers

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
p20170444H Posted - 12/13/2021 : 06:09:13 AM
Origin Ver. and Service Release (Select Help-->About Origin):
Operating System:

I performed FFT calculations on two columns and want to calculate the ratio of the complex parts of them. For that, I used the command.

vcmath2 ix1:=Col(1) ix2:=Col(2) op:=div;

But it didn't work.

Could you please help me to get the result as a complex number for the division of two complex numbers and store the result of a real part and imaginary part separately?
6   L A T E S T    R E P L I E S    (Newest First)
p20170444H Posted - 12/14/2021 : 10:45:33 PM
Thank you so much for the clear explanation.
YimingChen Posted - 12/14/2021 : 11:44:51 AM
You can double click on the column header, set Format to Numeric and Data Type to Complex(16). Then you should be able to type in complex numbers and do calculation, see below.


James
p20170444H Posted - 12/14/2021 : 01:21:07 AM
Given two complex numbers:

Z1 = a+ib, Z2 = c+id

I want Z1/Z2 as a complex number like (ac+bd)/(c^2+d^2) + i*(bc-ad)/(c^2+d^2)

And want to store the real and imaginary parts of the ratio separately.
p20170444H Posted - 12/13/2021 : 11:04:32 PM
Dear James,

Thank you so much for the reply. I want the ratio of whole complex numbers, not the ratio of their imaginary parts.


Best regards,
Sateesh
YimingChen Posted - 12/13/2021 : 09:06:44 AM
If you have two columns of complex numbers in col(A) and col(B), you can set the formula for col(C) as below to calculate the ratio of imaginary part.
imaginary(A)/ imaginary(B)


James
p20170444H Posted - 12/13/2021 : 06:20:27 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2021 (64-bit)
Operating System: Windows 10

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000