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
 Script for integrals
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tackle

China
6 Posts

Posted - 10/20/2010 :  11:37:18 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver.7.5 and Service Release (Select Help-->About Origin):
Operating System:Win 7
Now I have 4 columns,one column XA and others are all Y columns(B,C,D). I want to get 3 integrals: the integral of Col(B) with Col(A); the integral of Col(C) with Col(A); the integral of Col(D) with Col(A) .Then ,how can I realize these commands in "window script"? May anyone offer exact scripts?I saw "loop(i,2,4) {integ1 (col(1), col($(i))); };"(I thought it was written by VicentLiu), but when I copy it in the window script and press (enter),I can only get"command error"
Thank everyone!
Tackle

greg

USA
1378 Posts

Posted - 10/21/2010 :  10:07:10 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
In your version, given that the column plot designations are 'correct' for the integration, the script would be:
// BEGIN SCRIPT
integrate col(2);
wo -a 1;
ty -a Integral of col(2) is $(integ.area);
copy _integ_area wcol(wks.ncols);
integrate col(3);
wo -a 1;
ty -a Integral of col(3) is $(integ.area);
copy _integ_area wcol(wks.ncols);
integrate col(4);
wo -a 1;
ty -a Integral of col(4) is $(integ.area);
copy _integ_area wcol(wks.ncols);
// END SCRIPT

integ1 is an Origin 8 function.
Go to Top of Page

Tackle

China
6 Posts

Posted - 10/23/2010 :  11:50:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank greg! I'm really sorry, next time I will notice.
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