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
 Complex numbers in Origin

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
ACfit Posted - 12/16/2009 : 08:11:38 AM
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?
3   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 11/19/2010 : 10:07:34 PM
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
shafei Posted - 11/18/2010 : 11:33:44 PM
Can we set a coloumn to accept complex numbers instead of calculating real and imaginary parts separately?
VincentLiu Posted - 12/17/2009 : 05:02:51 AM
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

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