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
 Script for integrals

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
Tackle Posted - 10/20/2010 : 11:37:18 PM
Origin Ver.7.5 and Service Release (Select Help-->About Origin):
Operating System:Win 7
Now I have 4 columns,one column X£¨A£© 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
2   L A T E S T    R E P L I E S    (Newest First)
Tackle Posted - 10/23/2010 : 11:50:04 PM
Thank greg! I'm really sorry, next time I will notice.
greg Posted - 10/21/2010 : 10:07:10 AM
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.

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