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 for Programming
 Forum for Origin C
 Compatibility between Version 7.5 and 8.0

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
mauricio.angeles Posted - 02/04/2008 : 06:04:13 AM
Origin Version (Select Help-->About Origin): 8.0
Operating System: Win Vista

Hi everybody,

I have been fitting a function that involves an integral in version 7.5, when I upgraded to version 8.0 the function did not worked. I have realized that a few features have been changed in version 8 like the way that data set are called within the funtion. The problem is that I cannot find the Curve_integrate object in 8.0 to perform the integration. My code is the following:

static double kstore, astore, bstore;
//static property retains the parameter values over iterations
BOOL bErr;
Dataset dsAi("Data1_Ai");
Dataset dsBi("Data1_Bi");
Dataset dsA("Data1_A");
Dataset dsB("Data1_B");
Dataset dsfun1("Data1_fun1");
Dataset dsfun2("Data1_fun2");
Dataset dsfun3("Data1_fun3");
Dataset dsfun("Data1_fun");
Dataset dsInteg("Data1_integ");

if(k!=kstore || a!=astore || b!=bstore) { //parameter checking

dsfun1 = (dsAi-dsAi*dsA)^a; //vector notation
dsfun2 = (dsBi-dsAi*dsA)^b;
dsfun3 = dsfun1*dsfun2;
dsfun = dsAi/dsfun3;
Curve crvFitCurve( "Data1_A", "Data1_fun" );
Curve crvBaseline( "Data1_A", "Data1_zeros" );
IntegrationResult irMyResults;
//dsInteg.SetSize(crvFitCurve.GetSize());
bErr = Curve_integrate( &crvFitCurve, &irMyResults, NULL, &dsInteg, TRUE ); // Perform integration
kstore=k; astore=a; bstore=b;
}
y=Data_table(x, &dsInteg, &dsA)/k;


I hope someone out there could help me.
1   L A T E S T    R E P L I E S    (Newest First)
snowli Posted - 02/05/2008 : 12:20:50 PM
Hello,

We are trying to figure out what could be causing it. Could you send your 7.5 fdf and opj to tech@originlab.com? It will help us debug.

Thanks,
Snow Li
OriginLab Corp.




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