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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Arithmetic operation on complex numbers
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

p20170444H

India
5 Posts

Posted - 12/13/2021 :  06:09:13 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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?

p20170444H

India
5 Posts

Posted - 12/13/2021 :  06:20:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2021 (64-bit)
Operating System: Windows 10
Go to Top of Page

YimingChen

1607 Posts

Posted - 12/13/2021 :  09:06:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

p20170444H

India
5 Posts

Posted - 12/13/2021 :  11:04:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

p20170444H

India
5 Posts

Posted - 12/14/2021 :  01:21:07 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

YimingChen

1607 Posts

Posted - 12/14/2021 :  11:44:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

p20170444H

India
5 Posts

Posted - 12/14/2021 :  10:45:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you so much for the clear explanation.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000