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
 Partial integration value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kensa

Andorra
Posts

Posted - 09/28/2005 :  9:52:41 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 7.0
Operating System: Windows XP

I have a table including X, Y values(2 dimension)
I want to find the 10% point,X of integration value by origin program.
plz, help me!

Mike Buess

USA
3037 Posts

Posted - 09/28/2005 :  11:10:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think the script below will do what you want. Just copy it to your script window, select all lines and execute by pressing Enter. A column will be created for the integral curve.

integrate col(2); // integrate column 2
# integral values go to the hidden dataset _integ_area, final area to integ.area
wo -a 1; // add a column
col(3)=_integ_area; // save integral curve to column 3
get col(3) -e npt; // how many points in integral?
loop (i,1,npt) {
# find 10% point
if(col(3)[i]>integ.area/10) break;
};
type "area: $(integ.area)";
type "10% point: $(i)";
type "X[$(i)]: $(col(1)[i])";
del -as; // delete _integ_area dataset

Mike Buess
Origin WebRing Member
Go to Top of Page

kensa

Andorra
Posts

Posted - 09/29/2005 :  12:07:51 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you very much~!
it's very helpful to me...
thanks~~!!!

how can I learn the programming for origin?
it's a C program???
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 09/29/2005 :  07:40:28 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
See your programming guide... Help > Programming.

Mike Buess
Origin WebRing Member
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