Integral

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7837
    thopa
    Participant

      Hello,

      I have 3 columns. Column “a” includes values from 1.5 to 6 with 45 entries. These entries are repeated. Column “b” has values and “c” has more values than “b”. More precisely, “c” has values for a=1.5, “b” has no values for a=1.5. Every value else should be identical in “b” and “c”.

       

      If I use a global variable to calculate the integral between “a” and “b” it is greater than the integral between “a” and “c”. Maybe I’m missing something basic here. Why could the integral between “a” and “b” be greater than the integral between “a” and “c” if “c” should be the same as “b” but with a few additional values >0?

       

      Thank you in advance!

       

      Screen Shot 2021-12-13 at 20.00.02

      #7838
      thopa
      Participant

        Okay, it just came to my mind that having no number in “b” instead of 0 could probably change the integral. Is this the problem here?

        #7839
        dgteam
        Moderator

          Yes, the missing value in b will make a difference, as the integral here is cumulative across the enter set of data.  To understand what is happening, you might to try using a Plot action column to compare the results.

          Do you just want to integrate what looks like a peak from x= 2.7 to  x= 3.5?  You could mask out the first set of rows with a Mask column, and then integrate the masked data.  Just make sure to include the zeros around the peak.

          Also, in our beta version, the Fit command has a Fit function option called ‘Peaks’, that might be useful.  That can be used to find multiple peaks.

           

           

          #7840
          dgteam
          Moderator

            Here is an example with the Plot action column, using similar data, where the last entry will match the cumulative integral from the expression variable.

            Int1

            If you plot the result, you can see the impact of the first points.

            Int2

            Hope this helps!

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.