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
 Complex numbers in Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ACfit

1 Posts

Posted - 12/16/2009 :  08:11:38 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 7.5
Operating System: WindowsXP

Hi,

maybe it is a very stupid question, but I am struggeling with this problem for more than an hour now.

Does Origin know "i" for complex numbers?

I want to perform a kind of phase correction on NMR data, means I want to multiply my data (for example, all entries in col(B)) with exp(-i*Phi), with Phi being an angle between 0° and 360° or 0 and 2Pi.
I want to perform this operation using the "Set Column Values" Function, to compare the manipulated data immediatly with another dataset using a graphic display.

Is this possible?
And if not, is there any other way to perform this kind of operation in origin?

VincentLiu

China
Posts

Posted - 12/17/2009 :  05:02:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi ACfit,

There are no functions that operated on the complex datasets can be accessed from the Set Column Values dialog or from the Script Window. To solve the problem, you should use the Origin C to create a function. For more details, please select

Help-> Programming-> Origin C Language Reference-> Classes-> Composite Data Types-> Complex

And please note the Origin 8.1 is the newest version of Origin, there are lots of functions which can be performed on the complex datasets can be directly used in the Set Columns Values. For example, the vcmath1 can perform simple arithmetic on a complex dataset. If you have interest, you can get a demo version of Origin 8.1 through

http://www.originlab.com/index.aspx?s=12&lm=62

Best regards,
Vincent Liu
OriginLab Tech Services
Go to Top of Page

shafei

USA
49 Posts

Posted - 11/18/2010 :  11:33:44 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Can we set a coloumn to accept complex numbers instead of calculating real and imaginary parts separately?
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 11/19/2010 :  10:07:34 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by shafei

Can we set a coloumn to accept complex numbers instead of calculating real and imaginary parts separately?



Complex numbers were supported since version 8 in Origin. You need to open column properties dialog and set Options:Format to numeric, then Data Type to complex(16).

CP
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