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
 LabTalk Forum
 Sum calculations

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
VauWe Posted - 05/03/2021 : 03:48:24 AM
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.

1   L A T E S T    R E P L I E S    (Newest First)
Chris D Posted - 05/03/2021 : 08:53:54 AM
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

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