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 for Programming
 LabTalk Forum
 Sum calculations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

VauWe

9 Posts

Posted - 05/03/2021 :  03:48:24 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin):
OriginPro 2019 (64-bit)
9.6.0.172

Operating System: Win10

Hi,

I have some problem with the sum(). The calculation works fine when I use all rows of column A and B as follows:

range rWavel = col(1);
range rPHI = col(2);
col(6) = sum(rWavel*rPHI) / sum(rPHI);

When I want to calculate the sum only from row 162 to 422 it failed. The calculation starts at row 162 but ends at 261 (the difference of row 422 and 162). Moreover the values in col(6) are different.

range rWavel = col(1)[162:422];
range rPHI = col(2)[162:422];
col(6) = sum(rWavel*rPHI) / sum(rPHI);

Any ideas?

Thanks in advance for any help.

Chris D

428 Posts

Posted - 05/03/2021 :  08:53:54 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

It appears to be a bug in your version of Origin that has been fixed. Perhaps you can download the evaluation version of our most recent release, Origin 2021b and see how it works for you. It won't interfere with your 2019 installation.

If you still have issues let us know.

Thanks,
Chris Drozdowski
Originlab Technical Support
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