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
 Problem with datasets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dybdal

Denmark
3 Posts

Posted - 01/31/2002 :  07:23:25 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I have my x-values in Data1_A and I am trying to execute the following script to calculate the y-values (and store them in column Data1_D):

Ea=10000;
H=1000;
Tu=350;
Data1_C=exp((-Ea/(8,314))*((1/(Data1_A))-(1/Tu)));
integrate Data1_C;
Data1_D=H*Data1_C*exp(-(_integ_area));

My problem is I don't get any values in column Data1_D?

Edited by - dybdal on 01/31/2002 10:08:23

rtoomey

USA
184 Posts

Posted - 01/31/2002 :  09:08:01 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The variable "Ea" is not initialized.

- rtoomey

Go to Top of Page

dybdal

Denmark
3 Posts

Posted - 01/31/2002 :  10:05:27 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry I forgot to copy the first line:

Ea=10000;

I have tried to initialize all variables, but it doesn't solve my problem.


Edited by - dybdal on 01/31/2002 10:11:13
Go to Top of Page

dybdal

Denmark
3 Posts

Posted - 01/31/2002 :  10:05:38 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
.

Edited by - dybdal on 01/31/2002 10:09:29
Go to Top of Page

dybdal

Denmark
3 Posts

Posted - 01/31/2002 :  10:05:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
.

Edited by - dybdal on 01/31/2002 10:10:05
Go to Top of Page

dybdal

Denmark
3 Posts

Posted - 01/31/2002 :  10:06:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
.

Edited by - dybdal on 01/31/2002 10:10:33
Go to Top of Page

H.Steen

Norway
12 Posts

Posted - 01/31/2002 :  12:11:02 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I think the problem is the number format,

In the line

Data1_C=exp((-Ea/(8,314)) .....

I change the number 8,314 to 8.314 and it worked on my computer.

(The result might depend on regional settings in Control Panel)

Helge


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